From 6299a736717a0ef9f57a5f07fc34d391416477e6 Mon Sep 17 00:00:00 2001 From: Adam Hovorka Date: Mon, 10 Jul 2017 16:01:51 -0600 Subject: Added syntax refresh to vimrc --- base/.vimrc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'base') diff --git a/base/.vimrc b/base/.vimrc index e9d7c33..fa798ff 100644 --- a/base/.vimrc +++ b/base/.vimrc @@ -76,7 +76,7 @@ set visualbell " don't beep set noerrorbells " don't beep set list -set listchars=tab:>.,trail:.,extends:#,nbsp:. +set listchars=tab:>.,trail:.,extends:#,nbsp:. "autocmd filetype html,xml set listchars-=tab:>. set wildmenu @@ -120,7 +120,7 @@ endif set undodir=~/.vim/undo-dir set undofile " !!!! ADD THIS TO CRONTAB -" 43 0 * * 3 find /home/adam/.vim/undo-dir -type f -mtime +90 -delete +" 43 0 * * 3 find /home/adam/.vim/undo-dir -type f -mtime +90 -delete set nobackup set noswapfile " Note: swap helps large files. @@ -133,11 +133,12 @@ nnoremap sv :so $MYVIMRC set pastetoggle= -nnoremap W :%s/\s\+$//:let @/='' " strip trailing whitespace -nnoremap ft Vatzf " fold tag -nnoremap S ?{jV/^\s*\}?$k:sort:noh " sort CSS -nnoremap q gqip " re-hardwrap -nnoremap v V`] " select pasted +nnoremap W :%s/\s\+$//:let @/='' +nnoremap ft Vatzf +nnoremap S ?{jV/^\s*\}?$k:sort:noh +nnoremap q gqip +nnoremap v V`] +nnoremap s :syntax sync fromstart vnoremap Q gq nnoremap Q gqap -- cgit v1.2.3-70-g09d2