Thanks for the tip! the addon thing worked for me as well. It should be done automatically by apt-get when installing the vim-latexsuite... whatever...
On the xdvi stuff, my solution is having the following tex.vim in the ~/.vim/ftplugin directory:
" Increasing search, finds occurrences when typing
set incsearch
" 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+=:
setlocal sw=2
"setlocal formatoptions+=a
setlocal spell
vmap ,b "zdi\textbf{<C-R>z}<ESC>
vmap ,e "zdi\emph{<C-R>z}<ESC>
vmap ,t "zdi\texttt{<C-R>z}<ESC>
func WriteLatex()
:w
:call Tex_RunLaTeX()
endfunc
" Latex-Suite
let g:Tex_CompileRule_dvi = 'latex -interaction=nonstopmode -src-specials $*'
if v:servername != ""
let g:Tex_ViewRule_dvi = 'xdvi -editor "gvim --servername '.v:servername.' --remote +\%l \%f"'
endif
Thanks for the tip! the addon thing worked for me as well. It should be done automatically by apt-get when installing the vim-latexsuite... whatever...
On the xdvi stuff, my solution is having the following tex.vim in the ~/.vim/ftplugin directory: fig:something} , then if you <C-R>z} <ESC> <C-R>z} <ESC> <C-R>z} <ESC>
" Increasing search, finds occurrences when typing
set incsearch
" TIP: if you write your \label's as \label{
" type in \ref{fig: and press <C-n> you will automatically cycle through
" all the figure labels. Very useful!
set iskeyword+=:
setlocal sw=2
"setlocal formatoptions+=a
setlocal spell
vmap ,b "zdi\textbf{
vmap ,e "zdi\emph{
vmap ,t "zdi\texttt{
func WriteLatex()
:w
:call Tex_RunLaTeX()
endfunc
" Latex-Suite le_dvi = 'latex -interaction= nonstopmode -src-specials $*'
let g:Tex_CompileRu
if v:servername != ""
let g:Tex_ViewRule_dvi = 'xdvi -editor "gvim --servername '.v:servername.' --remote +\%l \%f"'
endif
cmap we :call WriteLatex()
Happy latex/vimming!
Rub