Skip to content

Commit

Permalink
Some configuration for vim-latex.
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsHaldenwang committed Apr 4, 2011
1 parent db4173a commit 9b67288
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ftplugin/tex.vim
@@ -0,0 +1,4 @@
" TIP: if you write your \label's as \label{fig:something}, then if you
" type in \ref{fig: and press <C-n> you will automatically cycle through
" all the figure labels. Very useful!
set iskeyword+=:
9 changes: 9 additions & 0 deletions vimrc
Expand Up @@ -345,3 +345,12 @@ let g:user_zen_settings = {

" Source the custom key mappings
source <sfile>:h/key_mappings.vim

" Make filetype recognition correct, according to
" http://vim-latex.sourceforge.net/documentation/latex-suite/recommended-settings.html
let g:tex_flavor='latex'

" IMPORTANT: grep will sometimes skip displaying the file name if you
" search in a singe file. This will confuse Latex-Suite. Set your grep
" program to always generate a file-name.
set grepprg=grep\ -nH\ $*

0 comments on commit 9b67288

Please sign in to comment.