-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.config.vim
57 lines (40 loc) · 1.12 KB
/
defaults.config.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
" Set the leader to ,
let mapleader = ","
" Set the encoding to UTF-8.
set encoding=utf-8
" Use the system clipboard.
set clipboard=unnamed
" Set the length of the vim command history.
set history=1000
" Allow buffer switching without saving.
set hidden
" Allow cursor positioning one character past the end of the line.
set virtualedit=onemore
" Allow backspacing through indents, eol, and start of insert.
set backspace=indent,eol,start
" Enable incremental search.
set incsearch
" Highlight search results.
set hlsearch
" Enable case insensitive search.
set ignorecase
" Don't do things I didn't ask for...
set nowrap
" ...but indent my shit intelligently.
set autoindent
" Show matching brackets/parens
set showmatch
" Show list of possible completions instead of just completing.
set wildmenu
" Show problematic whitespace
set listchars=tab:›\ ,trail:•,extends:#,nbsp:.
" Undo behaviors
if has('persistent_undo')
set undofile
set undolevels=1000
set undoreload=10000
endif
" Lines to scroll when the cursor leaves the screen.
set scrolljump=5
" Minimum visible lines to keep above or below the cursor.
set scrolloff=3