Skip to content

Commit 83dbe91

Browse files
author
Martin Grenfell
committed
latest nerd_(tree|snippets|commenter)
1 parent 559920d commit 83dbe91

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

doc/NERD_commenter.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,8 @@ if your face looked like a toaster and a t-rex put together? :(
802802
- add support for dhcpd, limits, ntp, resolv, rgb, sysctl, udevconf and
803803
udevrules. Thanks to Thilo Six.
804804
- match filetypes case insensitively
805+
- add support for mp (metapost), thanks to Andrey Skvortsov.
806+
- add support for htmlcheetah, thanks to Simon Hengel.
805807

806808
2.2.1
807809
- add support for newlisp and clojure, thanks to Matthew Lee Hinman.
@@ -1062,7 +1064,8 @@ Stefan Walk sieve
10621064
Adam Thorsen objj
10631065
Thilo Six dhcpd, limits, ntp, resolv, rgb, sysctl,
10641066
udevconf, udevrules
1065-
1067+
Andrey Skvortsov mp
1068+
Simon Hengel htmlcheetah
10661069
==============================================================================
10671070
9. License *NERDComLicense*
10681071

plugin/NERDSnippets.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ let s:snippets = {}
4343
let s:snippets['_'] = {}
4444

4545
function! s:enableMaps()
46-
exec "inoremap ".g:NERDSnippets_key." <c-r>=NERDSnippets_ExpandSnippet()<cr><c-r>=NERDSnippets_SwitchRegion(1)<cr>"
47-
exec "nnoremap ".g:NERDSnippets_key." i<c-r>=NERDSnippets_SwitchRegion(0)<cr>"
48-
exec "snoremap ".g:NERDSnippets_key." <esc>i<c-r>=NERDSnippets_SwitchRegion(0)<cr>"
46+
exec "inoremap ".g:NERDSnippets_key." <c-r>=NERDSnippets_ExpandSnippet()<cr><c-g>u<c-r>=NERDSnippets_SwitchRegion(1)<cr>"
47+
exec "nnoremap ".g:NERDSnippets_key." i<c-g>u<c-r>=NERDSnippets_SwitchRegion(0)<cr>"
48+
exec "snoremap ".g:NERDSnippets_key." <esc>i<c-g>u<c-r>=NERDSnippets_SwitchRegion(0)<cr>"
4949
endfunction
5050
command! -nargs=0 NERDSnippetsEnable call <SID>enableMaps()
5151
call s:enableMaps()

plugin/NERD_commenter.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,8 @@ function s:SetUpForNewFiletype(filetype, forceReset)
403403
call s:MapDelimiters('#', '')
404404
elseif a:filetype ==? "html"
405405
call s:MapDelimitersWithAlternative('<!--','-->', '//', '')
406+
elseif a:filetype ==? "htmlcheetah"
407+
call s:MapDelimiters('##','')
406408
elseif a:filetype ==? "htmldjango"
407409
call s:MapDelimitersWithAlternative('<!--','-->', '{#', '#}')
408410
elseif a:filetype ==? "htmlos"
@@ -539,6 +541,8 @@ function s:SetUpForNewFiletype(filetype, forceReset)
539541
call s:MapDelimiters('(*','*)')
540542
elseif a:filetype ==? "monk"
541543
call s:MapDelimiters(';', '')
544+
elseif a:filetype ==? "mp"
545+
call s:MapDelimiters('%', '')
542546
elseif a:filetype ==? "mplayerconf"
543547
call s:MapDelimiters('#', '')
544548
elseif a:filetype ==? "mrxvtrc"
@@ -708,7 +712,7 @@ function s:SetUpForNewFiletype(filetype, forceReset)
708712
elseif a:filetype ==? "sas"
709713
call s:MapDelimiters('/*','*/')
710714
elseif a:filetype ==? "sass"
711-
call s:MapDelimitersWithAlternative('//','', '/*', '')
715+
call s:MapDelimitersWithAlternative('//','', '/*', '*/')
712716
elseif a:filetype ==? "sather"
713717
call s:MapDelimiters('--', '')
714718
elseif a:filetype ==? "scala"

plugin/NERD_tree.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2690,7 +2690,7 @@ function! s:setupSyntaxHighlighting()
26902690
syn match treeHelp #^".*# contains=treeHelpKey,treeHelpTitle,treeFlag,treeToggleOff,treeToggleOn,treeHelpCommand
26912691

26922692
"highlighting for readonly files
2693-
syn match treeRO #[\/0-9a-zA-Z]\+.*\[RO\]# contains=treeFlag,treeBookmark
2693+
syn match treeRO #.*\[RO\]#hs=s+2 contains=treeFlag,treeBookmark,treePart,treePartFile
26942694

26952695
"highlighting for sym links
26962696
syn match treeLink #[^-| `].* -> # contains=treeBookmark,treeOpenable,treeClosable,treeDirSlash

0 commit comments

Comments
 (0)