mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-12 21:13:48 -05:00
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user