"
" This file is free software: you can redistribute it and/or modify
" it under the terms of the GNU General Public License as published by
"
" This file is free software: you can redistribute it and/or modify
" it under the terms of the GNU General Public License as published by
set foldlevel=99 " no closed folds at default, 'foldenable' would disable
" folding which is not what I want
endif
set foldlevel=99 " no closed folds at default, 'foldenable' would disable
" folding which is not what I want
endif
" Activate spell checking, use English as default.
if exists('+spell') && has('syntax')
" Activate spell checking, use English as default.
if exists('+spell') && has('syntax')
-set listchars=trail:-,extends:>
+set listchars=
+" Display tabs as ">--------".
+set listchars+=tab:>-
+" Display trailing whitespace as "-".
+set listchars+=trail:-
+" Display markers for long lines when wrapping is disabled.
+set listchars+=extends:>,precedes:<
+" Display non-breakable space as "!".
let l:spaces = ['00a0', '1680', '180e', '2000', '2001', '2002',
\ '2003', '2004', '2005', '2006', '2007', '2008',
\ '2009', '200a', '200b', '200c', '200d', '202f',
\ '205f', '2060', '3000', 'feff']
let l:spaces = ['00a0', '1680', '180e', '2000', '2001', '2002',
\ '2003', '2004', '2005', '2006', '2007', '2008',
\ '2009', '200a', '200b', '200c', '200d', '202f',
\ '205f', '2060', '3000', 'feff']
" Don't ignore case while in insert mode, but ignore case in all other modes.
" This causes <C-N>/<C-P> to honor the case and thus only complete matching
" capitalization. But while searching (/) 'ignorecase' is used.
" Don't ignore case while in insert mode, but ignore case in all other modes.
" This causes <C-N>/<C-P> to honor the case and thus only complete matching
" capitalization. But while searching (/) 'ignorecase' is used.
- autocmd InsertEnter * set noignorecase
- autocmd InsertLeave * set ignorecase
+" InsertEnter/InsertLeave doesn't exist in older Vims.
+ if exists('##InsertEnter') && exists('##InsertLeave')
+ autocmd InsertEnter * set noignorecase
+ autocmd InsertLeave * set ignorecase
+ endif