updated .vimrc

pull/2/head
Hari Sekhon 4 years ago
parent 778dffa5e8
commit a8719f325e

@ -269,12 +269,12 @@ if has("autocmd")
au BufNew,BufRead *.md nmap ;l :w<CR>:!clear; mdl "%" \| more -R<CR>
"au BufNew,BufRead *.sql nmap ;l :w<CR>:!clear; TODO "%" \| more -R<CR>
au BufNew,BufRead *.scala nmap ;l :w<CR>:!clear; scalastyle -c "$bash_tools/scalastyle_config.xml" "%" \| more -R<CR>
au BufNew,BufRead *.tf,*.tfvars nmap ;l :w<CR>:!clear; cd "%:p:h" && { terraform fmt -diff; terraform validate; } \| more -R<CR>
au BufNew,BufRead *.toml nmap ;l :w<CR>:!clear; validate_toml.py "%"<CR>
au BufNew,BufRead *.xml nmap ;l :w<CR>:!clear; validate_xml.py "%"<CR>
" TODO: needs fix to allow multiple inline yaml docs in 1 file
"au BufNew,BufRead *.yml,*.yaml nmap ;l :w<CR>:!clear; validate_yaml.py "%"<CR>
au BufNew,BufRead *.yml,*.yaml nmap ;l :w<CR>:!clear; js-yaml "%" >/dev/null && echo YAML OK<CR>
au BufNew,BufRead *.tf,*.tfvars,*.tf.json nmap ;l :w<CR>:!clear; cd "%:p:h" && { terraform fmt -diff; terraform validate; } \| more -R<CR>
" more specific matches like pom.xml need to come after less specific matches like *.xml as last statement wins
au BufNew,BufRead *pom.xml* nmap ;l :w<CR>:!clear; mvn validate -f "%" \| more -R<CR>

Loading…
Cancel
Save