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 | Comments closed