haskell-vim-now icon indicating copy to clipboard operation
haskell-vim-now copied to clipboard

It plays really bad with vim-latexsuite

Open rongcuid opened this issue 9 years ago • 6 comments

It seems that this bundle really disables all normal mode key bindings in vim-latexsuite, which makes it half less useful. I don't know which part does this, though

rongcuid avatar Nov 23 '15 18:11 rongcuid

When you run the haskell-vim-now installer it backs up your old vim config and puts a totally new one in its place. This new vim config won't include the tex suite, but here's how you can add it back.

Create a file called ~/.vim.local/plugins.vim containing

Plug 'gerw/vim-latex-suite'

Then start vim and run :PlugInstall. You may have to restart vim, but you should be able to use the tex suite again.

begriffs avatar Nov 23 '15 18:11 begriffs

No, I have it from distro package, and things like <++> works. Just any normal mode features fail (like\ll). If I go with vim -u /etc/vimrc, those features work again. So it has to be something about vim-now

rongcuid avatar Nov 23 '15 20:11 rongcuid

I can think of two more possible causes:

  • /etc/vimrc contains mappings which are not being set when using another vimrc. Solution: ln -s /etc/vimrc ~/.vimrc.local. Haskell vim now will load whatever is in ~/.vimrc.local after it has finished loading itself.
  • HVN changes the leader key to ,. So the command might be ,ll rather than \ll. Again this might get solved by linking the vimrc.

begriffs avatar Nov 23 '15 20:11 begriffs

We'll add leader key override soon. So if you need that, wait a bit please.

SX91 avatar Nov 23 '15 20:11 SX91

latex-suite has both , leading and \ leading commands. For example, ,li is insert the list environment, \ll is compile.

rongcuid avatar Nov 23 '15 21:11 rongcuid

@carldong or @SX91 are either of you interested in sending a pull request to do leader override?

begriffs avatar May 25 '16 06:05 begriffs