[texhax] Trying to set up VIM-Latex... Troubles with .vimrc
Diego Acosta
daacosta at yahoo.com
Fri Jul 28 02:01:02 CEST 2006
Dear friends of TUG,
I am trying to install and use VIM-Latex on a Win XP laptop per these instructions:
http://vim-latex.sourceforge.net/index.php?subject=download&title=Download
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 = '"'
else
let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
endif
else
let cmd = $VIMRUNTIME . '\diff'
endif
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
Regards,
Diego Acosta
P.S. I have looked at forums, and many other sources...
---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texhax/attachments/20060727/a18aa4da/attachment.html
More information about the texhax
mailing list