mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-20 01:23:39 -05:00
Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d60332fa5 | ||
|
|
49ee364222 | ||
|
|
d205637361 | ||
|
|
b6033cb4d4 | ||
|
|
e57222db3b | ||
|
|
4b75359218 | ||
|
|
9e91be7e0f | ||
|
|
2fb074e841 | ||
|
|
680a5c6932 | ||
|
|
8c4429c70c | ||
|
|
26f8783e08 | ||
|
|
027b2390e1 | ||
|
|
d0beb8ab42 | ||
|
|
b30dcf387a | ||
|
|
64aa12b07b | ||
|
|
d002540b6c |
@@ -31,6 +31,7 @@ mostly `:set` calls.) Here's a taste:
|
||||
* `'incsearch'`: Start searching before pressing enter.
|
||||
* `'listchars'`: Makes `:set list` (visible whitespace) prettier.
|
||||
* `'scrolloff'`: Always show at least one line above/below the cursor.
|
||||
* `'autoread'`: Autoload file changes. You can undo by pressing `u`.
|
||||
* `runtime! macros/matchit.vim`: Load the version of matchit.vim that ships
|
||||
with Vim.
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
" sensible.vim - Defaults everyone can agree on
|
||||
" Maintainer: Tim Pope <http://tpo.pe/>
|
||||
" Version: 1.1
|
||||
" Version: 1.2
|
||||
|
||||
if exists('g:loaded_sensible') || &compatible
|
||||
finish
|
||||
else
|
||||
let g:loaded_sensible = 1
|
||||
let g:loaded_sensible = 'yes'
|
||||
endif
|
||||
|
||||
if has('autocmd')
|
||||
@@ -23,20 +23,20 @@ set complete-=i
|
||||
set smarttab
|
||||
|
||||
set nrformats-=octal
|
||||
set shiftround
|
||||
|
||||
set ttimeout
|
||||
set ttimeoutlen=100
|
||||
if !has('nvim') && &ttimeoutlen == -1
|
||||
set ttimeout
|
||||
set ttimeoutlen=100
|
||||
endif
|
||||
|
||||
set incsearch
|
||||
" Use <C-L> to clear the highlighting of :set hlsearch.
|
||||
if maparg('<C-L>', 'n') ==# ''
|
||||
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
|
||||
nnoremap <silent> <C-L> :nohlsearch<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
|
||||
endif
|
||||
|
||||
set laststatus=2
|
||||
set ruler
|
||||
set showcmd
|
||||
set wildmenu
|
||||
|
||||
if !&scrolloff
|
||||
@@ -55,12 +55,19 @@ if &listchars ==# 'eol:$'
|
||||
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
|
||||
endif
|
||||
|
||||
if &shell =~# 'fish$'
|
||||
if v:version > 703 || v:version == 703 && has("patch541")
|
||||
set formatoptions+=j " Delete comment character when joining commented lines
|
||||
endif
|
||||
|
||||
if has('path_extra')
|
||||
setglobal tags-=./tags tags-=./tags; tags^=./tags;
|
||||
endif
|
||||
|
||||
if &shell =~# 'fish$' && (v:version < 704 || v:version == 704 && !has('patch276'))
|
||||
set shell=/bin/bash
|
||||
endif
|
||||
|
||||
set autoread
|
||||
set fileformats+=mac
|
||||
|
||||
if &history < 1000
|
||||
set history=1000
|
||||
@@ -74,7 +81,7 @@ endif
|
||||
set sessionoptions-=options
|
||||
|
||||
" Allow color schemes to do bright colors without forcing bold.
|
||||
if &t_Co == 8 && $TERM !~# '^linux'
|
||||
if &t_Co == 8 && $TERM !~# '^linux\|^Eterm'
|
||||
set t_Co=16
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user