I was over at vimcasts and I stumbled upon the episode on Tidying whitespace. They came up with a function that removes trailing whitespace. Unlike my “homemade” solution, it goes the extra mile by keeping the history clean and putting your cursor back to where it was before you invoked the command. function! <SID>StripTrailingWhitespaces() " Preparation: save [...]
Archive for March, 2010
Preserve: A Vim function that keeps your state
Posted in development on March 31, 2010 | 6 Comments »
deps: what am I missing?
Posted in development on March 12, 2010 | 2 Comments »
Over the years, I’ve had to set up my work environment on many computers. By “work environment”, I don’t necessarily mean work-related — just the configuration and customizations I like to get things done. The first things I do on a new computer is download my dotfiles and symlink everything correctly. Under a minute, I [...]