Skip to content

Commit

Permalink
nvim: add <C-a> and <C-x> wrappers
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
  • Loading branch information
cyphar committed May 16, 2020
1 parent 379d5c2 commit f48cc22
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ inoremap <leader>d <c-\><c-o>:read !date<cr>
noremap <leader>sc :setlocal spell! spelllang=en_au<cr>
inoremap <leader>sc <c-\><c-o>:setlocal spell! spelllang=en_au<cr>
" Increment and decrement lists.
nnoremap + <C-a>
vnoremap + g<C-a>gv
nnoremap - <C-x>
vnoremap - g<C-x>gv
" Reselect the deselected blocks in visual mode.
vnoremap < <gv
vnoremap > >gv
Expand Down

0 comments on commit f48cc22

Please sign in to comment.