mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-22 20:40:59 +08:00
add some mark quickhelp
This commit is contained in:
parent
5b35d0bb31
commit
ec7e013150
|
@ -1775,6 +1775,13 @@ function! s:DumpHelp()
|
||||||
let @h=@h."\" Other mappings~\n"
|
let @h=@h."\" Other mappings~\n"
|
||||||
let @h=@h."\" ". g:NERDTreeMapQuit .": Close the NERDTree window\n"
|
let @h=@h."\" ". g:NERDTreeMapQuit .": Close the NERDTree window\n"
|
||||||
let @h=@h."\" ". g:NERDTreeMapHelp .": toggle help\n"
|
let @h=@h."\" ". g:NERDTreeMapHelp .": toggle help\n"
|
||||||
|
let @h=@h."\" \n\" ----------------------------\n"
|
||||||
|
let @h=@h."\" Mark commands~\n"
|
||||||
|
let @h=@h."\" :Mark <name>\n"
|
||||||
|
let @h=@h."\" :MarkToRoot <name>\n"
|
||||||
|
let @h=@h."\" :OpenMark <name>\n"
|
||||||
|
let @h=@h."\" :ClearMarks [<mark names>]\n"
|
||||||
|
let @h=@h."\" :ClearAllMarks\n"
|
||||||
else
|
else
|
||||||
let @h="\" Press ". g:NERDTreeMapHelp ." for help\n"
|
let @h="\" Press ". g:NERDTreeMapHelp ." for help\n"
|
||||||
endif
|
endif
|
||||||
|
@ -2344,7 +2351,8 @@ function! s:SetupSyntaxHighlighting()
|
||||||
syn match treeHelpTitle #" .*\~#hs=s+2,he=e-1 contains=treeFlag
|
syn match treeHelpTitle #" .*\~#hs=s+2,he=e-1 contains=treeFlag
|
||||||
syn match treeToggleOn #".*(on)#hs=e-2,he=e-1 contains=treeHelpKey
|
syn match treeToggleOn #".*(on)#hs=e-2,he=e-1 contains=treeHelpKey
|
||||||
syn match treeToggleOff #".*(off)#hs=e-3,he=e-1 contains=treeHelpKey
|
syn match treeToggleOff #".*(off)#hs=e-3,he=e-1 contains=treeHelpKey
|
||||||
syn match treeHelp #^" .*# contains=treeHelpKey,treeHelpTitle,treeFlag,treeToggleOff,treeToggleOn
|
syn match treeHelpCommand #" :.\{-}\>#hs=s+3
|
||||||
|
syn match treeHelp #^" .*# contains=treeHelpKey,treeHelpTitle,treeFlag,treeToggleOff,treeToggleOn,treeHelpCommand
|
||||||
|
|
||||||
"highlighting for sym links
|
"highlighting for sym links
|
||||||
syn match treeLink #[^-| `].* -> # contains=treeMark
|
syn match treeLink #[^-| `].* -> # contains=treeMark
|
||||||
|
@ -2377,6 +2385,7 @@ function! s:SetupSyntaxHighlighting()
|
||||||
|
|
||||||
hi def link treeHelp String
|
hi def link treeHelp String
|
||||||
hi def link treeHelpKey Identifier
|
hi def link treeHelpKey Identifier
|
||||||
|
hi def link treeHelpCommand Identifier
|
||||||
hi def link treeHelpTitle Macro
|
hi def link treeHelpTitle Macro
|
||||||
hi def link treeToggleOn Question
|
hi def link treeToggleOn Question
|
||||||
hi def link treeToggleOff WarningMsg
|
hi def link treeToggleOff WarningMsg
|
||||||
|
|
Loading…
Reference in New Issue
Block a user