qmx::weblog

  • Home
  • Archives
  • about

remove trailing whitespace in vim

Here's a quick tip to highlight trailing whitespace - put this on your .vimrc:

match Todo /\s\+$/

This will flag them the same way as TODO or FIXME, with a ugly yellowish mark:

preview

To remove them, run this on normal mode:

:%s/\s\+$//e
  • Posted on July 11, 2010
  • View comments
  • Tagged en, vim, tips, whitespace

upcoming

links

  • Caelum
  • anderson leite
  • adriano almeida
  • fmeyer
  • rafael rosa fu
  • PotHix
  • dcrec1
  • fábio kung
  • codezone
  • bbcoimbra

Categories

  • pt
  • ruby
  • en
  • tips
  • vim
  • pair programming
  • xp
  • meta
  • ssh
  • screen
  • virtualbox
  • off-topic
  • levenshtein
  • text
  • tip
  • algoritmos
  • produtividade
  • x11
  • unix
  • linux
  • windows
  • bike
  • vm
  • consumer
  • producer
  • queue
  • thread
  • etl
  • whitespace
  • gherkin
  • kanban
  • ast
  • antlr
  • treetop
  • dsl
  • commute
  • intermodal
  • tmux
  • pareamento
  • shell
  • guru-sp
  • rubyreal2010
  • aws
  • ec2
  • hadoop
  • mapreduce
  • fibers
  • threads
  • java
  • batch
  • heroku
  • pairing
  • sinatra
  • dojo
  • readability
  • news
  • css
  • layout
  • useful
  • util
  • gem
  • metaprogramming
  • saúde
  • agilidade
  • dahon
  • nosql
  • sql
  • redis
  • mongo
  • wakeup
  • puzzle
  • sudoku
  • lazy
  • motivation
  • dev
  • hosting
  • cloud
  • rackspace
  • mysql
  • howto
  • postgres
  • git
  • gitosis

qmx::weblog © Douglas Campos / valid xhtml and atom / Powered by Enki / Style by styleshout and matthew james taylor