nerdcommenter icon indicating copy to clipboard operation
nerdcommenter copied to clipboard

NERDLPlace & NERDRPlace are not working

Open mMontu opened this issue 11 years ago • 0 comments

NERDLPlace & NERDRPlace are not working.

The problem can be reproduced onn a fresh installation of gVim, with .vimrc containng only filetype plugin indent on and .vim containing only nerdcommenter files, by creating a .c file containing only the following lines:

abc
def
/* ghi */

Issuing gg3\cn3\c (where \ = ) leads to:

abc
def
[> ghi <]

The example given on h 'NERDLPlace' also doesn't works, leading to

FOO int horse BAR

As I don't understand why this feature is useful I'm not sure whether is better to fix it, remove or add an option to disable it.

In the meantime the following workaround seems to work for C/C++ file types:

let g:NERDLPlace='/*'
let g:NERDRPlace='*/'

mMontu avatar Oct 26 '13 17:10 mMontu