Wednesday, January 28, 2015

Re: Problem with AutoAlign

Cesar Romani wrote:

I also discovered that the same problem happens when editing a latex
file, i.e. when typing () and then typing = inside the parentheses, the
cursor gets after the closing parenthesis.

How can I disable this? I tried to put 'iunmap =' on
vimfiles\after\plugin\tex.vim but it is of no use.

Many thanks in advance,

Hello:

As before with html, there is no '=' map provided by AutoAlign for latex.  The map provided for latex is triggered by a backslash and aligns "&"s (ie. for tables).

You should have

.vim/doc/AutoAlign.txt           .vim/ftplugin/c/AutoAlign.vim    .vim/ftplugin/eltab/AutoAlign.vim  .vim/ftplugin/maple/AutoAlign.vim   .vim/ftplugin/php/AutoAlign.vim  .vim/ftplugin/vim/AutoAlign.vim
.vim/ftplugin/bib/AutoAlign.vim  .vim/ftplugin/cpp/AutoAlign.vim  .vim/ftplugin/html/AutoAlign.vim   .vim/ftplugin/matlab/AutoAlign.vim  .vim/ftplugin/tex/AutoAlign.vim  .vim/plugin/AutoAlign.vim

Please verify that these are the AutoAlign files that you have in the given directories (vimfiles instead of .vim for windows).

I can't really tell you how to disable the '=' mapping for latex or html as AutoAlign does not make such mappings for those languages.  If your set up does not have the AutoAlign files in the right places, may I suggest removing them and re-installing AutoAlign (http://www.drchip.org/astronaut/vim/index.html#AUTOALIGN).  Check that your filetype (:echo &ft) is correct when editing html and tex files.

Regards,
Chip Campbell

No comments:

Post a Comment