How to write a macro in vim that adds a semicolon to the end of the line.
|
1 answer
In command mode :map ; A;<ESC>
:map ; A;<ESC>
.
- thanks, I will use just that - Zlofey
- Ok, if you can, here's another thing: make a zout key on the z key << "be there the cursor"; - Zlofey
- I tried to do it like this: map z acout << "" "<ESC> h but for some reason it’s displayed cout <<" "<ESC> h - that is, the transition to normal mode via <ESC> does not work, unlike : map; A; <ESC> - here everything works as it should - Zlofey
- oneOk, it was in the "less" symbol (<) it needs to be represented in this form <lt> (less-then). total ready command - map z acout <lt> <lt> "" <ESC> i PS can be typed in the form: help key-notation there will be all tables of such special characters - Zlofey
|