aboutsummaryrefslogtreecommitdiff
path: root/after
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2019-12-06 20:29:33 +0800
committerGitHub <noreply@github.com>2019-12-06 20:29:33 +0800
commit57047f91f9b4b24240711f5195ff41bdada33223 (patch)
tree7042e293dcc1a1fb210e2120dae34733160c30d6 /after
parent01e69daf9e56155d6f4e2338bb01dcb15c49678e (diff)
Add mapping for running Python script asynchronously
Diffstat (limited to 'after')
-rw-r--r--after/ftplugin/python.vim4
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