vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] Identation/trailing spacing


From: Michael Tiernan
Subject: Re: [vile] Identation/trailing spacing
Date: Tue, 10 Jun 2014 06:16:44 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 6/10/14 6:02 AM, Paul van Tilburg wrote:
> In vim there is a thing such as list/listchars [1] to reveal these
> differences (or special characters for that matter).  Is there something
> like that in vile?  Or would that require a filter on top of an syntax
> filter?
>
The simplelist approach would be:
  :set list
which will show you all the characters, even hidden ones.

To clear the trailing whitespace:
  ^ATg
That will apply the "trim trailing whitespace" function globally and
nuke all the annoying crud.

To fix the space/tab thing, say the original spacing was "intended" to
be five spaces, you can then set the following:
  :set sw=5 ts=5
Then, use:
  ^ACTRL-Ig
which will then change all space/tab filled indents to one tab set at
"ts" characters.

That won't do it all for you but it will definatly clear about 80% for you.

-- 
  << MCT >> Michael C Tiernan. http://www.linkedin.com/in/mtiernan    
  Non Impediti Ratione Cogatationis
  Women and cats will do as they please, and men and dogs
   should relax and get used to the idea. -Robert A. Heinlein




reply via email to

[Prev in Thread] Current Thread [Next in Thread]