aboutsummaryrefslogtreecommitdiff
path: root/vim/config/display.vim
blob: 43889c1a68ae19374467cb8651cf50f72614325b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
" Set up short message settings
set shortmess=
" (file 3 of 5) -> (3 of 5)
set shortmess+=f
" [Incomplete last line] -> [eol]
set shortmess+=i
" I donated to Uganda, thanks Bram
set shortmess+=I
" 999 lines, 888 characters -> 999L, 888C
set shortmess+=l
" [Modified] -> [+]
set shortmess+=m
" [New File] -> [New]
set shortmess+=n
" Don't stack file writing messages
set shortmess+=o
" Don't stack file reading messages
set shortmess+=O
" [readonly] -> [RO]
set shortmess+=r
" Truncate file message at start if too long
set shortmess+=t
" Truncate other message in midle if too long
set shortmess+=T
" written -> [w], appended -> [a]
set shortmess+=w
" [dos format] -> [dos]
set shortmess+=x

" 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>