Tag Info

Hot answers tagged

2

If the extra :w<enter> is the only insertion in that place I use ESC + u (undo). If not it's just as long as yours but depending on personal preferences/habits it might be faster: ESC + up arrow + J (join) + left arrow + left arrow + x + x (delete current char). Technically the longer sequence can be saved as a macro and then invoked with just ESC + ...


2

C-o u C-o: normal state for one command u: undo Note: this might undo more than you want depending on how much you changed.


2

You can still do basically the same thing from visual mode. Once you have the area selected, hit the following1: :'>,'> !tee >(xsel -b) You need to pipe to tee so that the contents of your selected area isn't cleared. 1Adapted from here.


1

You can surround it by quotes to stop vim from calculating the result echo '-1 -1'


1

I've found solution here. In general: Run PuTTY Configuration. In the left pane, select Terminal, Features. Put a check mark next to "Disable application keypad mode". In the left pane, select Session. Save the settings.


1

With set backspace=2, you should be able to just press Backspace three times.


1

Turns out this is infuriatingly easy: use the "v" command to highlight the text area you want. Immediately press the "!" command, followed by your command. So the sequence is "v" "!"



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