Re:Vim most definitely can't "do everything"
on
Hacking Vim 7.2
·
· Score: 1
In normal mode, if you type q: instead of:q, you'll open the command line window. You can disable this this easily enough:
nmap q: <Nop> nmap q/ <Nop> nmap q? <Nop>
Re:Anything but Vim, please
on
Hacking Vim 7.2
·
· Score: 2, Interesting
although using a bastardized version of RegEx that requires a lot of backslashes to do anything complicated
Put \v at the beginning of your regex and you won't need as many backslashes. This is the so-called "very magic" mode. You can even switch back and forth between magic and non-magic in the same regex via \v and \V.
In normal mode, if you type q: instead of :q, you'll open the command line window. You can disable this this easily enough:
nmap q: <Nop>
nmap q/ <Nop>
nmap q? <Nop>
Put \v at the beginning of your regex and you won't need as many backslashes. This is the so-called "very magic" mode. You can even switch back and forth between magic and non-magic in the same regex via \v and \V.