diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-09-27 22:35:00 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-09-27 22:35:00 +0200 |
commit | 1aa162cd05fbbbb3dd4d958913757ca1ce18ec59 (patch) | |
tree | 33d080864442893f366f82003ca3bd8cfc3c91e1 | |
parent | b387349cdd89d5535fcd37932782c968ad306472 (diff) | |
download | vim-1aa162cd05fbbbb3dd4d958913757ca1ce18ec59.zip vim-1aa162cd05fbbbb3dd4d958913757ca1ce18ec59.tar.gz |
disable on write trailing spaces removal
-rw-r--r-- | vimrc | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 <leader>l :set list!<CR> -" Use the same symbols as TextMate for tabstops and EOLs -set listchars=tab:▸\ ,eol:¬ - " remap vim-comentary : nmap \\ <Plug>Commentary map <C-c> \\\ @@ -141,7 +140,7 @@ function! Preserve(command) endfunction nmap _$ :call Preserve("%s/\\s\\+$//e")<CR> nmap _= :call Preserve("normal gg=G")<CR> -autocmd BufWritePre * :call Preserve("%s/\\s\\+$//e") +" autocmd BufWritePre * :call Preserve("%s/\\s\\+$//e") source ~/.vim/scripts/bepo-layout.vim |