New answers tagged

2

<C-h> is backspace. Check :h 'backspace' 'backspace' 'bs' string (default "", set to "indent,eol,start" in |defaults.vim|) global Influences the working of <BS>, <Del>, CTRL-W and CTRL-U in Insert mode. This is a list of items, separated by commas. Each item ...


1

I think this will work: :set whichwrap+=h,l Then you should be able to yank characters, spanning lines. Unfortunately this has the side effect of having the h and l able to "wrap" across lines if you use them at the beginning/end of a line, so you may want to do this instead: :se whichwrap+=<,> Then use the Left and Right arrow keys in your ...


0

Try defining some normal mode mappings in your ~/.vimrc. For this example, let's sacrifice the builtin gq and gQ functionality. " Yank the text inside quotes to the 'a' register nnoremap gq "ayi" " Replace the text inside quote from the contents of the 'a' register nnoremap gQ vi""ap Now you can use gq to yank the text inside ...


Top 50 recent answers are included