Yakov Lerner wrote:
On 4/24/07, Andrew Falanga <[EMAIL PROTECTED]> wrote:
Hi again,
I've finally found the answer to the indenting problems I was having.
I found that the indenting I was used to is present if I start
"cindent" in my .vimrc file. However, now I've got a problem. When I
have the starting for all files, when I edit TCL scripts, the
indenting behavior is not correct.
How do set up the .vimrc file to key off of the currently detected
file type and disable the cindent option?
Try
au FIleType tcl set nocindent
:au FileType tcl setlocal nocindent
otherwise it'll clobber the global default for the next file (tcl or not) that
you create
Alternately: create a file named (in Vim notation)
- on Windows: ~/vimfiles/after/ftplugin/tcl.vim
- on Unix: ~/.vim/after/ftplugin/tcl.vim
(in both cases, create any directories that wouldn't already be there)
and write into that file the single line:
setlocal nocindent
, that assuming your filetype is spelled 'tcl'.
To check how exactly filetype is spelled:
:e xxx.tcl
:set filetype?
Yakov
Best regards,
Tony.
--
Receiving a million dollars tax free will make you feel better than
being flat broke and having a stomach ache.
-- Dolph Sharp, "I'm O.K., You're Not So Hot"