07/12/03 02:18:39
インサートモードで入力したテキストだけならこんな感じでできそうだけど。
augroup meso
au!
au InsertEnter * call InsertEnterCB()
au InsertLeave * call InsertLeaveCB()
augroup END
function! InsertEnterCB()
let g:modified_save = &modified
set nomodified
endfunction
function! InsertLeaveCB()
if &modified
echomsg "inserted text='". @. ."'"
endif
let &modified = g:modified_save
endfunction