From eeb369e6be627c512f5d01c4de7f3cd9d80b505c Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Wed, 11 Mar 2009 14:51:29 +1300 Subject: [PATCH] remove NERDShutup and the associated message --- doc/NERD_commenter.txt | 12 +----------- plugin/NERD_commenter.vim | 5 ----- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 5a7c82b..d1f18ba 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -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. diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 4bca34e..5f94df9 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -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', '')