From 4216c171322a37640a70c2c4eb29529fc9c04c45 Mon Sep 17 00:00:00 2001 From: lilei Date: Fri, 6 Dec 2019 22:51:48 -0500 Subject: [PATCH] ll.vim: add change shell file head #!/usr/bin/env bash Signed-off-by: lilei --- vim/bundle/ll.vim/plugin/ll.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/bundle/ll.vim/plugin/ll.vim b/vim/bundle/ll.vim/plugin/ll.vim index 2dccac0..f7352ef 100644 --- a/vim/bundle/ll.vim/plugin/ll.vim +++ b/vim/bundle/ll.vim/plugin/ll.vim @@ -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 -*-")