LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 07:49 PM   #1
tumana
Member
 
Registered: Mar 2004
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, 09: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:51 AM.

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
Open Source Consulting | Domain Registration