Saturday, January 28, 2012

Re: vim indent

On 2012-01-28, zac.3.14159 wrote:
> filetype plugin indent on in .vimrc works to set different indent
> settings for different types of files,
> but I want to actually press the <tab> key to indent. as it is right
> now vim automatically inserts indents without
> pressing the <tab> key. how can I use <tab> to manually insert tabs
> instead of vim automatically inserting them
> for me?

Take a look at

:help cinkeys-format

especially this paragraph just above the Note:

For an emacs-style indent mode where lines aren't indented every
time you press <Enter> but only if you press <Tab>, I suggest:
:set cinkeys=0{,0},:,0#,!<Tab>,!^F
You might also want to switch off 'autoindent' then.

Is that what you had in mind?

HTH,
Gary

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment