Re: How to disable most automatic formatting
- On 29/03/09 15:05, ivan budiselic wrote:
> On Wed, Mar 11, 2009 at 10:31 AM, Tony MechelynckOops, sorry, it's 'nolisp', not 'nolispindent' -- and you may have to
> <antoine.mechelynck@... <mailto:antoine.mechelynck@...>> wrote:
> On 09/03/09 16:27, ivan budiselic wrote:
> > Hi, I've searched around a bit for a solution to this problem, but
> > didn't really come up with anything that works, and since it
> seems to be
> > a pretty simple problem, I hope you won't mind too much that I'm
> > the question here.
> > Basically, the only formatting I want Vim to do for me is
> inserting the
> > same indent as the previous line when I move to a new line (either by
> > pressing enter in insert mode, or o, O etc. in normal mode). More
> > specifically, I never ever want it to reformat anything I wrote
> > previously. This has sort of bugged me before, but today I had a
> > I wrote in a crappy online editor that I had no way to export except
> > copy/pasting which resulted in the whole thing being dumped into a
> > single line.
> :filetype indent off
> :set autoindent nosmartindent nocindent nolispindent indentexpr=
> Just wanted to say thanks for your reply, I will try it. Sorry for the
> late reply, I was stuck in a hospital :/
> Best regards and thanks,
wrap it in ":if has('lispindent')".
LARGE MAN: Who's that then?
CART DRIVER: (Grudgingly) I dunno, Must be a king.
LARGE MAN: Why?
CART DRIVER: He hasn't got shit all over him.
"Monty Python and the Holy Grail" PYTHON (MONTY)
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php