I am totally new to using Vim, and I have been trying out SpaceVim so far. One issue is with keybindings. So I have the Vimtex and Vim-Latex plugins installed. I want to use the compilation option from Vimtex because it automatically uses the latexmk
program to compile my latex code. But, right now the Vim-Latex keybindings is mapped to the <Leader>ll
keybinding.
I added the following command to the bottom of my init.vim
file, as suggested in a different stackexchange post:
How can I redefine plugin key mappings?
Here is the command I used.
autocmd VimEnter * noremap \ll VimtexCompile
But for some reason this does not change the keybinding. I am still getting the old keybindings.
I think that this keybinding is attached to the Latex
mode in vim, since this keybinding will only work when it is in a latex file window. Unfortunately each time I currently press the \ll
key, I get thrown into the compiler error log.
Any suggestions?
g:spacevim_disabled_plugins
vim-latex
to work withlatexmk.
I have been trying for two days. So finallyvimtex
seemed to fix that. I did not want to lose all of the slick keybindings fromvim-latex
though. Is there a fundamental incompatibility between packages? I might need to keep this while I try and resolve thevim-latex
issues.spacevim_disabled_plugins
. I have a custom plugin section in my.init.vim
file, but not a section for disabled plugins. Is one of the latex plugins on the disabled plugins list?\ll
is the default compile map forvimtex
, so you must have a conflict somewhere.