Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
update nerdcommenter
Browse files Browse the repository at this point in the history
  • Loading branch information
bleything committed Dec 8, 2010
1 parent c4da3a4 commit ff0be07
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
9 changes: 9 additions & 0 deletions bundle/nerdcommenter/doc/NERD_commenter.txt
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,15 @@ The latest dev versions are on github
==============================================================================
8. Changelog *NERDComChangelog*

2.3.0
- remove all filetypes which have a &commentstring in the standard vim
runtime for vim > 7.0 unless the script stores an alternate set of
delimiters
- make the script complain if the user doesnt have filetype plugins enabled
- use <leader> instead of comma to start the default mappings
- fix a couple of bugs with sexy comments - thanks to Tim Smart
- lots of refactoring

2.2.2
- remove the NERDShutup option and the message is suppresses, this makes
the plugin silently rely on &commentstring for unknown filetypes.
Expand Down
14 changes: 9 additions & 5 deletions bundle/nerdcommenter/plugin/NERD_commenter.vim
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
" ============================================================================
" File: NERD_commenter.vim
" Description: vim global plugin that provides easy code commenting
" Maintainer: Martin Grenfell <martin_grenfell at msn dot com>
" Version: 2.2.2
" Last Change: 09th October, 2010
" Maintainer: Martin Grenfell <martin.grenfell at gmail dot com>
" Version: 2.3.0
" Last Change: 08th December, 2010
" License: This program is free software. It comes without any warranty,
" to the extent permitted by applicable law. You can redistribute
" it and/or modify it under the terms of the Do What The Fuck You
Expand Down Expand Up @@ -1001,6 +1001,10 @@ function! NERDComment(isVisual, type) range
let oldIgnoreCase = &ignorecase
set noignorecase

if !exists("g:did_load_ftplugin") || g:did_load_ftplugin != 1
call s:NerdEcho("filetype plugins should be enabled. See :help NERDComInstallation and :help :filetype-plugin-on", 0)
endif

if a:isVisual
let firstLine = line("'<")
let lastLine = line("'>")
Expand Down Expand Up @@ -2400,10 +2404,10 @@ endfunction
function s:NerdEcho(msg, typeOfMsg)
if a:typeOfMsg == 0
echohl WarningMsg
echo 'NERDCommenter:' . a:msg
echom 'NERDCommenter:' . a:msg
echohl None
elseif a:typeOfMsg == 1
echo 'NERDCommenter:' . a:msg
echom 'NERDCommenter:' . a:msg
endif
endfunction

Expand Down

0 comments on commit ff0be07

Please sign in to comment.