4 ms·
It's not a sign of "unparalleled efficiency" having to type these little monstrosities by hand, let alone frequently :g/\(\d\{1,3}\.\)\{3}\d\{1,3\}/y A Is the
by eviks 3y ago
It's not a sign of "unparalleled efficiency" having to type these little monstrosities by hand, let alone frequently
:g/\(\d\{1,3}\.\)\{3}\d\{1,3\}/y A
Is there a way to type "ip" and select from a helper list with regex and description sorted by frecency?
- 000ooo000 3y agoNot an answer to your question, but FYI, command history (q:) might be useful for you if you hadn't come across it yet.
- nerdponx 3y agoYes, you can define your own commands to do whatever you want. For things like fuzzy search and frecency sorting, there are a handful of plug-ins and frameworks that can help, including an FZF interface and a few other Vim/Neovim-specific plugins like Telescope and Denite.
- danielvaughn 3y agoThat was my first thought when I saw these. I’ve been interested in learning Vim but these look like hell to type.
- atorodius 3y agoYou don’t need these. I‘ve been viming for 10+ y and just using the normal shortcuts and ways of manipulating text is a major productivity gain.
- imbnwa 3y agoVim regex engine descends from vi and ed, which predate Perl Compatible Regular Expressions, whose derivative forms we're all familiar with
- danielvaughn 3y agoYep I'm familiar with regular expressions, but I don't typically use them as a command prompt.
- imbnwa 3y agoYeah, just explaining why it looks weird
- jdkardia 3y agoif you have already used the command you want recently, just start writing the command you want, then press the up arrow to search through your history for commands that start with whatever you've typed so far. also, a nit pick, if you use Magic mode (\v), that pattern gets way better: :g/\v(\d{1,3}\.){3}\d{1,3}/y A