| Post Reply | RetroFed Forum Forum Index » Neovim |
| Author | Message | ||
|---|---|---|---|
|
siipale
sopuli.xyz
siipale@sopuli.xyz Joined: 2023-06-25 |
Most of you might know already but I just found out about this today because I needed it. I had thought there's just no way to use escape in norm commands. So I had this file with list of items which were mostly separated by newlines but some of them were separated by spaces so I had to clean it up. It looked something like this:
and I needed it to be like this:
The beginning of every item was the same string of characters which was helpful. So I had an idea but it required the use of escape in a norm command. I was about to think of some other way that doesn't require escape but then decided to google it and find out if there was a way to use escape. To my surprise it was possible! Why I haven't thought of this before? So this is what I came up with:
So the TL;DR: Press C-v Esc in command line mode to get escape. |
||
| 1 Original | |||
| Post Reply |
Back to top |