Tag Archives: vim

Bracket auto completion in vim for PHPer

I used to use this setting in .vimrc: inoremap \( ( inoremap ( ()<LEFT> But escape bracket every time for second\(first(); is a little bit stressful. (typed “first()”, then move to the head of the line, typing “second”, back slash and bracket) Here is an improved script: function! CompleteDetachedBracket() let line = line('.') let col = [...]
Posted in Create | Tagged | Leave a comment
  • About

    I'm Nobu, a web developer living in Mountain View, CA. Feel free to comment on any posts. I'm also tweeting on twitter.

  • Archives

  • Recent Posts