aboutsummaryrefslogtreecommitdiff
path: root/vim/config/display.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/config/display.vim')
-rw-r--r--vim/config/display.vim16
1 files changed, 16 insertions, 0 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>