summaryrefslogtreecommitdiffstats
path: root/llvm/utils/vim
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2009-01-08 02:17:30 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2009-01-08 02:17:30 +0000
commit93bd1ca55ec6f418cc77febc9da1cdbbc9303faa (patch)
treeff2575106b26d19a42287ca4fc48b82fc1fd968e /llvm/utils/vim
parent687501fdd4f60edcabb7b8ead951bc1a7138b765 (diff)
downloadbcm5719-llvm-93bd1ca55ec6f418cc77febc9da1cdbbc9303faa.tar.gz
bcm5719-llvm-93bd1ca55ec6f418cc77febc9da1cdbbc9303faa.zip
Use VIM's built-in shorthand for whitespace in regex.
llvm-svn: 61906
Diffstat (limited to 'llvm/utils/vim')
-rw-r--r--llvm/utils/vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/vim/vimrc b/llvm/utils/vim/vimrc
index 4be2b7f7934..43038399ea8 100644
--- a/llvm/utils/vim/vimrc
+++ b/llvm/utils/vim/vimrc
@@ -50,7 +50,7 @@ autocmd FileType make set noexpandtab
" 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
OpenPOWER on IntegriCloud