-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimrc
72 lines (49 loc) · 1.78 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
" https://stackoverflow.com/questions/743150/how-to-prevent-vim-from-creating-and-leaving-temporary-files
set nobackup "no backup files
set nowritebackup "only in case you don't want a backup file while editing
set noswapfile "no swap files
" https://stackoverflow.com/questions/2816719/clear-the-viminfo-file
set viminfo= "no ~/.viminfo file
" Essential: use proper encryption by default
" https://dgl.cx/2014/10/vim-blowfish
:setlocal cm=blowfish2
" Line Numbers
set number
" turn hybrid line numbers on
set number relativenumber
" Highlight current line
set cursorline
" hlsearch word Taken from http://nvie.com/posts/how-i-boosted-my-vim/
set autoindent " always set autoindenting on
set copyindent " copy the previous indentation on autoindenting
set showmatch " set show matching parenthesis
set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all lowercase,
" case-sensitive otherwise
set hlsearch " highlight search terms
set incsearch " show search matches as you type
set encoding=utf-8 " Use UTF-8 everywhere.
set termencoding=utf-8
set wrap
set linebreak
syntax enable
set nocompatible
filetype plugin on
" Neocomplete
let g:neocomplete#enable_at_startup = 1
let g:neocomplete#enable_smart_case = 1
source ~/.vim/plugins.vim
source ~/.vim/vimcompletion.vim
let g:indentLine_char = ''
source ~/.vim/ale.vim
source ~/.vim/folds.vim
let g:netrw_liststyle = 3
" Fix for the following message when renaming in vimwiki with many pages
" pattern uses more memory than 'maxmempattern'
set maxmempattern=5000
let g:gruvbox_transparent_bg = 1
let g:gruvbox_contrast_light = "hard"
colorscheme gruvbox
" Change to workdir of opened files automatically
" Might break some plugins
set autochdir