This is my version of vim configuration.
config github
git config --global user.name "xyegithub"
git config --global user.email "[email protected]"
ssh-keygen -t rsa -C "[email protected]"
cat ~/.ssh/id_rsa.pub
ssh -T [email protected]
git clone [email protected]:xyegithub/my_vimrc.git ~/.vim_runtime
git clone --depth=1 https://github.com/xyegithub/my_vimrc.git ~/.vim_runtime
bash ~/.vim_runtime/install_awesome_vimrc.sh
Just do following:
-
Remove
~/.vim_runtime
-
Remove any lines that reference
.vim_runtime
in your~/.vimrc
- When more than one tex files are edited all using vimtex, the pdf can not be
refreshed when the tex file is saved. To overcome this, the source file of
vimtex is modified
vimtex/autoload/vimtex/view.vim
. line 57call b:vimtex.viewer.compiler_callback(l:outfile)
is changed intoVimtexView
. However, a more elegant method is to enable theAuto-refresh
setting in qpdfview.
latexindent.pl
use"\t"
as the default indent char, which conflicts with vim-indent-guide. To change the default indent char oflatexindent.pl
, the 147 line of~/anaconda3/bin/LatexIndent/defaultSettings.yaml
is changed intodefaultIndent:" "
.- To restrict the number of chars contained in a line, one should allow
linebreak
in latexindent.pl. To do this, First, add-m
to theargs
inneoformat/autoload/neoformat/formatters/tex.vim
. Secondly, change the 513 line in file~/anaconda3/bin/LatexIndent/defaultSettings.yaml
to set the number of columns. - The document of latexindent
says that latexindent allows multiple spaces to single. However, my
latexindent does not acheive that correctly, even when I set
multipleSpacesToSingle: 1
. - The position of args is important. When I set args
'args': ['--no-bracket-spacing --stdin-filepath', '"%:p"']
for markdown files, it works correctly. However, when I set it as'args': ['--stdin-filepath --no-bracket-spacing', '"%:p"']
, it does not run correctly.