[llvm-commits] [llvm] r61906 - /llvm/trunk/utils/vim/vimrc
Misha Brukman
brukman+llvm at gmail.com
Wed Jan 7 18:17:30 PST 2009
Author: brukman
Date: Wed Jan 7 20:17:30 2009
New Revision: 61906
URL: http://llvm.org/viewvc/llvm-project?rev=61906&view=rev
Log:
Use VIM's built-in shorthand for whitespace in regex.
Modified:
llvm/trunk/utils/vim/vimrc
Modified: llvm/trunk/utils/vim/vimrc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/vim/vimrc?rev=61906&r1=61905&r2=61906&view=diff
==============================================================================
--- llvm/trunk/utils/vim/vimrc (original)
+++ llvm/trunk/utils/vim/vimrc Wed Jan 7 20:17:30 2009
@@ -50,7 +50,7 @@
" Useful macros for cleaning up code to conform to LLVM coding guidelines
" Delete trailing whitespace and tabs at the end of each line
-command! DeleteTrailingWs :%s/[\ \t]\+$//
+command! DeleteTrailingWs :%s/\s\+$//
" Convert all tab characters to two spaces
command! Untab :%s/\t/ /g
More information about the llvm-commits
mailing list