From 997ee7e2e6ad81f7a9455b581e71150173cec7d4 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Thu, 21 Jul 2016 19:26:58 +0500 Subject: [vim] Vim updates. * Set +x bit on scripts. * Syntastic config. --- files/.vimrc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'files') diff --git a/files/.vimrc b/files/.vimrc index 5af1950..a8eb5a7 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -209,6 +209,9 @@ if has('autocmd') au BufReadPost * if line("'\.") > 0 && line("'\.") <= line("$") | exe 'normal g`.zvzz' | endif au BufRead,BufNewFile /etc/nginx/* if &ft == "" | setfiletype nginx | endif au BufReadPost *.ledger norm G + + " Set scripts to be executable from shell + au BufWritePost * if getline(1) =~ "^#!.*/bin/" | silent exec "!chmod +x " | endif endif " }}} " Mappings {{{ @@ -282,6 +285,9 @@ map j map k map l +" Open current buffer in new tab +noremap :tab sp + " Write file with sudo cmap w!! w !sudo tee % >/dev/null map gf :e @@ -337,10 +343,10 @@ let g:surround_187="«\r»" " }}} " Syntastic {{{ -let g:syntastic_check_on_open = 0 -let g:syntastic_check_on_wq = 0 -let g:syntastic_auto_jump = 0 -let g:syntastic_java_checker = 'javac' +"let g:syntastic_check_on_open = 0 +"let g:syntastic_check_on_wq = 0 +"let g:syntastic_auto_jump = 0 +"let g:syntastic_java_checker = 'javac' let g:syntastic_mode_map = { \ 'mode': 'passive', \ 'active_filetypes': [], -- cgit v1.2.3