From fc1bf76fde67eb913adff2f50eeef0d4a468df4a Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Sun, 6 Aug 2017 20:35:17 +0500 Subject: Updates. - [git] new aliases and ignore Infinitest files - [offlineimap] remove backend option, it's set by default - [vim] enable spellchecking by default - [vim] format JSON with jq - [zsh] run ip via grc coloring - [zsh] ledger command easy query by camelcase --- files/.vimrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'files/.vimrc') diff --git a/files/.vimrc b/files/.vimrc index f7a764d..da66aef 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -96,6 +96,7 @@ if has("multi_byte") endif set keymap=russian-jcukenwin set spelllang=ru,en +set spell set iminsert=0 set imsearch=0 @@ -407,6 +408,9 @@ nnoremap ev :vsplit $MYVIMRC " Commands {{{ command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ \ | diffthis | wincmd p | diffthis +if executable('jq') + command -range Jq ,!jq --indent 4 . +endif " }}} " Filetype {{{ " XML {{{ @@ -432,9 +436,9 @@ augroup END augroup ft_json au! - if executable('jq') - au FileType json noremap jq :%!jq --indent 4 . - au FileType json vnoremap jq :'<,'>!jq --indent 4 . + if exists(':Jq') + au FileType json noremap jq :%Jq + au FileType json vnoremap jq :%Jq endif augroup END -- cgit v1.2.3