scrooloose/nerdcommenter — Issue #60: Comment suffix
Author: mMontu
Created: 2012-02-01 12:00:57+00:00
State: open

I find useful to mark part of the comments with 'XXX'' commenting some lines for a quick test or as a short time todo reminder, so it is easy to find those lines through a search in the project files.

Is it possible to set up an option string that is inserted after the start of a comment for all languages?
Something like 'g:NERDComSuffix' in the example below?

.vimrc:
nmap \cx :exe 'let g:NERDComSuffix = "XXX" \| normal \c '\|let g:NERDComSuffix =""

c code:
for (int i = 0; i < count; i++)
{
// XXX tempDisabled(); -> result of 'cx'
// if () -> result of 'c '
{
dfa
}
}