-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
58 lines (45 loc) · 1.25 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
" package manager
execute pathogen#infect()
" global variables to enable plugins
syntax on
filetype plugin indent on
syntax enable
" very basic editor behaviour
set number
set expandtab
set tabstop=2
" COLOURS AND
if has("termguicolors")
set termguicolors
endif
set t_Co=256
colorscheme quantum
" NERDTree settings, open NERDTree by default
autocmd vimenter * if !argc() | NERDTree | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
map <C-S-n> :NERDTreeToggle<CR>
" Disable editor mode in default bar
set noshowmode
" Detect file encoding
if has("multi_byte")
if &termencoding == ""
let &termencoding = &encoding
endif
set encoding=utf-8
setglobal fileencoding=utf-8
setglobal bomb
set fileencodings=ucs-bom,utf-8,latin1
endif
" Required
set encoding=utf8
let g:quantum_black=1
let g:quantum_italics=1
" Status bar and devicon settings
let g:airline_powerline_fonts = 1
let g:webdevicons_enable_airline_statusline = 1
let g:webdevicons_enable_airline_tabline = 1
let g:WebDevIconsNerdTreeAfterGlyphPadding = ' '
syn match NERDTreeTxtFile #^\s\+.*txt$#
highlight NERDTreeTxtFile ctermbg=red ctermfg=magenta
" Enable autocompletion
let g:neocomplete#enable_at_startup = 1