[texhax] Trying to set up VIM-Latex... Troubles with .vimrc
John R. Culleton
john at wexfordpress.com
Fri Jul 28 22:22:28 CEST 2006
On Thursday 27 July 2006 20:01, Diego Acosta wrote:
> Dear friends of TUG,
> I am trying to install and use VIM-Latex on a Win XP laptop per these
> Step 1 of 4 was completed very well and the files were extracted correctly.
> The second step is what's causing me grief I can't find a file named
> .vimrc anywhere but I do find a file called _vimrc which has:
> set nocompatible
> source $VIMRUNTIME/vimrc_example.vim
> source $VIMRUNTIME/mswin.vim
> behave mswin
> set diffexpr=MyDiff()
> function MyDiff()
> let opt = '-a --binary '
> if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
> if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
> let arg1 = v:fname_in
> if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
> let arg2 = v:fname_new
> if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
> let arg3 = v:fname_out
> if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
> let eq = ''
> if $VIMRUNTIME =~ ' '
> if &sh =~ '\<cmd'
> let cmd = '""' . $VIMRUNTIME . '\diff"'
> let eq = '"'
> let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
> let cmd = $VIMRUNTIME . '\diff'
> silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 .
> eq endfunction
> Is that the file that you are referring to or should I write a .vimrc file
> with the following?
> filetype plugin on
> set shellslash
> set grepprg=grep\ -nH\ $*
> filetype indent on
> Please help me
> Diego Acosta
> P.S. I have looked at forums, and many other sources...
Not familiar with Vim-latex. For questions like this go to
vim at vim.org. BTW from my limited knowledge the files that
configure Vim start with a period on Linux etc. but start with
an underline on MSWin. In other words:
.vimrc = _vimrc
I use Vim all the time on TeX files, including occasionally
Latex. My suggestions would be:
1, Download and install Vim 7, the very latest release,
2. Join the vim at vim.org mailing list and pose your
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
More information about the texhax