Discussion:
vim cinoptions
e***@cs.umn.edu
2010-12-23 13:49:36 UTC
Permalink
Hi all,

As I hack away on cmus, I'm curious about what cinoptions other
developers use (those of us who use vim anyways (perhaps I'm the only
one, who knows...)). For the most part so far I've just been hand
indenting things as I go to fit as close to the style as I can
remember, but it'd be nice to be able to set it in cinoptions.

Peace,
F.
Johannes Weißl
2010-12-23 14:11:12 UTC
Permalink
Post by e***@cs.umn.edu
As I hack away on cmus, I'm curious about what cinoptions other
developers use (those of us who use vim anyways (perhaps I'm the only
one, who knows...)). For the most part so far I've just been hand
indenting things as I go to fit as close to the style as I can
remember, but it'd be nice to be able to set it in cinoptions.
I have set this in ~/.vim/ftplugin/c.vim

set cindent
if expand('%:p:h') =~ 'cmus'
set shiftwidth=8
set tabstop=8
set noexpandtab
endif

So no cinoptions... I never had any problems editing, but if there are
better settings I would be happy to hear about them!

Loading...