Slashdot Mirror


User: briancarper

briancarper's activity in the archive.

Stories
0
Comments
2
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2

  1. 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>

  2. 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.