Re: OT: vim syntax highlight on C program files only?
On Tue, Aug 28, 2001 at 01:18:43PM -0700, Karsten M. Self wrote:
| on Tue, Aug 28, 2001 at 08:31:18AM -0400, Rob Ransbottom (rir@mediaone.net) wrote:
| > On Mon, 27 Aug 2001, Osamu Aoki wrote:
| >
| > > Just a thought and matter of taste, but...
| >
| > You may also embed commands near the start of your file:
| >
| > :vi set tabstops=4 showmatch:
|
| Is there a setting which allows a tab to indent by 4 chars, but leaves
| tabstops at 8 chars, where most apps seem to expect to find them?
See my example. The key settings are "softtabstop" and "shiftwidth",
which can be abbreviated "sts" and "sw" respectively.
| I'm also curious as to the interaction between vim and indent,
| particularly the ~/.indent.pro preferences file, in vim's 'cindent'
| mode. I've found that with -kr4 set in my indent preferences file, I'm
| getting the desired behavior in vim with autoindentation, but I'm not
| convinced it's a causal relation.
I didn't think vim used any external files to control it's indenting
behavior but I could be wrong. Vim's cindent mode is controlled by
the 'cinwords' and other variables inside of vim.
-D
Reply to: