有没有可能在vim中创建一个这样的函数呢?xD
function !Reindent ()
return =G "that going to 'showcmd' and gonna prompted out
endfunction我想在每次读取缓冲区时调用它。
发布于 2017-01-28 22:51:59
你不需要一个函数,你只需要一个autocmd,它会在你将文件读入缓冲区时触发:
autocmd BufRead * normal! =Ghttps://stackoverflow.com/questions/41911106
复制相似问题