LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 01-06-2012, 09:47 AM   #1
temp2012temp
LQ Newbie
 
Registered: Jan 2012
Posts: 11

Rep: Reputation: Disabled
how to avoid using expandtab in vim when editing makefile


I already added:

autocmd FileType makefile set noexpandtab

to my .vimrc file
But it doesn't work.

Here is my .vimrc:


set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
"behave mswin
syntax on
set expandtab "使用空格代替tab.
set tabstop=4
set shiftwidth=4
autocmd FileType makefile set noexpandtab
set autoindent
set cindent
set nu
set diffexpr=MyDiff()
set nobackup
let &termencoding=&encoding
 
Old 01-06-2012, 09:10 PM   #2
temp2012temp
LQ Newbie
 
Registered: Jan 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Anyone can help me
 
Old 01-07-2012, 01:59 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Please don't post your thread in multiple forums, per the LQ rules. I've reported this thread and several others (all apart from the one in Programming) for closure.
 
Old 01-07-2012, 02:45 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Closed as per above. Please, continue here: http://www.linuxquestions.org/questi...efiles-922519/

Last edited by colucix; 01-07-2012 at 02:48 AM.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Vim not putting tabs in Makefile sarin Programming 3 11-18-2011 08:38 AM
Help on editing perl script to avoid file names with colon (:) stelmed Programming 2 12-12-2006 05:17 PM
editing a makefile scotoma Linux - Newbie 2 10-03-2004 01:50 PM
vim and makefile melinda_sayang Linux - General 7 06-10-2004 12:16 AM
editing makefile ahjamm Linux - Software 2 10-25-2003 11:59 AM


All times are GMT -5. The time now is 10:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration