aboutsummaryrefslogtreecommitdiff
path: root/vim/config
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-10 21:41:52 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-10 21:41:52 +1300
commit44d807167f1cf122e83e4a9b7c5c15409ab3d96d (patch)
treec9645086380fed9a5d663a60a0422a4e2ea51c78 /vim/config
parentMove 'paste' options into terminal.vim (diff)
downloaddotfiles-44d807167f1cf122e83e4a9b7c5c15409ab3d96d.tar.gz
dotfiles-44d807167f1cf122e83e4a9b7c5c15409ab3d96d.zip
Rearrange three smaller files into display.vim
Diffstat (limited to 'vim/config')
-rw-r--r--vim/config/display.vim16
-rw-r--r--vim/config/list.vim10
-rw-r--r--vim/config/messages.vim3
-rw-r--r--vim/config/number.vim5
-rw-r--r--vim/config/wrap.vim4
5 files changed, 20 insertions, 18 deletions
diff --git a/vim/config/display.vim b/vim/config/display.vim
new file mode 100644
index 00000000..bb160915
--- /dev/null
+++ b/vim/config/display.vim
@@ -0,0 +1,16 @@
+" Don't show the Vim startup message, I have registered Vim and donated to
+" Uganda
+set shortmess+=I
+
+" Don't show whitespace characters or end-of-line characters visually by
+" default, but make \l toggle between them
+set nolist
+nnoremap <silent>
+ \ <Leader>l
+ \ :<C-U>setlocal list! list?<CR>
+
+" Don't show line numbers by default, but \n toggles them
+set nonumber
+nnoremap <silent>
+ \ <Leader>n
+ \ :<C-U>setlocal number! number?<CR>
diff --git a/vim/config/list.vim b/vim/config/list.vim
deleted file mode 100644
index 1cb4345b..00000000
--- a/vim/config/list.vim
+++ /dev/null
@@ -1,10 +0,0 @@
-" Don't show whitespace characters or end-of-line characters visually by
-" default, but make \l toggle between them
-set nolist
-nnoremap <silent>
- \ <Leader>l
- \ :<C-U>setlocal list! 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:>
diff --git a/vim/config/messages.vim b/vim/config/messages.vim
deleted file mode 100644
index b99bebe1..00000000
--- a/vim/config/messages.vim
+++ /dev/null
@@ -1,3 +0,0 @@
-" Don't show the Vim startup message, I have registered Vim and donated to
-" Uganda
-set shortmess+=I
diff --git a/vim/config/number.vim b/vim/config/number.vim
deleted file mode 100644
index becc20f1..00000000
--- a/vim/config/number.vim
+++ /dev/null
@@ -1,5 +0,0 @@
-" Don't show line numbers by default, but \n toggles them
-set nonumber
-nnoremap <silent>
- \ <Leader>n
- \ :<C-U>setlocal number! number?<CR>
diff --git a/vim/config/wrap.vim b/vim/config/wrap.vim
index 51e9ea89..8c7829ba 100644
--- a/vim/config/wrap.vim
+++ b/vim/config/wrap.vim
@@ -9,6 +9,10 @@ nnoremap <silent>
" column with @ symbols instead, which I don't find very helpful
set display=lastline
+" 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:>
+
" When wrapping, j and k should move by screen row, and not to the same
" column number in the previous logical line, which feels very clumsy and is
" seldom particularly helpful; you can use n| to jump to the nth column in a