diff options
Diffstat (limited to 'nvim/.config')
-rw-r--r-- | nvim/.config/nvim/init.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 1206cd5..8f8b8b1 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -53,6 +53,12 @@ nnoremap <c-l> <C-w>l vnoremap < <gv vnoremap > >gv +" Moving selection +noremap <leader>k :m .-2<CR>== +noremap <leader>j :m .+1<CR>== +vnoremap J :m '>+1<CR>gv=gv +vnoremap K :m '<-2<CR>gv=gv + " Remove trailing whitespace on save autocmd BufWritePre * %s/\s\+$//e |