-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaults.vim
98 lines (70 loc) · 1.95 KB
/
defaults.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
set number
set autoindent
set noshowmode
set list
set listchars=tab:»»,trail:•
set tags+=.git/tags
" Assume a capable terminal.
if has('nvim')
set termguicolors
endif
" Smart indent is crap.
set nosmartindent
" The world is not prepared for deviations
set shell=/bin/bash
" Ensure backspace behavior is not alien.
set backspace=indent,eol,start
" Allow modelines.
set modeline
" Turn on command line completion wild style.
set wildmenu
" have command-line completion <Tab> (for filenames, help topics, option names)
" first complete to longest common string, then list the available options and
" complete the first optiont, then have further <Tab>s cycle through the
" possibilities:
set wildmode=longest,list:longest,list:full
" Leave the cursor where it was.
set nostartofline
" Keep some lines and rows around for scope.
set scrolloff=10
set sidescroll=1
set sidescrolloff=10
set history=50
" "Unlimited" scrollback for terminals
set scrollback=-1
" always show the status line.
set laststatus=2
" Lazy redraw.
set lazyredraw
" display the current mode and partially-typed commands in the status line:
set showmode
set showcmd
set nowrap
" Allow buffer swapps without having to write them to disk.
set hidden
" Wrap search around the end of the file
set wrapscan
" Mostly troublesome.
set nrformats-=octal
set shiftround
" The colorscheme is not too invasive, so highlight searched terms.
set hlsearch
set ignorecase
set smartcase
set incsearch
set fillchars=vert:\ ,fold:-
" Mark text width column.
set colorcolumn=+1
" Text width at 79 chars allows me to easily split windows vertically.
set textwidth=79
" Reduce the maximum column in which syntax is applied. Following lines may
" have syntax highlighting compromised. (defaults to 3000)
set synmaxcol=200
set cursorline
set nofoldenable
set shiftround
set updatetime=100
if has('nvim')
" See command (like substitution) effects incrementally, as they're typed.
set inccommand=nosplit
endif