mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-20 01:23:39 -05:00
Compare commits
40 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98a6555e4a | ||
|
|
38fea1c935 | ||
|
|
f8acc5a067 | ||
|
|
01854b14c7 | ||
|
|
ada47584c3 | ||
|
|
92c7ee739b | ||
|
|
e48a40534c | ||
|
|
196fcfb728 | ||
|
|
fee5928dc8 | ||
|
|
2c57c5f4c5 | ||
|
|
3ffe25ce1d | ||
|
|
d39023bba7 | ||
|
|
530ea28e89 | ||
|
|
4fb9519254 | ||
|
|
41499a5767 | ||
|
|
e7eda3bb86 | ||
|
|
3d88620d61 | ||
|
|
76d86fc6ed | ||
|
|
ee6eae42ed | ||
|
|
9ca7bed8ea | ||
|
|
85b9b3b516 | ||
|
|
228787e62a | ||
|
|
513386ecfe | ||
|
|
d4d1491aa1 | ||
|
|
5b0e1b4b9a | ||
|
|
85112656a2 | ||
|
|
e0a2ca148f | ||
|
|
8f2a48ae16 | ||
|
|
7aa7dba2a2 | ||
|
|
ea5d006613 | ||
|
|
a2cd959936 | ||
|
|
6c1ed9b043 | ||
|
|
6083bf4a61 | ||
|
|
93f6d3434f | ||
|
|
f7bdc45c03 | ||
|
|
77cb5aa5fb | ||
|
|
312fff5bd4 | ||
|
|
8e8937e76a | ||
|
|
b5689392fc | ||
|
|
88718d26fd |
@@ -31,10 +31,6 @@ 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.
|
||||
* `'directory'`: Dump swap files under `~/.cache/vim/swap` (only if that
|
||||
directory already exists). Also `'backupdir'` and `'undodir'`. Try
|
||||
`mkdir -p ~/.cache/vim/{swap,backup,undo}`.
|
||||
* `nmap Y y$`: Make `Y` behave like `C` and `D`.
|
||||
* `runtime! macros/matchit.vim`: Load the version of matchit.vim that ships
|
||||
with Vim.
|
||||
|
||||
@@ -73,10 +69,10 @@ persuasion for me to remove them. Everything else is negotiable.
|
||||
Feel free to ask a question if you're not sure why I've set something, as I
|
||||
haven't put much effort into documenting that.
|
||||
|
||||
I'm a stickler for [commit messages][], so if you send me a pull
|
||||
request with so much as superfluous period in the subject line, I will
|
||||
close it without so much as a second thought, and save my precious attention
|
||||
for someone who can actually follow directions.
|
||||
I'm a stickler for [commit messages][], so if you send me a pull request with
|
||||
so much as a superfluous period in the subject line, I will close it without
|
||||
so much as a second thought, and save my precious attention for someone who
|
||||
can actually follow directions.
|
||||
|
||||
[GitHub issues]: http://github.com/tpope/vim-sensible/issues
|
||||
[commit messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
" sensible.vim - Defaults everyone can agree on
|
||||
" Maintainer: Tim Pope <http://tpo.pe/>
|
||||
" Version: 1.0
|
||||
" Version: 1.1
|
||||
|
||||
if exists('g:loaded_sensible') || &compatible
|
||||
finish
|
||||
@@ -17,18 +17,18 @@ endif
|
||||
|
||||
" Use :help 'option' to see the documentation for the given option.
|
||||
|
||||
set autoindent
|
||||
set backspace=indent,eol,start
|
||||
set complete-=i
|
||||
set showmatch
|
||||
|
||||
set autoindent
|
||||
set smarttab
|
||||
|
||||
set nrformats-=octal
|
||||
set shiftround
|
||||
|
||||
set ttimeout
|
||||
set ttimeoutlen=50
|
||||
set ttimeoutlen=100
|
||||
|
||||
set incsearch
|
||||
set smartcase
|
||||
" Use <C-L> to clear the highlighting of :set hlsearch.
|
||||
if maparg('<C-L>', 'n') ==# ''
|
||||
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
|
||||
@@ -39,54 +39,50 @@ set ruler
|
||||
set showcmd
|
||||
set wildmenu
|
||||
|
||||
set scrolloff=1
|
||||
set sidescrolloff=5
|
||||
if !&scrolloff
|
||||
set scrolloff=1
|
||||
endif
|
||||
if !&sidescrolloff
|
||||
set sidescrolloff=5
|
||||
endif
|
||||
set display+=lastline
|
||||
|
||||
if &encoding ==# 'latin1' && has('gui_running')
|
||||
set encoding=utf-8
|
||||
endif
|
||||
|
||||
if &listchars ==# 'eol:$'
|
||||
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
|
||||
if &termencoding ==# 'utf-8' || &encoding ==# 'utf-8'
|
||||
let &listchars = "tab:\u21e5 ,trail:\u2423,extends:\u21c9,precedes:\u21c7,nbsp:\u26ad"
|
||||
let &fillchars = "vert:\u259a,fold:\u00b7"
|
||||
endif
|
||||
endif
|
||||
|
||||
if &shell =~# 'fish$'
|
||||
set shell=/bin/bash
|
||||
endif
|
||||
|
||||
set autoread
|
||||
set autowrite
|
||||
set fileformats=unix,dos,mac
|
||||
set fileformats+=mac
|
||||
|
||||
set viminfo^=!
|
||||
|
||||
if isdirectory(expand('~/.cache/vim'))
|
||||
if &directory =~# '^\.,'
|
||||
set directory^=~/.cache/vim/swap//
|
||||
endif
|
||||
if &backupdir =~# '^\.,'
|
||||
set backupdir^=~/.cache/vim/backup//
|
||||
endif
|
||||
if exists('+undodir') && &undodir =~# '^\.\%(,\|$\)'
|
||||
set undodir^=~/.cache/vim/undo//
|
||||
endif
|
||||
if &history < 1000
|
||||
set history=1000
|
||||
endif
|
||||
if exists('+undofile')
|
||||
set undofile
|
||||
if &tabpagemax < 50
|
||||
set tabpagemax=50
|
||||
endif
|
||||
if !empty(&viminfo)
|
||||
set viminfo^=!
|
||||
endif
|
||||
set sessionoptions-=options
|
||||
|
||||
" Allow color schemes do bright colors without forcing bold.
|
||||
" Allow color schemes to do bright colors without forcing bold.
|
||||
if &t_Co == 8 && $TERM !~# '^linux'
|
||||
set t_Co=16
|
||||
endif
|
||||
|
||||
if !exists('g:netrw_list_hide')
|
||||
let g:netrw_list_hide = '^\.,\~$,^tags$'
|
||||
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) ==# ''
|
||||
runtime! macros/matchit.vim
|
||||
endif
|
||||
|
||||
" Make Y consistent with C and D. See :help Y.
|
||||
nnoremap Y y$
|
||||
inoremap <C-U> <C-G>u<C-U>
|
||||
|
||||
" vim:set ft=vim et sw=2:
|
||||
|
||||
Reference in New Issue
Block a user