[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: VIM Auto Indent



On Sat, Aug 03, 2002 at 12:33:02PM -0700, Thanasis Kinias wrote:
> scripsit Osamu Aoki:
> > On Wed, Jul 31, 2002 at 09:58:48AM -0400, Matthew Daubenspeck wrote:
> > > I am currently using VIM - Vi IMproved 6.1 and HATE how it uses
> > > auto-tabbing. Basically if I add a file and indent it with a tab, after
> > > I start a new line, vim auto-indents the next line with a tab.
> > > 
> > > This is helpful at times, but when I try inserting large sections of
> > > code, it really botches the hell out of it. Is there anyway to disable
> > > this?
> > 
> > I used to do
> > :set noai
> > 
> > but recently
> > 
> > just press F11
> 
> I.e., you've mapped <F11> to 'set noai'?


Oops, I did this  (copied from somewhere I forgot) on .~/vimrc:

" -------------------------------
" Local configuration
"
set nocompatible
set nopaste
set pastetoggle=<f11>
syn on


> ':set paste' is really preferable to just ':set noai' -- 'paste'
> includes 'noai', and also turn off wrapping and some other stuff which
> you don't want in pasted text.
> 
> I like the idea of mapping this to an F-key, however.
-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +++++
 Osamu Aoki @ Cupertino CA USA
 See "User's Guide":     http://www.debian.org/doc/manuals/users-guide/
 See "Debian reference": http://www.debian.org/doc/manuals/debian-reference/
 "Debian reference" Project at: http://qref.sf.net

 I welcome your constructive criticisms and corrections.



Reply to: