diff options
| author | jdhao <jdhao@hotmail.com> | 2019-12-06 20:29:33 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-06 20:29:33 +0800 |
| commit | 57047f91f9b4b24240711f5195ff41bdada33223 (patch) | |
| tree | 7042e293dcc1a1fb210e2120dae34733160c30d6 /after/ftplugin/python.vim | |
| parent | 01e69daf9e56155d6f4e2338bb01dcb15c49678e (diff) | |
Add mapping for running Python script asynchronously
Diffstat (limited to 'after/ftplugin/python.vim')
| -rw-r--r-- | after/ftplugin/python.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim index 8b13789..a0bc092 100644 --- a/after/ftplugin/python.vim +++ b/after/ftplugin/python.vim @@ -1 +1,3 @@ - +if exists(':AsyncRun') + nnoremap <silent> <F9> :AsyncRun python "%"<CR> +endif |
