Main Page | Report this Page
Computers Forum Index  »  Computer - Editors  »  [VIM] Turning off the "helpful" languages formatting...
Page 1 of 1    

[VIM] Turning off the "helpful" languages formatting...

Author Message
Kenny McCormack...
Posted: Tue Sep 22, 2009 12:56 pm
Guest
I find that when I am writing C or AWK code, VIM moves my cursor left
and right at various points to implement its idea of proper formatting.

Obviously, these ideas don't mesh with my ideas - I am perfectly capable
of formatting my own code, thankyouverymuch.

How to turn this "feature" off?

Note: I like VIM's syntax highlighting; just don't like it moving the
cursor back and forth.
 
Mikolaj Machowski...
Posted: Tue Sep 22, 2009 3:46 pm
Guest
Kenny McCormack scripsit:
Quote:
I find that when I am writing C or AWK code, VIM moves my cursor left
and right at various points to implement its idea of proper formatting.

Obviously, these ideas don't mesh with my ideas - I am perfectly capable
of formatting my own code, thankyouverymuch.

How to turn this "feature" off?

Note: I like VIM's syntax highlighting; just don't like it moving the
cursor back and forth.


:help filetype-indent-off

m.
--
LaTeX + Vim = http://vim-latex.sourceforge.net/
Vim Universal Templates: http://vim.sf.net/script.php?script_id=1078
CLEWN - http://clewn.sf.net
 
Kenny McCormack...
Posted: Tue Sep 22, 2009 7:04 pm
Guest
In article <slrnhbhs73.4av.mikmach at (no spam) blacher.nos>,
Mikolaj Machowski <mikmach at (no spam) wp.pl> wrote:
Quote:
Kenny McCormack scripsit:
I find that when I am writing C or AWK code, VIM moves my cursor left
and right at various points to implement its idea of proper formatting.

Obviously, these ideas don't mesh with my ideas - I am perfectly capable
of formatting my own code, thankyouverymuch.

How to turn this "feature" off?

Note: I like VIM's syntax highlighting; just don't like it moving the
cursor back and forth.


:help filetype-indent-off

We have a winner!

I put: filetype indent off
in my .vimrc and now things are right again.

Thank you!
 
Tim Roberts...
Posted: Thu Sep 24, 2009 5:16 am
Guest
gazelle at (no spam) shell.xmission.com (Kenny McCormack) wrote:
Quote:

I find that when I am writing C or AWK code, VIM moves my cursor left
and right at various points to implement its idea of proper formatting.

Obviously, these ideas don't mesh with my ideas - I am perfectly capable
of formatting my own code, thankyouverymuch.

How to turn this "feature" off?

Note: I like VIM's syntax highlighting; just don't like it moving the
cursor back and forth.

I see that you are happy just by turning it off, but I would point out that
the automatic indentation is quite configurable. You might be happier if
you were to configure the indenting to match your own preferred style. It
does save typing.
--
Tim Roberts, timr at (no spam) probo.com
Providenza & Boekelheide, Inc.
 
 
Page 1 of 1    
All times are GMT
The time now is Thu Dec 10, 2009 9:07 am