Bug 72980 - cindent being ignored from .vimrc
Summary: cindent being ignored from .vimrc
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: vim
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-08-29 17:32 UTC by Steve Fox
Modified: 2007-04-18 16:46 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-10-27 12:19:12 UTC
Embargoed:


Attachments (Terms of Use)

Description Steve Fox 2002-08-29 17:32:49 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020809

Description of problem:
I have 'set cindent' in my .vimrc file, but it is no being activated when vim
starts. If I manually tell vim ':set cindent' it will work, but it's annoying to
always have to manually enable this.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Put 'set cindent' in your .vimrc file
2. Edit some source code and press enter after typing a {

	

Actual Results:  The cursor goes to the beginning of the next line

Expected Results:  The cursor should go to the next line, then indent to one tab
more than the { on the previous line.

Additional info:

auto-indent also enabled

vim-minimal-6.1-14
vim-X11-6.1-14
vim-common-6.1-14
vim-enhanced-6.1-14

Comment 1 Karsten Hopp 2002-11-12 13:09:45 UTC
This works for me. 
- Did you start the editor with 'vi' or 'vim' ?
- is 'vi' an alias to vim ?  'type vi' ?

/bin/vi is a stripped-down version of vim and doesn't support all the fancy
options. Please make sure that you use /usr/bin/vim


Comment 2 Steve Fox 2002-11-12 14:12:06 UTC
This happens for either 'vi' (alias to vim, see below), or im gvim. I had
thought that I tested this with some C source, but apparently that is working
now. However, my main concern is that this doesn't work in PHP mode. Note that
it *does* work if you manually type :set cindent in the editor. I have verified
that this work with Mandrake Linux 9, which uses the same php.vim file from
http://www.isp.de/data/php.vim dated 2002 Mar 11.

$ which vi
alias vi='vim'
        /usr/bin/vim



Note You need to log in before you can comment on or make changes to this bug.