return =G 缩进所有文件 VimL 的函数
Function that return =G that indent all file VimL
是否可以创建一个像 vim 中那样有效的函数? xD
function !Reindent ()
return =G "that going to 'showcmd' and gonna prompted out
endfunction
我想在每次读取缓冲区时调用它。
您不需要一个函数,您只需要一个 autocmd
,只要您将文件读入缓冲区,它就会被触发:
autocmd BufRead * normal! =G
是否可以创建一个像 vim 中那样有效的函数? xD
function !Reindent ()
return =G "that going to 'showcmd' and gonna prompted out
endfunction
我想在每次读取缓冲区时调用它。
您不需要一个函数,您只需要一个 autocmd
,只要您将文件读入缓冲区,它就会被触发:
autocmd BufRead * normal! =G