Hi all,
My Expandtab seems to be missing! For some reason it is unset. My vimrc is
reasonably extensive, but for test purposes it has been trimmed to:
set shiftwidth=4
set tabstop=4
set smarttab
set ai "Auto indent
set si "Smart indet
set expandtab
When editing a text file, I get: the following output for :set options:
:set
--- Options ---
autoindent history=50 shiftwidth=4 ttyfast
t_Sf=^[[3%dm
cscopetag hlsearch smartindent ttymouse=xterm2
cscopeverbose ruler smarttab viminfo='20,"50
expandtab scroll=32 tabstop=4 t_Sb=^[[4%dm
backspace=indent,eol,start
cscopeprg=/usr/bin/cscope
formatoptions=tcql
guicursor=n-v-c:block,o:hor50,i-ci:hor15,r-cr:hor30,sm:block,a:blinkon0
Press ENTER or type command to continue
When editing a Makefile, I get:
:set
--- Options ---
autoindent history=50 shiftwidth=4 tabstop=4
t_Sb=^[[4%dm
cscopetag hlsearch smartindent ttyfast
t_Sf=^[[3%dm
cscopeverbose ruler smarttab ttymouse=xterm2
filetype=make scroll=32 syntax=make viminfo='20,"50
backspace=indent,eol,start
comments=sO:# -,mO:# ,b:#
commentstring=# %s
cscopeprg=/usr/bin/cscope
formatoptions=croql
guicursor=n-v-c:block,o:hor50,i-ci:hor15,r-cr:hor30,sm:block,a:blinkon0
include=^\s*include
Press ENTER or type command to continue
The diff between these two are:
Text file:
expandtab
formatoptions=tcql
Makefile:
When opening a Makefile, for instance, the
filetype=make
syntax=make
comments=sO:# -,mO:# ,b:#
commentstring=# %s
formatoptions=croql
include=^\s*include
Similar disappearance happens when editing perl or C files.
What is doing this?
Best regards,
Frans
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php