Loading ...
Sorry, an error occurred while loading the content.

Re: How to disable most automatic formatting

Expand Messages
  • Tony Mechelynck
    ... Oops, sorry, it s nolisp , not nolispindent -- and you may have to wrap it in :if has( lispindent ) . Best regards, Tony. -- LARGE MAN: Who s that
    Message 1 of 5 , Mar 29, 2009
    • 0 Attachment
      On 29/03/09 15:05, ivan budiselic wrote:
      > On Wed, Mar 11, 2009 at 10:31 AM, Tony Mechelynck
      > <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
      > posting
      > > 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
      > program
      > > 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.
      >
      > Try
      >
      > :filetype indent off
      > :set autoindent nosmartindent nocindent nolispindent indentexpr=
      >
      > [snip]
      >
      > 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,
      > Ivan

      Oops, sorry, it's 'nolisp', not 'nolispindent' -- and you may have to
      wrap it in ":if has('lispindent')".

      Best regards,
      Tony.
      --
      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)
      PICTURES LTD

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.