From 1aa162cd05fbbbb3dd4d958913757ca1ce18ec59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 27 Sep 2012 22:35:00 +0200 Subject: disable on write trailing spaces removal --- vimrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index e5cb577..114a327 100644 --- a/vimrc +++ b/vimrc @@ -24,6 +24,8 @@ if !empty($DISPLAY) " -> Search hi search ctermbg=241 ctermfg=227 cterm=none hi incsearch ctermbg=241 ctermfg=227 cterm=none + " Use the same symbols as TextMate for tabstops and EOLs + set listchars=tab:▸\ ,eol:¬ else colorscheme adobe endif @@ -72,9 +74,6 @@ set showmode " show current mode " toggle view invisible with \t nmap l :set list! -" Use the same symbols as TextMate for tabstops and EOLs -set listchars=tab:▸\ ,eol:¬ - " remap vim-comentary : nmap \\ Commentary map \\\ @@ -141,7 +140,7 @@ function! Preserve(command) endfunction nmap _$ :call Preserve("%s/\\s\\+$//e") nmap _= :call Preserve("normal gg=G") -autocmd BufWritePre * :call Preserve("%s/\\s\\+$//e") +" autocmd BufWritePre * :call Preserve("%s/\\s\\+$//e") source ~/.vim/scripts/bepo-layout.vim -- cgit v1.1-2-g2b99