Vim autoindent driving you mad?

Try this towards the end of your .vimrc

filetype indent off

and if you want to turn autoindent off just for the current document, try this

:setlocal noautoindent

Or even:

:setl noai

Reference
The Vim Tips Wiki: http://vim.wikia.com/wiki/How_to_stop_auto_indenting
(accessed 2011.07.23)

 

Advertisements
This entry was posted in Linux Stuff, Reminders and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s