Today at 5:40am -0600 [EMAIL PROTECTED] wrote:

>     Have to dig more in details, for vim features. If vim
>    can compile & execute c/c++ code also then it will be
>    an iceing on the cake !

See if you can take some hint from following: ( written to
compile tex file ) ( by Asokan K )

++++++++++++++++++++++++++++++++++++++++++++++++++
set nocompatible
set autowrite
set ruler
set laststatus=2
set filetype=tex
syntax on
set tw=75
map<F2> <Esc>:w<CR>
map <F3> <Esc> w:<CR> :!latex run.tex <CR>
"map <F3> <Esc>:!latex run.tex && dvips run.dvi -o
run.ps <CR>
map <F4> <Esc>:split run.log <CR>
map <F5> <Esc>:!xdvi run.dvi 2>dvi.log & <CR>
map <F6> <Esc>:!gv run.ps 2>ps.log & <CR>
map <F9> <Esc>:n <CR>
map <F10> <Esc>:N <CR>
++++++++++++++++++++++++++++++++++++++++++
save this in a file ,say vimtex.
Put all the tex files along with the above file in a
directory. The name of the master file is 'run.tex'

start vim with
$vim *.tex -u vimtex

now the function key <F2> saves the current file, <F3>
saves the current file and compiles the master file,
<F4> shows the log file in a split window, <F5> shows
the dvi file etc.(all in command mode)
Also, <F9> and <F10> navigates through the various tex
files.
the script can be modified suitably for running
pdflatex,viewing ps file etc.

-- 
H.S.Rai

:
####[ Linux One Stanza Tip (LOST) ]###########################

Sub : How to check for bad tracks in cdrom           LOST #187

There are times it is only during opration you realise that a
CD has unreadable sectors ... To check for read defects do:
'dd if=/dev/cdrom of=/dev/null'
All read defects will be reported.

####<[EMAIL PROTECTED]>################################
:



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to