Vim LaTeX-suite and OS X

One of the many great features that LaTeX-suite provides is autocompletion for \ref, \cite etc. Unfortuantly LaTeX-suite maps autocompletion to F9 and this is mapped to fast-forward on OS X.

If you don’t want to disable the standard F1-F9 mappings and go the FN+F1-9 route, simply add

1
2
3
" TeX
" Fix F9 mapping on MacBook
autocmd FileType tex imap <buffer> <M-TAB> <Plug>Tex_Completion

to your ~/.vimrc. This will map autocompletion to ALT+TAB when a tex-file is loaded.

Now back to finishing that thesis…

Share and Enjoy:
  • Print
  • Facebook
  • Twitter
  • Digg
  • del.icio.us
  • Google Bookmarks

Tags: , ,

Leave a comment