neovim: Add binding for sorting in visual mode
This commit is contained in:
parent
c09d54513b
commit
35e6bf8185
|
@ -118,6 +118,9 @@ in
|
||||||
" Close terminal with double-Esc
|
" Close terminal with double-Esc
|
||||||
tnoremap <Esc><Esc> <C-\><C-n>
|
tnoremap <Esc><Esc> <C-\><C-n>
|
||||||
|
|
||||||
|
" Sort in visual mode
|
||||||
|
vnoremap <Leader>s :sort<CR>
|
||||||
|
|
||||||
" Jump to the last position
|
" Jump to the last position
|
||||||
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
|
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
|
||||||
\| exe "normal! g`\"" | endif
|
\| exe "normal! g`\"" | endif
|
||||||
|
|
Loading…
Reference in a new issue