Hello
2012/12/12 <
qz.m...@gmail.com>:
> When using lh-cpp (and lh-brackets), I can no longer use the < key for
> removing indentation, and haven't been able to figure out from the
> documentation how to disable the current behaviour in normal mode (adding a
> closing parenthesis), so that I can use the standard indentation behaviour
> of VIM again.
I've been annoyed myself by this a few times. But as I prefer to rely
on = to reindent automatically, I did take my time to fix this, and
only for C & C++.
There are two workarounds to this problem:
- the first is to hit <F9> (if triggers.vim is installed [1]), which
will momentarily disable the mappings from lh-brackets
- the second is to duplicate only what you like from
after/ftplugin/{ft}/{ft}_brackets.vim into any file that you put into
your .vim/ftplugin/{ft}/ directory (not in the after/ directory), and
to set b:loaded_ftplug_{ft}_brackets to whatever you like from that
same file. [The {ft}_brackets.vim ftplugins are in the after/ zone in
order to let the end user override the default settings]
You'll have to replace {ft} by whatever filetype you have this issue with.
But, I'll just check my files and I see that the c_brackets file(s)
fix(es) this bug -- and that the two version of c_brackets are not the
same ... :/
I'll fix the bracket definitions for the other filetypes for which I
provide a default behaviour.
> Thanks!
Thank you for your input!
[1]
http://code.google.com/p/lh-vim/source/browse/misc/trunk/plugin/Triggers.vim
Hum... it seems it need to be installed manually. Sorry about that.
HTH,
--
Luc Hermitte