-
Notifications
You must be signed in to change notification settings - Fork 1
/
basic-settings.vim
71 lines (53 loc) · 1.29 KB
/
basic-settings.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
" TODO Add folding and divide the file into logical blocks
" Colorscheme handling
set termguicolors
colorscheme carbonized-dark
" Show line numbers properly
set number
set relativenumber
" Switching between buffers without saving
set hidden
" Taller commandline
set cmdheight=2
" Highlight current line
set cursorline
" Turn on the wild menu
set nowildmenu
" By default, ignore case
set ignorecase
" Makes search act like search in modern browsers
set incsearch
" For regular expressions turn magic on
set magic
" Set line wrapping and its navigation
set wrap linebreak nolist
set showbreak=…
vmap j gj
vmap k gk
nmap j gj
nmap k gk
" Don't redraw while executing macros (good performance config)
set lazyredraw
" Show matching brackets when text indicator is over them
set showmatch
" How many tenths of a second to blink when matching brackets
set mat=5
" No swap, no backup
set noswapfile
set nobackup
" 1 tab == 2 spaces
" except for the files in which it is overriden in the filetype plugin
set shiftwidth=2
set tabstop=2
set sts=2
set expandtab
" Always show the status line
set laststatus=2
" Show and wrap at 80th column
set colorcolumn=88
set textwidth=88
" Wait for 600ms for the next key in the mapping
set timeoutlen=600
" Formatoptions
set formatoptions-=t
set formatoptions+=cro/qn1j