vim q

vim q

Shlomi Fish shlomif at iglu.org.il
Thu Nov 11 01:19:37 IST 2010


On Wednesday 10 November 2010 22:41:36 Shachar Shemesh wrote:
> On 10/11/10 10:17, Baruch Siach wrote:
> > Hi Erez,
> > 
> > On Wed, Nov 10, 2010 at 10:08:32AM +0200, Erez D wrote:
> >> thank you all for the reply
> >> 
> >> i decided to set ts,sw,et etc... in vimrc instead for security resons.
> >> although this implicate all types of files, i can ususally overcome it
> >> like pressing ^V-TAB in a makefile instead of a TAB
> > 
> > Or add the following to your .vimrc instead:
> > 
> > au FileType make set noexpandtab
> 
> THANK YOU!!!!
> 
> Now, I just need to see how to make vi disable tab expansion for C files
> if, and only if, I am editing the Linux kernel source code....
> 
> Either way, I edit makefiles at the same time I am editing C/C++/Java
> files, but when I'm editing kernel files, that's all I'm doing. As such,
> this is a much less urgent matter for me.
> 

See the help for vim's :autocmd: (shortened as :au here):

http://vimdoc.sourceforge.net/htmldoc/autocmd.html

Regards,

	Shlomi Fish

> Shachar

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
What does "Zionism" mean? - http://shlom.in/def-zionism

<rindolf> She's a hot chick. But she smokes.
<go|dfish> She can smoke as long as she's smokin'.

Please reply to list if it's a mailing list post - http://shlom.in/reply .



More information about the Linux-il mailing list