"
" 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
set ignorecase
set smartcase
" Activate spell checking, use English as default.
if exists('+spell') && has('syntax')
set ignorecase
set smartcase
" 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 "!".
" Write before suspending, thanks to deryni in #vim on Freenode (2011-05-09
" 20:02 CEST). To suspend without saving either unmap this or use :stop<CR>.
" Write before suspending, thanks to deryni in #vim on Freenode (2011-05-09
" 20:02 CEST). To suspend without saving either unmap this or use :stop<CR>.
nnoremap <silent> <C-Z> :update<CR>:stop<CR>
" 2<C-G> gives more verbose information, use it by default. Thanks to NCS_One
nnoremap <silent> <C-Z> :update<CR>:stop<CR>
" 2<C-G> gives more verbose information, use it by default. Thanks to NCS_One
" Highlight lines longer than 78 characters. Thanks to Tony Mechelynck
" <antoine.mechelynck@gmail.com> from the Vim mailing list. It can easily be
" disabled when necessary with :2match (in Vim >= 700).
" Highlight lines longer than 78 characters. Thanks to Tony Mechelynck
" <antoine.mechelynck@gmail.com> from the Vim mailing list. It can easily be
" disabled when necessary with :2match (in Vim >= 700).
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