Fork me on GitHub

Wednesday, September 10, 2008

Blog / General / For you Vimmers

For you Vimmers

<Aoi-chan> everyone's first vi session. 
^C^C^X^X^X^XquitqQ!qdammit[esc]qwertyuiopasdfghjkl;:xwhat

vim-icon.png (from qdb.us; hey bash.org down? my internets has imploded! ;_; )

I’ve released a little script to deal with quotes and bracket pairs in Vim, for those of us slowly getting addicted to those girlish GUI editors like TextMate[1] or Scribes.

Ditch them all for the one and only real men’s editor: Vim[2].

Get the Script: closepairs.vim

It’s my first Vim script, feel free to tell me how to improve it, or if something is wrong.

Have fun :)

update: since you made me notice, here’s the other scripts dealing with the same problem

they all differs for little, the first is a bit simpler; the latter is probably the most configurable.

Pick your favorite :)

[footnotes]

[1] I wish I had TextMate on my Mac. I wish I had a Mac.
[2] I’m lying. Everybody knows real programmers use butterflies

  1. housetier

    Wednesday, September 10, 2008 - 12:29:39

    This reminds me of AutoClose.vim: http://www.vim.org/scripts/script.php?script_id=1849

  2. NoWhereMan

    Wednesday, September 10, 2008 - 12:46:40

    yes, I tried that, but I had some problems with backspace unless I set virtualedit=all (which I usually don’t) :/ …that’s why I wrote my own

  3. Thiago Alves

    Wednesday, September 10, 2008 - 12:59:18

    Hi I created another AutoClose.vim (http://www.vim.org/scripts/script.php?script_id=2009) plugin that already works without setting virtualedit (actually it sets and unset it automatically). Have a look and tells me what do you want added in that script and we can work together!

  4. NoWhereMan

    Wednesday, September 10, 2008 - 13:40:40

    Oh, then I think *yours* is the script I was talking about! (I’ve tried them all); looks like I had still the 25/8 version.

    btw, You have a mail :)

  5. not you

    Tuesday, September 23, 2008 - 20:19:29

    [quote]
    <Aoi-chan> everyone’s first vi session.
    ^C^C^X^X^X^XquitqQ!qdammit[esc]qwertyuiopasdfghjkl;:xwhat[/quote]

    That made me spit coffee all over my keyboard.

    Exactly what happened the first time I use vi.

  6. Tari Akpodiete

    Wednesday, October 8, 2008 - 08:34:53

    hm, a “real men’s editor”? and we ladies should use?

  7. NoWhereMan

    Wednesday, October 8, 2008 - 10:01:07

    Ha! Everybody knows “there are no women on teh Internet”!

    :p

Add comment

Fill out the form below to add your own comments

User data





Add your comment