Skip to content

Commit

Permalink
ll.vim: add change shell file head #!/usr/bin/env bash
Browse files Browse the repository at this point in the history
Signed-off-by: lilei <[email protected]>
  • Loading branch information
lilei committed Dec 7, 2019
1 parent 37763f7 commit 4216c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vim/bundle/ll.vim/plugin/ll.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
autocmd BufNewFile *.sh,*.py exec ":call LeeAutoSetFileHead()"
function! LeeAutoSetFileHead()
if &filetype == 'sh'
call setline(1, "\#!/bin/bash")
call setline(1, "\#!/usr/bin/env bash")
elseif &filetype == 'python'
call setline(1, "\#!/usr/bin/env python")
call append(1, "\# -*- coding: utf-8 -*-")
Expand Down

0 comments on commit 4216c17

Please sign in to comment.