如何避免使用vim cindent缩进注释块?

问题描述:

我有一个注释块如:如何避免使用vim cindent缩进注释块?

/*++ 
Blah: 
    blah 
Foo: 
    foo 
--*/ 

而且我用下面的vim cindent选项:

set shiftwidth=2 
set tabstop=2 
set cindent 
set cino=g0,+0,(0,W2 

如果我选择的注释块,与=缩进它,VIM打开它into:

/*++ 
    Blah: 
    blah 
Foo: 
foo 
--*/ 

我可以告诉vim cindent不要缩进注释块吗?

+0

文件类型是什么您使用的,什么是的“意见”的值选项? – 2011-10-05 22:23:11

不,我不认为这是可能的。

如果评论缩进对你很重要,我会考虑切换注释风格(在'comments'mb:*)本:

/* 
* Blah: 
* blah 
* Foo: 
* foo 
*/ 
+0

谢谢。关闭这个问题,因为它现在已经打开了很长一段时间。这个答案对我来说似乎相当公平。 – rturrado 2016-08-12 06:49:29