Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有可能在 vim 中创建一个这样的函数?xD
function !Reindent () return =G "that going to 'showcmd' and gonna prompted out endfunction
我想在每次读取缓冲区时调用它。
你不需要一个函数,你只需要一个autocmd在你将文件读入缓冲区时触发的函数:
autocmd
autocmd BufRead * normal! =G