LinuxQuestions.org
Visit Jeremy's Blog.
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


Reply
  Search this Thread
Old 04-06-2004, 08:49 PM   #1
tumana
Member
 
Registered: Mar 2004
Location: Belgium
Posts: 102

Rep: Reputation: 15
Make vi stop indenting


I can't stand the machine detemining when my code should be indented or not. While using vi, for simple html for example, it'll indent certain lines based on what tag you are using.

You start with <html> and hit enter. It'll indent the next line.

Is there someway to edit the vi editor so that it defaults to no indent everytime I open vi?

Thanks,
ian
 
Old 04-06-2004, 10:12 PM   #2
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
I'm not sure about Vi, but vimrc has: 'filetype plugin indent on' and '(un)set autoindent' relating to this.
I'm sure Vi probably has similar settings you can change in its rc file.
 
  


Reply


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
make: *** ld: No such file or directory. Stop. satimis Linux From Scratch 3 07-26-2005 03:15 AM
vim and fortran smart-indenting s_siouris Linux - Software 0 11-23-2004 06:00 AM
make: *** No rule to make target 'gconfig'. Stop. cswake Slackware 4 10-10-2004 01:13 PM
Error "make: *** No rule to make target `install'. Stop." help Ohmn Mandriva 8 07-02-2004 08:02 PM
XEmacs and automatic indenting jeempc Programming 3 03-17-2003 07:50 PM


All times are GMT -5. The time now is 03:56 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