Skip to main content
1 vote
Accepted

How to make mappings for "jump to after next occurrence of character" / "jump to the before previous occurrence of character"?

To jump to the character after you could do: nnoremap <expr> <C-f> 'f'.nr2char(getchar()).'l' To jump before the character you could do: nnoremap <expr> <C-S-f> 'F'.nr2char(...
Vivian De Smedt's user avatar
1 vote
Accepted

How to yank only to specified register and do not touch (change) default " register?

This is much simpler and does not modify registers or bookmarks. inoremap <c-d> <esc>:t.<cr>gi Copying to what registers will not affect default register? Default register is a ...
Matt's user avatar
  • 20.9k
1 vote
Accepted

Remaps to move across windows do not work when in netrw window

The reason is that the netrw buffer defines a buffer mapping for <C-h>. The solution is to override that buffer mapping: autocmd! FileType netrw nnoremap <buffer> <C-h> <C-w>h ...
Vivian De Smedt's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible