[docs] Fix old path for clang-format

The path in vimrc was old, replace it with <path-to-this-file> to be
consistent with above.
This commit is contained in:
Ji, Jinsong 2022-10-27 12:56:49 -07:00
parent d40f4636c4
commit 439209dbcb
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ your `.vimrc`:
function! Formatonsave() function! Formatonsave()
let l:formatdiff = 1 let l:formatdiff = 1
pyf ~/llvm/tools/clang/tools/clang-format/clang-format.py pyf <path-to-this-file>/clang-format.py
endfunction endfunction
autocmd BufWritePre *.h,*.cc,*.cpp call Formatonsave() autocmd BufWritePre *.h,*.cc,*.cpp call Formatonsave()