Cleaning whitespace
Published: Wednesday, Dec 26, 2007 Last modified: Thursday, Nov 14, 2024
Deleting whitespace around the cursor:
diw
Or the regexp:
:%s/\s*$//
Or this::
%s/ \+$//
Converting EVIL tabs to spaces
:retab
Deleting whitespace around the cursor:
diw
Or the regexp:
:%s/\s*$//
Or this::
%s/ \+$//
Converting EVIL tabs to spaces
:retab