diff options
author | Alexis Hovorka <[email protected]> | 2021-06-03 11:39:14 -0600 |
---|---|---|
committer | Alexis Hovorka <[email protected]> | 2021-06-03 11:39:14 -0600 |
commit | 99eece3f8337fb5928765de16b94ae52374e00db (patch) | |
tree | 44eb3255498c6c8197981909d02e8027e82d2e9d | |
parent | ae83c51d58c5e217e077c84608b3ce5bae3dd652 (diff) |
[fix] Update a couple outdated vim mappings
-rw-r--r-- | base/vimrc | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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 |