You are not logged in.

#1 2010-05-30 11:25:52

Maximalminimalist
Member
Registered: 2009-09-20
Posts: 112

[solved] vim ftplugin vim-latexsuite doesn't load changes with chars

Hello!

I'd like to use some european characters and I found this thread.

Unfortunately I still get "/mathbf{}" when I type the ã. (My problem is the ö but I think if I manage to have the ã it will work with ö...)

The second problem is that I have to press escape twice to go to normal mode in a .tex file.
(In the other files one press is enough.)

All these troubles happen only on my x86_64 desktop.
I have vim-latexsuit-svn 1106-1 on both laptop and desktop from the AUR.

On my i686 laptop everything works fine with the 'default' .vimrc advised in the vim-latexsuite-manual.
There is also a different mapleader for compiling by default. (Which is not as annoying as the ö problem.)
I also get the ö-trouble when I log in from the laptop to my desktop.

Why are there so much differences?
I only remember having put some "set winaltkeys=no" in the wrong files on my laptop before I understood where is the right place.
(Where everything works fine.)

Here's my .vimrc

  1 set tabstop=2
  2 set number
  3 
  4 syntax on
  5 filetype plugin on
  6 filetype indent on
  7 set grepprg=grep\ -nH\ $*
  8 let g:tex_flavor = "latex"
  9 set runtimepath=~/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim72,/usr/share/vim/vimfiles/after,~/.vim/after
 10 "To solve the propleme with vim-latexsuite has with ã and â
 11 imap <buffer> <silent> <M-C> <Plug>Tex_MathCal
 12 imap <buffer> <silent> <M-B> <Plug>Tex_MathBF
 13 imap <buffer> <leader>it <Plug>Tex_InsertItemOnThisLine
 14 imap <buffer> <silent> <M-A>  <Plug>Tex_InsertItem
 15 "imap <buffer> <silent> <M-E>  <Plug>Tex_InsertItem
 16 "imap <buffer> <silent> <M-e>  <Plug>Tex_InsertItemOnThisLine
 17 imap <buffer> <silent> <Plug>Traditional <Plug>Traditional
 18 map <buffer> <silent> é é
 19 map <buffer> <silent> á á
 20 map <buffer> <silent> ã ã
 21 "imap ã <Plug>Tex_MathCal
 22 "imap é <Plug>Traditional

~/.vim/ftplugin/tex.vim

  1 set winaltkeys=no
  2 
  3 let g:Tex_AdvancedMath = 0
  4 let g:Tex_SmartKeyQuote = 0
  5 let g:Tex_SmartKeyQuote = 0
  6 
  7 imap <C-b> <Plug>Tex_MathBF
  8 imap <C-c> <Plug>Tex_MathCal
  9 imap <C-l> <Plug>Tex_LeftRight

~/.vim/after/ftplugin/tex.vim
(The macros of call IMAP work well. When I type `ö I also get a \mathbf)

  1 call IMAP('`w', '\omega', 'tex')
  2 call IMAP('`j', '\cdot', 'tex')
  3 call IMAP('`A', '\forall', 'tex')
  4 call IMAP('`E', '\exists', 'tex')
  5 call IMAP('`ö', 'ö', 'tex')
  6 
  7 let g:Tex_AdvancedMath = 0
  8 imap <C-b> <Plug>Tex_MathBF
  9 imap <C-c> <Plug>Tex_MathCal
 10 imap <C-l> <Plug>Tex_LeftRight

runtimepath:

runtimepath=~/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim72,/usr/share/vim/vimfiles/after,~/.vim/after

Last edited by Maximalminimalist (2010-05-30 17:00:03)

Offline

#2 2010-05-30 16:52:33

Maximalminimalist
Member
Registered: 2009-09-20
Posts: 112

Re: [solved] vim ftplugin vim-latexsuite doesn't load changes with chars

I just removed vim, vim-auctex (didn't remember there was this...) and vim-latexsuite and reinstalled vim and vim-latexsuite.
I was obviously using a vim-auctex macro and I didn't know it... (This was a memorable lesson for removing packages you don't need. roll )

I realized that the Esc-issue happens if a placeholder is still active. Is it possible to change this behaviour? (I won't really care about that. => [solved])

Last edited by Maximalminimalist (2010-05-30 16:59:32)

Offline

Board footer

Powered by FluxBB