commit ec7cde3ead39092fa7814d8173b02aa7625a6f5d parent b0b08639ef241236ac57586d04e92eb830ad3fd8 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Mon, 11 Mar 2013 00:24:37 +0100 add possibility to join without moving cursor Diffstat:
vim/vimrc | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/vim/vimrc b/vim/vimrc @@ -94,3 +94,8 @@ nnoremap <F5> :GundoToggle<CR> " set noesckeys + +" joining lines shouldn't move cursor +" http://stackoverflow.com/a/9506063/414272 +"nnoremap <silent> J :let p=getpos('.')<bar>join<bar>call setpos('.', p)<cr> +