aboutsummaryrefslogtreecommitdiff
path: root/base/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'base/vimrc')
-rw-r--r--base/vimrc9
1 files changed, 3 insertions, 6 deletions
diff --git a/base/vimrc b/base/vimrc
index a5e4be4..0db1a1e 100644
--- a/base/vimrc
+++ b/base/vimrc
@@ -158,14 +158,14 @@ set noswapfile " Note: swap helps large files.
" Quickly edit/reload the vimrc file
nnoremap <silent> <leader>ve :tabe $MYVIMRC<CR>
-nnoremap <silent> <leader>vs :so $MYVIMRC<CR>
+nnoremap <silent> <leader>vr :so $MYVIMRC<CR>
nnoremap <F2> :set invpaste paste?<CR>
set pastetoggle=<F2>
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>S ?{<CR>jV/^\s*\}\?$<CR>k:sort<CR>:noh<CR>
nnoremap <leader>q gqip
nnoremap <leader>vp `[V`]
nnoremap <leader>h :syntax sync fromstart<CR>
@@ -174,13 +174,10 @@ nnoremap [<space> :<c-u>put! =repeat(nr2char(10), v:count1)<cr>'[
nnoremap ]<space> :<c-u>put =repeat(nr2char(10), v:count1)<cr>
noremap <leader>y "+y
-noremap <leader>yy "+Y
+noremap <leader>Y "+Y
noremap <leader>p :set paste<CR>:put +<CR>:set nopaste<CR>
vnoremap p "_dP
-noremap <silent> + :s/^\s*/&\/\//<CR>:noh<CR>
-noremap <silent> - :s/^\(\s*\)\/\//\1/<CR>:noh<CR>
-
vnoremap Q gq
nnoremap Q gqap