commit 36d682b2c4aca0c26871c1d6aba39d4c91c5d0a0 parent 0d7d3a6d6a4c1545e86d08621724fa58e09d03fe Author: Anders Damsgaard <adc@geo.au.dk> Date: Mon, 3 Jun 2013 14:14:22 +0200 Added EOL and tab characters Diffstat:
M | .vimrc | | | 18 | +++++++++++++----- |
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/.vimrc b/.vimrc @@ -110,13 +110,21 @@ set textwidth=80 set colorcolumn=+1 hi ColorColumn guibg=#2e2e2e ctermbg=236 +" Enable rendering of invisible characters +set list + +" Shortcut to rapidly toggle `set list`, leader is '\' +nmap <leader>l :set list!<CR> + +" Use the same symbols as TextMate for tabstops and EOLs +set listchars=tab:▸\ ,eol:¬ + +"Invisible character colors +highlight NonText ctermfg=8 guifg=gray +highlight SpecialKey ctermfg=8 guifg=gray + " Disable arrow keys map <Left> <Nop> map <Right> <Nop> map <Up> <Nop> map <Down> <Nop> - -" Enable mouse if the terminal emulator allows it -if has('mouse') - set mouse=a -endif