[vox] vim magic
Mark K. Kim
vox@lists.lugod.org
Wed, 21 Jan 2004 22:48:40 -0800 (PST)
On Wed, 21 Jan 2004, Bryan Richter wrote:
> Generating a column of numbers with a single command.
> "1
> 2
> 3
> 4
> 5
> ..."
There are many ways to do this, none of which I know off the top of my
head... =P
> Second was colorizing all white space, which was handy when checking for
> spaces at the end of a line, etc.
Easy:
:set hlsearch " enable highlighted search
/\s " search for whitespaces
Or... if you just wanna get rid of whitespaces at the end of each line:
:%s/\s*$//
-Mark
--
Mark K. Kim
AIM: markus kimius
Homepage: http://www.cbreak.org/
Xanga: http://www.xanga.com/vindaci
Friendster: http://www.friendster.com/user.jsp?id=13046
PGP key fingerprint: 7324 BACA 53AD E504 A76E 5167 6822 94F0 F298 5DCE
PGP key available on the homepage