From 6428422cbd2c16a64981fd205395661f718c7a59 Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 12 Sep 2019 21:29:00 +0800 Subject: Simplify init.vim and move settings to autoload and after directory --- after/ftplugin/python.vim | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 after/ftplugin/python.vim (limited to 'after/ftplugin/python.vim') diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim new file mode 100644 index 0000000..951ff69 --- /dev/null +++ b/after/ftplugin/python.vim @@ -0,0 +1,3 @@ +" Automatically save current file and execute it when pressing the key +" it is useful for small script +nnoremap :execute 'w !python' shellescape(@%, 1) -- cgit v1.2.3