-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
144 lines (119 loc) · 3.69 KB
/
vimrc
File metadata and controls
144 lines (119 loc) · 3.69 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
"VUNDLE SETUP"
set nocompatible
filetype off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
" Only use YCM if vim > 7.4
if v:version > 704
Plugin 'Valloric/YouCompleteMe'
endif
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdcommenter'
Plugin 'scrooloose/nerdtree'
Plugin 'auto-pairs'
Plugin 'xmledit'
Plugin 'syntastic'
Plugin 'tomtom/tcomment_vim', {'rtp': '~/.vim/bundle/tcomment_vim/plugin'}
Plugin 'SirVer/ultisnips'
Plugin 'honza/vim-snippets'
Plugin 'pearofducks/ansible-vim'
Plugin 'tpope/vim-fugitive'
Plugin 'hashivim/vim-terraform'
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"PLUGIN SETTINGS
"
"
let g:AutoPairsMapSpace = 0
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_guide_size = 1
let g:indent_guides_color_change_percent = 3
" Tell code completer to load .ycm_extra_conf.py without asking for
" verification
let g:ycm_confirm_extra_conf = 0
" Trigger configuration. Do not use <tab> if you use
" https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
"
" " If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
"
"
"END PLUGIN SETTINGS
set path=.,**
set exrc
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set relativenumber
set number
highlight ColorColumn ctermbg=255,255,255
colorscheme slate
syntax on
set hidden
set wildmenu
set showcmd
set hlsearch
set ignorecase
set smartcase
set backspace=indent,eol,start
set autoindent
set nostartofline
set visualbell
set cmdheight=2
set notimeout ttimeout ttimeoutlen=200
set pastetoggle=<F11>
set novisualbell
map Y y$
set mouse=""f
set textwidth=120
set statusline=PATH:\ %r%F\ \ \ \ \LINE:\ %l/%L/%P\ \ \ \ \ \ \ TIME:\ %{strftime('%c')}
autocmd Filetype ruby :set filetype=ruby.chef
autocmd Filetype jinja2 let g:AutoPairs = { '%':'%', '(':')', '[':']', '{':'}',"'":"'",'"':'"', "`":"`", '```':'```', '"""':'"""', "'''":"'''"}
" Disable syntastic on zsh file by default
autocmd Filetype zsh let g:syntastic_check_on_open = 0
" Syntastic End
let g:ycm_autoclose_preview_window_after_insertion = 1
let mapleader = ","
ab exp expect(chef_run).to
nnoremap <leader>cp :set norelativenumber nonumber<Enter>
nnoremap <leader>n :set relativenumber number<Enter>
nnoremap <leader>ev :tabe ~/.vimrc<Enter>
nnoremap <leader>sv :source ~/.vimrc<Enter>
nnoremap <leader>sc :SyntasticCheck<Enter>
nnoremap <leader>st :SyntasticToggleMode<Enter>
" pressing j and k in insert or command mode returns back to normal mode
inoremap jk <Esc>
cnoremap jk <CR>
" Move current buffer to new tab. Useful for moving the help menu to another
" tab if you constantly refer to it
nnoremap <leader>t <C-W>T
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-h> <C-w>h
nnoremap <C-l> <C-w>l
nmap ; :
nnoremap <leader>g :YcmCompleter GoToDefinitionElseDeclaration
" Save session on write quit all
command! Wq mksession! | xa
" Build tag database
" Use ^] to jump to tag under cursor
" Use ^t to jump up tag stack (like the previous button on a browser)
" Use g^] to for ambiguous tags
command! MakeTags !ctags -R .