From 97f8038230006c6eb9abc4dfb49bfc978fc100dc Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 28 Oct 2017 21:55:14 +1300 Subject: Move list .vimrc config into subfile By "list" here I am referring to options for Vim's 'list' display setting, showing control characters visually. --- vim/config/list.vim | 9 +++++++++ vim/vimrc | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 vim/config/list.vim 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 l :setlocal list! + +" 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:> + diff --git a/vim/vimrc b/vim/vimrc index 9dcbb38f..58eb3a5f 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -84,11 +84,6 @@ endif " Keep plenty of command and search history, because disk space is cheap set history=2000 -" Don't show whitespace characters or end-of-line characters visually by -" default, but make \l toggle between them -set nolist -nnoremap l :setlocal list! - " Try to run the version of matchit.vim included in the distribution, if there " is one; extends % to match more than it does by default silent! runtime macros/matchit.vim @@ -208,10 +203,6 @@ set display=lastline set nowrap nnoremap w :set wrap! -" 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:> - " Don't write the output of :make to the terminal set shellpipe=> -- cgit v1.2.3