diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 1a9162c..8a32e99 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -47,6 +47,19 @@ call s:SourceConfigFilesIn('plugins') nnoremap so :so ~/.config/nvim/init.vim nnoremap x :!chmod +x % +" Yank from the current column to the end of the line +nnoremap Y yg$ + +" Move lines up and down +inoremap :m .+1==gi +inoremap :m .-2==gi +vnoremap :m '<-2gv=gv +vnoremap :m '>+1gv=gv + +" Keep things centred +nnoremap n nzzzv +nnoremap N Nzzzv + " Remove arrow keys noremap noremap