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

60714Re: raw fixed width data

Expand Messages
  • Tofer Chagnon
    Aug 2 2:13 PM
    • 0 Attachment
      On 8/2/05, Wes Potts <wespotts@...> wrote:
      > Is it possible to configure vim such that it can distinguish records
      > (and treat them as lines) in a fixed-width data file (without
      > newlines)?
      >
      > For example: if I have a data file containing a sequence of characters like:
      >
      > 123456789012345678901
      >
      > Can I set a "record length" of say... 3, such that vim displays lines
      > of 3 characters:
      >
      > 123
      > 456
      > 789
      > 012
      > 345
      > 678
      > 901
      >

      You could try doing a vertical split, and then adjusting the window
      width so that the desired number of columns show. You might want to
      do :nnoremap j gj :nnoremap k gk for this editing style.

      Tofer
    • Show all 10 messages in this topic