Hi,

Apparently this isn't a very popular thing to do, but I remap g
to help me do indentation.  There are two problems with this.
In gvimrc_example.vim , there is some code (which has been copied
all sorts of places) which does automatic
jump to last position when file was closed.  This uses the command g'"
Unfortunately when g has been remapped it triggers this mapping.

To fix this the line with \| exe "normal g'\"" | endif
should read
\| exe "normal! g'\"" | endif

the ! stops it from remapping g to the local mapping.

Also, some plugins create some mappings that start with g .
The problem is that I don't want to wait for the disambiguation delay
before triggering my mapping.  So I want to unmap those mappings in
the user .vimrc .  The problem is that plugins are sourced after
the user .vimrc .  This makes it impossible to countermand the
mappings created by the plugins automatically (barring using even more
magical techniques like autocmd).  It really seems to me like the
.vimrc should be sourced after the plugins, it should have the final say.

Thank you,

Manfred

##################################################################
"Must I do all the evil I can before I learn to shun it?  Is it
not enough to know the evil to shun it?  If not, we should be
sincere enough to admit that we love evil too well to give it up."
                                 - Mohandas K. Gandhi

Reply via email to