aboutsummaryrefslogtreecommitdiff
path: root/vim/config/list.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-28 21:55:14 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-28 21:55:21 +1300
commit97f8038230006c6eb9abc4dfb49bfc978fc100dc (patch)
treeb7ae757336d9d9ab142fd9d461271f4405b2dccb /vim/config/list.vim
parentMove BigFileMeasures() .vimrc func into subfile (diff)
downloaddotfiles-97f8038230006c6eb9abc4dfb49bfc978fc100dc.tar.gz
dotfiles-97f8038230006c6eb9abc4dfb49bfc978fc100dc.zip
Move list .vimrc config into subfile
By "list" here I am referring to options for Vim's 'list' display setting, showing control characters visually.
Diffstat (limited to 'vim/config/list.vim')
-rw-r--r--vim/config/list.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/vim/config/list.vim b/vim/config/list.vim
new file mode 100644
index 00000000..87e80005
--- /dev/null
+++ b/vim/config/list.vim
@@ -0,0 +1,9 @@
+" Don't show whitespace characters or end-of-line characters visually by
+" default, but make \l toggle between them
+set nolist
+nnoremap <leader>l :setlocal list!<CR>
+
+" Clearly show when the start or end of the row does not correspond to the
+" start and end of the line
+set listchars+=precedes:<,extends:>
+