-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
59 lines (47 loc) · 1.4 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
" Use .vim on windows instead of _vimfiles
set runtimepath=~/.vim,$VIMRUNTIME
" Default tab settings. Uses 4 spaces instead of a tab.
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set backspace=indent,eol,start
set laststatus=2 " Always show status line (airline)
set guioptions-=T " No toolbar
set guioptions-=m " No menu bar
set guioptions-=r " No right hand scrollbar
set guioptions-=L " No left hand scrollbar
set encoding=utf-8
set ff=unix
scriptencoding utf-8
set relativenumber
set number
set ruler
set hidden
set secure
syntax on
map <leader>k :vsc View.SolutionExplorer<CR>
au BufNewFile,BufRead *.xaml set filetype=xml " Act as if XAML files are XML files.
" ROOTER
let g:rooter_change_directory_for_non_project_files = 'current'
let g:rooter_patterns = [ '.git/', 'units.lua', 'tags' ]
let g_rooter_resolve_links = 1
" CTRLP
let g:ctrlp_working_path_mode = 'a' " controlp must obey rooter
let g:ctrlp_user_command = 'ag --files-with-matches --nocolor -g "" %s'
let g:ctrlp_cache_dir = $HOME . '/.cache/ctrlp'
let g:airline_powerline_fonts = 1
let g:plug_timeout = 1000
" LOCALVIMRC
let g:localvimrc_ask = 0
call plug#begin()
Plug 'ctrlpvim/ctrlp.vim'
Plug 'nfvs/vim-perforce'
Plug 'tpope/vim-fugitive'
Plug 'vim-airline/vim-airline'
Plug 'airblade/vim-rooter'
Plug 'embear/vim-localvimrc'
Plug 'octol/vim-cpp-enhanced-highlight'
Plug 'morhetz/gruvbox'
call plug#end()
colorscheme gruvbox