remove NERDShutup and the associated message

This commit is contained in:
Martin Grenfell
2009-03-11 14:51:29 +13:00
parent b3d4476096
commit eeb369e6be
2 changed files with 1 additions and 16 deletions

View File

@@ -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 |'NERDRPlace'| Specifies what to use as the right
delimiter placeholder when nesting delimiter placeholder when nesting
comments. comments.
|'NERDShutUp'| Stops "Unknown filetype" output from the
script
|'NERDSpaceDelims'| Specifies whether to add extra spaces |'NERDSpaceDelims'| Specifies whether to add extra spaces
around delimiters when commenting, and around delimiters when commenting, and
whether to remove them when whether to remove them when
@@ -659,15 +657,6 @@ Default 1.
This option is used to specify whether place-holder delimiters should be used This option is used to specify whether place-holder delimiters should be used
when creating a nested comment. 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'* *'NERDSpaceDelims'*
Values: 0 or 1. 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 javascript.jquery, thanks to Ivan Devat.
- add support for cucumber and pdf. Fix sass and railslog delims, - add support for cucumber and pdf. Fix sass and railslog delims,
thanks to tpope thanks to tpope
- remove the NERDShutup option and the message is suppresses
2.2.1 2.2.1
- add support for newlisp and clojure, thanks to Matthew Lee Hinman. - add support for newlisp and clojure, thanks to Matthew Lee Hinman.

View File

@@ -60,7 +60,6 @@ call s:InitVariable("g:NERDUsePlaceHolders", 1)
call s:InitVariable("g:NERDRemoveAltComs", 1) call s:InitVariable("g:NERDRemoveAltComs", 1)
call s:InitVariable("g:NERDRemoveExtraSpaces", 1) call s:InitVariable("g:NERDRemoveExtraSpaces", 1)
call s:InitVariable("g:NERDRPlace", "<]") call s:InitVariable("g:NERDRPlace", "<]")
call s:InitVariable("g:NERDShutUp", '0')
call s:InitVariable("g:NERDSpaceDelims", 0) call s:InitVariable("g:NERDSpaceDelims", 0)
call s:InitVariable("g:NERDDelimiterRequests", 1) 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 "we have not hardcoded the comment delimiters to use for this filetype so
"get them from &commentstring. "get them from &commentstring.
else 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 "extract the delims from &commentstring
let left= substitute(&commentstring, '\(.*\)%s.*', '\1', '') let left= substitute(&commentstring, '\(.*\)%s.*', '\1', '')