summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-09-27 22:35:00 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-09-27 22:35:00 +0200
commit1aa162cd05fbbbb3dd4d958913757ca1ce18ec59 (patch)
tree33d080864442893f366f82003ca3bd8cfc3c91e1 /vimrc
parentb387349cdd89d5535fcd37932782c968ad306472 (diff)
downloadvim-1aa162cd05fbbbb3dd4d958913757ca1ce18ec59.zip
vim-1aa162cd05fbbbb3dd4d958913757ca1ce18ec59.tar.gz
disable on write trailing spaces removal
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc7
1 files 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 <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