-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
48 lines (41 loc) · 1.03 KB
/
vimrc
File metadata and controls
48 lines (41 loc) · 1.03 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
set nocp
set si
set ai
set et
set ts=2
set sw=2
set hidden
set ruler
set noswapfile
set number
set autowrite
set foldmethod=manual
let mapleader=","
set wildignore=*/_build/*,*/node_modules/*,*/coverage/*,*/doc/*,*/html/*,*/tmp/*,*/bin/*,*/vendor/*,tags,*.beam
execute pathogen#infect()
filetype on
filetype indent on
filetype plugin on
map <space> :CtrlP<CR>
map <leader>t :!ctags -R app<CR>
map <leader>n :NERDTreeToggle<CR>
map <leader>g :CtrlPTag<CR>
map <leader>s :w<CR>
map <leader>wj <c-w>j
map <leader>wk <c-w>k
map <leader>wx <c-w>x
map <leader>wc <c-w>c
map <leader>wc <c-w>c
map <leader>wo <c-w>o
map <leader>ws <c-w>s<c-w>j
map <leader>f :Ack
" postgres
let g:sql_type_default = 'pgsql'
" highlight extra whitespace
highlight ExtraWhitespace ctermbg=red guibg=red
autocmd ColorScheme * highlight ExtraWhitespace guibg=#bb3930
match ExtraWhitespace /\s\+$/
onoremap <silent> i/ :<C-U>normal! T/vt/<CR>
onoremap <silent> a/ :<C-U>normal! F/vf/<CR>
xnoremap <silent> i/ :<C-U>normal! T/vt/<CR>
xnoremap <silent> a/ :<C-U>normal! F/vf/<CR>