summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-03-28 20:47:54 +0100
committerUrbain Vaes <urbain@vaes.uk>2018-03-28 20:47:54 +0100
commitd8290edfa799ab5a7713391dcf8e635c485a75ef (patch)
treee79b102d32144c69ca81165cd85955a4f36b08cd
parent7210d400d805604e45a920c98bb440b24677b9da (diff)
Add Junegunn's shebang mapping
-rw-r--r--vim/.vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 90a560d..b7adf81 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -359,6 +359,9 @@ nnoremap <bs> 
" Source current file
nnoremap ,s :source %<cr>
+" Shebang
+inoreabbrev <expr> #!! "#!/usr/bin/env" . (empty(&filetype) ? '' : ' '.&filetype)
+
" }}}
"" Colorscheme {{{
function! SaveColo(...)