mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-09 10:13:48 -05:00
remove NERDShutup and the associated message
This commit is contained in:
@@ -436,8 +436,6 @@ then the script would do a sexy comment on the last visual selection.
|
||||
|'NERDRPlace'| Specifies what to use as the right
|
||||
delimiter placeholder when nesting
|
||||
comments.
|
||||
|'NERDShutUp'| Stops "Unknown filetype" output from the
|
||||
script
|
||||
|'NERDSpaceDelims'| Specifies whether to add extra spaces
|
||||
around delimiters when commenting, and
|
||||
whether to remove them when
|
||||
@@ -659,15 +657,6 @@ Default 1.
|
||||
This option is used to specify whether place-holder delimiters should be used
|
||||
when creating a nested comment.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
*'NERDShutUp'*
|
||||
Values: 0 or 1.
|
||||
Default 1.
|
||||
|
||||
This option is used to prevent the script from echoing "Unknown filetype"
|
||||
messages. Stick this line in your vimrc: >
|
||||
let NERDShutUp=1
|
||||
<
|
||||
------------------------------------------------------------------------------
|
||||
*'NERDSpaceDelims'*
|
||||
Values: 0 or 1.
|
||||
@@ -809,6 +798,7 @@ if your face looked like a toaster and a t-rex put together? :(
|
||||
- add support for javascript.jquery, thanks to Ivan Devat.
|
||||
- add support for cucumber and pdf. Fix sass and railslog delims,
|
||||
thanks to tpope
|
||||
- remove the NERDShutup option and the message is suppresses
|
||||
|
||||
2.2.1
|
||||
- add support for newlisp and clojure, thanks to Matthew Lee Hinman.
|
||||
|
||||
@@ -60,7 +60,6 @@ call s:InitVariable("g:NERDUsePlaceHolders", 1)
|
||||
call s:InitVariable("g:NERDRemoveAltComs", 1)
|
||||
call s:InitVariable("g:NERDRemoveExtraSpaces", 1)
|
||||
call s:InitVariable("g:NERDRPlace", "<]")
|
||||
call s:InitVariable("g:NERDShutUp", '0')
|
||||
call s:InitVariable("g:NERDSpaceDelims", 0)
|
||||
call s:InitVariable("g:NERDDelimiterRequests", 1)
|
||||
|
||||
@@ -948,10 +947,6 @@ function s:SetUpForNewFiletype(filetype, forceReset)
|
||||
"we have not hardcoded the comment delimiters to use for this filetype so
|
||||
"get them from &commentstring.
|
||||
else
|
||||
"print a disclaimer to the user :)
|
||||
if !g:NERDShutUp
|
||||
call s:NerdEcho("Unknown filetype '".a:filetype."', setting delimiters by &commentstring.\nPleeeeease email the author of the NERD commenter with this filetype\nand its delimiters!", 0)
|
||||
endif
|
||||
|
||||
"extract the delims from &commentstring
|
||||
let left= substitute(&commentstring, '\(.*\)%s.*', '\1', '')
|
||||
|
||||
Reference in New Issue
Block a user