Document unintuitive settings

Closes #7.
This commit is contained in:
Tim Pope
2013-01-07 10:40:31 -05:00
parent ca614497e0
commit a16257d90f

View File

@@ -14,6 +14,8 @@ if has('syntax') && !exists('g:syntax_on')
syntax enable syntax enable
endif endif
" Use :help 'option' to see the documentation for the given option.
set backspace=indent,eol,start set backspace=indent,eol,start
set complete-=i set complete-=i
set showmatch set showmatch
@@ -26,8 +28,9 @@ set ttimeoutlen=50
set incsearch set incsearch
set smartcase set smartcase
" Use <C-L> to clear the highlighting of :set hlsearch.
if maparg('<C-L>', 'n') ==# '' if maparg('<C-L>', 'n') ==# ''
nnoremap <silent> <C-L> :nohls<CR><C-L> nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
endif endif
set laststatus=2 set laststatus=2
@@ -69,6 +72,7 @@ if exists('+undofile')
set undofile set undofile
endif endif
" Allow color schemes do bright colors without forcing bold.
if &t_Co == 8 && $TERM !~# '^linux' if &t_Co == 8 && $TERM !~# '^linux'
set t_Co=16 set t_Co=16
endif endif
@@ -77,10 +81,12 @@ if !exists('g:netrw_list_hide')
let g:netrw_list_hide = '^\.,\~$,^tags$' let g:netrw_list_hide = '^\.,\~$,^tags$'
endif endif
" Load matchit.vim, but only if the user hasn't installed a newer version.
if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# '' if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# ''
runtime! macros/matchit.vim runtime! macros/matchit.vim
endif endif
" Make Y consistent with C and D. See :help Y.
nnoremap Y y$ nnoremap Y y$
" vim:set ft=vim et sw=2: " vim:set ft=vim et sw=2: