Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv1583
Modified Files:
wizardfuncs.vim
Log Message:
F1 help for LaTeX items, docs in latex-suite.txt commit
Index: wizardfuncs.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/wizardfuncs.vim,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** wizardfuncs.vim 12 Jan 2003 22:02:40 -0000 1.7
--- wizardfuncs.vim 2 Apr 2003 20:58:59 -0000 1.8
***************
*** 200,202 ****
--- 200,225 ----
endfunction "}}}
+ " ==============================================================================
+ " Add looking help into latexhelp.txt
+ " ==============================================================================
+
+ inoremap <buffer> <silent> <F1> <C-O>:silent! call TexHelp()<CR>
+ nnoremap <buffer> <silent> <F1> :silent! call TexHelp()<CR>
+
+ function! TexHelp()
+ if synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^tex'
+ setlocal isk+=\
+ let curword = expand('<cword>')
+ setlocal isk-=\
+ if curword =~ "^\\"
+ exe 'help ' . curword
+ else
+ help
+ endif
+ else
+ help
+ endif
+ endfunction
+
+ "
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
|