diff options
author | Adam Hovorka <[email protected]> | 2017-07-10 16:01:51 -0600 |
---|---|---|
committer | Adam Hovorka <[email protected]> | 2017-07-10 16:01:51 -0600 |
commit | 6299a736717a0ef9f57a5f07fc34d391416477e6 (patch) | |
tree | f57672fbac3dfb11787d1e4542be234082c3b611 /base | |
parent | 582d3748def22a8301fb826283a9141e744e3b59 (diff) |
Added syntax refresh to vimrc
Diffstat (limited to 'base')
-rw-r--r-- | base/.vimrc | 15 |
1 files changed, 8 insertions, 7 deletions
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 <silent> <leader>sv :so $MYVIMRC<CR> set pastetoggle=<F2> -nnoremap <leader>W :%s/\s\+$//<cr>:let @/=''<CR> " strip trailing whitespace -nnoremap <leader>ft Vatzf " fold tag -nnoremap <leader>S ?{<CR>jV/^\s*\}?$<CR>k:sort<CR>:noh<CR> " sort CSS -nnoremap <leader>q gqip " re-hardwrap -nnoremap <leader>v V`] " select pasted +nnoremap <leader>W :%s/\s\+$//<cr>:let @/=''<CR> +nnoremap <leader>ft Vatzf +nnoremap <leader>S ?{<CR>jV/^\s*\}?$<CR>k:sort<CR>:noh<CR> +nnoremap <leader>q gqip +nnoremap <leader>v V`] +nnoremap <leader>s :syntax sync fromstart<CR> vnoremap Q gq nnoremap Q gqap |