Wednesday, August 5, 2009

vim/vi inverted replace

Replace any character that isn't the ^ character with nothing:

%s/[^^]//g

No comments: