-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
72 lines (63 loc) · 2.38 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://dougblack.io/words/a-good-vimrc.html
set number " enable line numbers
syntax enable " enable syntax highlighting
filetype plugin indent on " enables loading of language-specific indentation files
" colorscheme industry " better colorscheme
set tabstop=2 " each tab is 2 spaces
set autoindent " enable autoindentation
set expandtab " turn tabs into spaces
set softtabstop=2 " each removal of a tab removes 2 spaces
set cursorline " show the line the cursor is on
set showcmd " show the last command entered in bottom right
set wildmenu " visual autocomplete for command menu
set showmatch " highlight matching [{()}]
set incsearch " search as characters are entered
set hlsearch " highlight matches
set foldenable " enable code folding
set foldnestmax=10 " show most code folds on open
nnoremap <space> za " remap space to handle code folding
set foldmethod=indent " fold based on indentation level
let g:airline_theme='solarized'
let g:airline_solarized_bg='dark' " change solarized airline theme to dark version
" https://vi.stackexchange.com/questions/3359/how-do-i-fix-the-status-bar-symbols-in-the-airline-plugin
" airline
let g:airline_powerline_fonts = 1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
" unicode symbols
let g:airline_left_sep = '»'
let g:airline_left_sep = '▶'
let g:airline_right_sep = '«'
let g:airline_right_sep = '◀'
let g:airline_symbols.linenr = '␊'
let g:airline_symbols.linenr = ''
let g:airline_symbols.linenr = '¶'
let g:airline_symbols.branch = '⎇'
let g:airline_symbols.paste = 'ρ'
let g:airline_symbols.paste = 'Þ'
let g:airline_symbols.paste = '∥'
let g:airline_symbols.whitespace = 'Ξ'
" airline symbols
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
let g:airline_symbols.branch = ''
let g:airline_symbols.readonly = ''
let g:airline_symbols.linenr = ''
" set NERTTreeToggle to F6
nmap <F6> :NERDTreeToggle<CR>
call plug#begin('~/.vim/plugged')
Plug 'rust-lang/rust.vim'
Plug 'tpope/vim-fugitive'
Plug 'preservim/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'ryanoasis/vim-devicons'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'scrooloose/syntastic'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" See notes at: https://madskjeldgaard.dk/posts/rust-ycm/
Plug 'Valloric/YouCompleteMe'
call plug#end()