commit 38c680c47836de4f3571d715cf205e1d6ff9c4f1
parent fa161c4eb4e5ca5a84b2ebf1de03fc3c41185d33
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Mon, 22 Jun 2020 12:21:41 +0200
vim: cursor position mapping
Former-commit-id: fc85c6ef2b9043d6e2a11047ae2a6bae997f8b1e
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -757,8 +757,8 @@ nnoremap <leader><right> :tabmove +1<CR>
" Window resizing mappings
nnoremap <C-k> <C-w>+
nnoremap <C-j> <C-w>-
-nnoremap <C-h> <C-W>>
-nnoremap <C-l> <C-W><
+nnoremap <C-h> <C-W><
+nnoremap <C-l> <C-W>>
" Delete hidden buffers
nmap <leader>dh <Plug>DeleteHiddenBuffers
@@ -867,6 +867,8 @@ endif
" 'Zoom' the current buffer in a new tab
nnoremap <C-w>Z :tab split<CR>
+
+nnoremap <leader>gg :call input("go line:col> ")->split(":")->cursor()<CR>
" Autocommands {{{1
if has('autocmd')
augroup vimrc_sets