summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorOlliver Schinagl <oliver@schinagl.nl>2016-03-26 16:12:47 (GMT)
committerOlliver Schinagl <oliver@schinagl.nl>2017-04-18 08:30:22 (GMT)
commit6aa3855178b43f77e2f3967eb1cbf33eb1bb42fb (patch)
tree140a7d0ca797a5cf3b5eed1622851f879291a9ef /.vimrc
parent8dea5d3e53584aeeeb70bf0534c8d60f10f5f47a (diff)
downloaddotfiles-6aa3855178b43f77e2f3967eb1cbf33eb1bb42fb.zip
dotfiles-6aa3855178b43f77e2f3967eb1cbf33eb1bb42fb.tar.gz
dotfiles-6aa3855178b43f77e2f3967eb1cbf33eb1bb42fb.tar.bz2
vim: setup listchars and add F3 as key
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index b460dd0..983b35a 100644
--- a/.vimrc
+++ b/.vimrc
@@ -78,6 +78,12 @@ if &t_Co > 2
set t_Co=256
endif
+" F3: Toggle list (display unprintable characters).
+noremap <F3> :set list!<CR>
+inoremap <F3> <C-o>:set list!<CR>
+cnoremap <F3> <C-c>:set list!<CR>
+set listchars=tab:>-,trail:.,extends:>,precedes:<,eol:$
+
" Always show line numbering
set nu