aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/.vimrc15
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