Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-06-2004, 07:49 PM   #1
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?

Old 04-06-2004, 09:12 PM   #2
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.


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 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:14 AM.

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