File: devhelp.vim

package info (click to toggle)
devhelp 0.19.1-6
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,712 kB
  • ctags: 688
  • sloc: sh: 9,315; ansic: 5,790; cpp: 645; python: 316; makefile: 294; perl: 216; lisp: 6
file content (15 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" vim macro to jump to devhelp topics.
" Idea copied from the same "emacs integration" script by 
" Richard Hult <richard@imendio.com>.
" -- Gert
function! DevHelpCurrentWord()
	let word = expand("<cword>")
	exe "!devhelp -s " . word
endfunction

" Example: bind <ESC>h to start devhelp and search for the word under the
" cursor
nmap <ESC>h :call DevHelpCurrentWord()<CR>

" Tips: use -g WIDTHxHEIGHT+XOFF+YOFF to set the size and position of
" the window