Skip to content

Instantly share code, notes, and snippets.

@mmisono
Created June 12, 2010 14:54
Show Gist options
  • Save mmisono/435792 to your computer and use it in GitHub Desktop.
Save mmisono/435792 to your computer and use it in GitHub Desktop.
" help
" Tabでタグにジャンプ
autocmd MyAutoCmd FileType help
\ nnoremap <buffer> <silent> <Tab> /\C
\\*\@<!\(
\\\\@<!\|[#-)!+-~]\+\|\\|
\'[a-z]\{2,\}'\\|
\'t_..'\\|
\<[-a-zA-Z0-9_]\+>\\|
\CTRL-\(.\\|Break\\|PageUp\\|PageDown\\Insert\\|Del\)\\|
\{[-a-zA-Z0-9'":%#=[\]<>.,]\+}\\|
\{[-a-zA-Z0-9'"*+/:%#=[\]<>.,]\+}\\|
\\[\(range\\|count\\|+cmd\\|++opt\)]
\\)<CR>:nohl<CR>
\| nnoremap <buffer> <silent> <S-Tab> ?\C
\\*\@<!\(
\\\\@<!\|[#-)!+-~]\+\|\\|
\<!'[a-z]\{2,\}'\\|
\'t_..'\\|
\<[-a-zA-Z0-9_]\+>\\|
\CTRL-\(.\\|Break\\|PageUp\\|PageDown\\Insert\\|Del\)\\|
\{[-a-zA-Z0-9'":%#=[\]<>.,]\+}\\|
\{[-a-zA-Z0-9'"*+/:%#=[\]<>.,]\+}\\|
\\[\(range\\|count\\|+cmd\\|++opt\)]
\\)<CR>:nohl<CR>
" from syntax/help.vim
" pattern1 \\\@<!|[#-)!+-~]\+| helpHyperTextJump
" pattern2 '[a-z]\{2,\}' helpOption
" pattern3 't_..' helpOption
" pattern4 <[-a-zA-Z0-9_]\+> helpSpecial
" pattern5 CTRL-.,CTRL-Break,CTRL-PageUp,CTRL-PageDown,CTRL-Insert,CTRL-Del,CTRL-{char} helpSpecial
" pattern6 {[-a-zA-Z0-9'":%#=[\]<>.,]\+} helpSpecial
" pattern7 {[-a-zA-Z0-9'"*+/:%#=[\]<>.,]\+} helpSpecial
" pattern8 \[count],\[range],\[+cmd],\[++opt] helpSpesial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment