sgur
8/8/2014 - 6:35 PM

source したときに autoload 末尾でエラーを防ぐ (うろ覚え)

source したときに autoload 末尾でエラーを防ぐ (うろ覚え)

let s:save_cpo = &cpo
set cpo&vim

" なんかコード

if expand("%:p") == expand("<sfile>:p")
  finish
endif
let &cpo = s:save_cpo
unlet s:save_cpo