From 57047f91f9b4b24240711f5195ff41bdada33223 Mon Sep 17 00:00:00 2001 From: jdhao Date: Fri, 6 Dec 2019 20:29:33 +0800 Subject: [PATCH] Add mapping for running Python script asynchronously --- after/ftplugin/python.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 :AsyncRun python "%" +endif