-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
74 lines (54 loc) · 1.46 KB
/
.vimrc
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
""""""""""""""""""""""""""""""""""""""""
" General
""""""""""""""""""""""""""""""""""""""""
" Ignore compability with vi
set nocompatible
" Auto read when a file is changed from the outside
set autoread
" Use system clipboard
set clipboard=unnamed,unnamedplus
" We want directory to stay at project root.
" This is handled by plugin vim-rooter
set noautochdir
" Better display for messages
set cmdheight=2
" Ignore backup files
set nobackup
set nowritebackup
set noswapfile
" Ignore case when searching
set ignorecase
" Use case-sensative search iff query contains
" uppercase letters
set smartcase
" Makes search act like search in modern browsers
set incsearch
" Don't redraw while executing macros (good performance config)
set lazyredraw
" Show line numbers
set number
" Keep some lines as marginals when scrolling
set scrolloff=14
" Encoding
set encoding=utf-8
" Allow for recursive search
set path+=**
" don't give |ins-completion-menu| messages.
set shortmess+=c
" always show signcolumns
set signcolumn=yes
" Smaller updatetime for CursorHold & CursorHoldI
set updatetime=300
" Show several matches when searching
set wildmenu
" Vim wraps long line by default, which behaves
" funky when viewing e.g. minified JS. It can
" instead be turned on on a buffer-basis
set nowrap
" Fixes Vim freezing on Mac
set re=2
" Scripts
source ~/.dotfiles/vim/filetypes.vim
source ~/.dotfiles/vim/mapping.vim
source ~/.dotfiles/vim/plugins.vim
source ~/.dotfiles/vim/snippets.vim