aboutsummaryrefslogtreecommitdiff
path: root/base/vimrc
diff options
context:
space:
mode:
authorAlexis Hovorka <[email protected]>2021-06-03 11:39:14 -0600
committerAlexis Hovorka <[email protected]>2021-06-03 11:39:14 -0600
commit99eece3f8337fb5928765de16b94ae52374e00db (patch)
tree44eb3255498c6c8197981909d02e8027e82d2e9d /base/vimrc
parentae83c51d58c5e217e077c84608b3ce5bae3dd652 (diff)
[fix] Update a couple outdated vim mappings
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