-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
103 lines (92 loc) · 2.3 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
" Vundle
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'fatih/vim-go'
Plugin 'pangloss/vim-javascript'
Bundle 'klen/python-mode'
Plugin 'bling/vim-airline'
Plugin 'tpope/vim-fugitive'
" Gists
Bundle 'mattn/webapi-vim'
Bundle 'mattn/gist-vim'
" Whitespace
Bundle 'ntpeters/vim-better-whitespace'
" NerdTree
Plugin 'scrooloose/nerdtree'
" C
Bundle 'c.vim'
" ctrlp
Plugin 'kien/ctrlp.vim'
" YCM
Plugin 'Valloric/YouCompleteMe'
" Indent guides
Plugin 'nathanaelkane/vim-indent-guides'
call vundle#end()
filetype plugin indent on
" END Vundle
syntax on
set background=dark
set number
set tabstop=4
set shiftwidth=4
set expandtab
set modeline
set ls=2
set hlsearch
set incsearch
set ruler
set backspace=indent,eol,start
" splits go right/bottom, as expected
set splitbelow
set splitright
set laststatus=2
set noshowmode
" make the escape key respond faster
if ! has('gui_running')
set ttimeoutlen=10
augroup FastEscape
autocmd!
au InsertEnter * set timeoutlen=0
au InsertLeave * set timeoutlen=1000
augroup END
endif
" Pymode
let g:pymode_lint = 0
let g:pymode_folding = 0
let g:pymode_rope_lookup_project = 0
let g:pymode_rope_autoimport = 0
let g:pymode_rope = 0
" Airline
let g:airline_powerline_fonts = 1
" Go
autocmd FileType go setlocal noexpandtab
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
au FileType go nmap <Leader>s <Plug>(go-implements)
au FileType go nmap <Leader>i <Plug>(go-info)
au FileType go nmap <Leader>e <Plug>(go-rename)
au FileType go nmap <Leader>ds <Plug>(go-def-split)
au FileType go nmap <Leader>dv <Plug>(go-def-vertical)
au FileType go nmap <Leader>dt <Plug>(go-def-tab)
au FileType go nmap <Leader>gd <Plug>(go-doc)
au FileType go nmap <Leader>gv <Plug>(go-doc-vertical)
" NERDTree
map <C-n> :NERDTreeToggle<CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
" CtrlP
let g:ctrlp_working_path_mode = 0
" Gist
let g:gist_detect_filetype = 1
let g:gist_open_browser_after_post = 1
" Leader key
let mapleader=","
" Indent
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_guide_size = 1
colorscheme default