updated .vimrc

pull/2/head
Hari Sekhon 5 years ago
parent c4ad55528e
commit 65c74c541b

@ -132,6 +132,8 @@ if has("autocmd")
au BufNew,BufRead *.yml set sts=2 sw=2 ts=2
au BufNew,BufRead *.yaml set sts=2 sw=2 ts=2
au BufNew,BufRead *.gsh set filetype=groovy
"au BufNew,BufRead *.rb set filetype=ruby sts=2 sw=2 ts=2
" this will disable
@ -148,6 +150,8 @@ if has("autocmd")
au BufNew,BufRead *.pl nmap ;l :w<CR>:!clear; perl -I . -tc "%"<CR>
au BufNew,BufRead *.rb nmap ;l :w<CR>:!clear; ruby -c "%"<CR>
au BufNew,BufRead *.go nmap ;l :w<CR>:!gofmt -w "%" && go build "%"<CR>
" TODO: groovy/java CLI linters
"au BufNew,BufRead *.gsh nmap ;l :w<CR>:!groovy %<CR>
au BufNew,BufRead .bash*,*.sh,*.ksh nmap ;l :w<CR>:!clear; shellcheck -Calways "%" \| more -R<CR>
" for scripts that don't end in .sh like Google Cloud Shell's .customize_environment

Loading…
Cancel
Save