I want the script to automatically close function with endfunction
while with endwhile for with endfor Using it with java I could imagine to complete try { with } catch () { } or } finally () { } But I don't know exactly what to put in here? This is my attempt which didn't work yet. Can you help me? " {{{ Configuration for vim au! FileType vim \ let b:closeb_openre = '\%(while\|for\|fun\)\)' \ | let b:closeb_closere = 'end\(while\|for|\fun)\)' \ | let b:closeb_indentmagic = 0 \ | let b:closeb_skip = 'synIDattr(synIDtrans(synID(line("."), col("."), 0)), "name") =~ ' . "'" . 'Comment\|Constant\|PreProc' . "'" \ | let b:closeb_isopen = "1" \ | let b:closeb_openname = "mymatch" \ | let b:closeb_closename = "'end'.mymatch" \ | let b:closeb_makeclosetag = "'end' . mymatch . ''" \ | let b:closeb_makeclosemiddle = "" " note the middle newline ensures nice bevaviour for magicness, " cutting it out will complicate things " if makeclosemiddle returns '', makeclosetag will be taken instead " }}} Marc