neovim: Add binding for sorting in visual mode

upower
Simon Bruder 2021-07-17 13:25:57 +02:00
parent c09d54513b
commit 35e6bf8185
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,9 @@ in
" Close terminal with double-Esc
tnoremap <Esc><Esc> <C-\><C-n>
" Sort in visual mode
vnoremap <Leader>s :sort<CR>
" Jump to the last position
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g`\"" | endif