change shebang line

This commit is contained in:
Jonathan Hodgson 2018-06-11 11:22:32 +01:00
parent 9a02ac9576
commit 55ad3b952c

4
.vimrc
View file

@ -370,7 +370,9 @@ cnoremap w!! w !sudo tee %
nnoremap <leader>q !!$SHELL <cr>
" Do Shebang line
inoremap <C-y> <Esc>:sil exe ".!which <cWORD>" <bar> s/^/#!/ <bar> filetype detect<cr>YpDi
" inoremap <C-y> <Esc>:sil exe ".!which <cWORD>" <bar> s/^/#!/ <bar> filetype detect<cr>YpDi
inoremap <C-y> <Esc>:sil s/^/#!\/usr\/bin\/env / <bar> filetype detect<cr>YpDi
" DO bullet points
inoremap <C-j> <esc>:exe "norm Ypf lDB\<C-a>"<cr>A