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

Re: show hidden chars

Expand Messages
  • Mark Woodward
    ... add this (or whatever characters you want spaces/tabs etc to display as) to your vimrc see :h lcs set lcs=tab: ·,trail:-,eol:$,extends:»,precedes:«
    Message 1 of 4 , Aug 6, 2005
    • 0 Attachment
      luke@... said the following on 6/08/2005 5:35 PM:

      >Hi.
      >
      >06Aug2005 @ 08:56 Thomas thusly spake
      >
      >
      >>>The lines in the file have a 'newline' or 'return' at the end that I
      >>>cannot get
      >>>rid of by using 'chop', 'rtrim' or any other php function.
      >>>
      >>>
      >>Maybe it helps to set fileformat to unix when editing the files in vim,
      >>or did I misunderstand the problem?
      >>
      >>
      >
      >I want to *show* the hidden chars.
      >Thanks for your reply.
      >Kr.
      >Luke.
      >
      >
      >
      add this (or whatever characters you want spaces/tabs etc to display as)
      to your vimrc
      see :h lcs

      set lcs=tab:>·,trail:-,eol:$,extends:»,precedes:«
      " set and toggle
      nnoremap <leader>shc :set invlist<BAR>set list?<CR> " hidden
      characters

      --
      Mark
    Your message has been successfully submitted and would be delivered to recipients shortly.