-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugins.vim
More file actions
60 lines (45 loc) · 1.53 KB
/
plugins.vim
File metadata and controls
60 lines (45 loc) · 1.53 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
" Powerline
if !has('nvim')
set laststatus=2 " Always show statusbar
set guifont=Menlo\ Regular\ for\ Powerline " Use font with symbols for Powerline
let g:Powerline_symbols = 'fancy'
endif
" NerdTree
map <silent> <leader>n :NERDTreeToggle<CR> :NERDTreeMirror<CR>
" switch.vim
nnoremap - :Switch<cr>
" fugitive.vim
nmap <leader>gb :Gblame<CR>
nmap <leader>gs :Gstatus<CR>
nmap <leader>gd :Gdiff<CR>
nmap <leader>gl :Glog<CR>
nmap <leader>gc :Gcommit<CR>
nmap <leader>gp :Git push<CR>
" ctrlp.vim
nmap <leader>o :CtrlP<CR>
nmap <leader>r :CtrlPClearCache<CR>
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.aux,*vim/backups*,*sass-cache*,*DS_Store*,vendor/rails/**,vendor/cache/**,*.gem,log/**
" ag
map <C-F> :Ag -i ""<left>
set shellpipe=> " Prevent ack results from leaking into terminal
" CamelCaseMotion
map <S-W> <Plug>CamelCaseMotion_w
map <S-B> <Plug>CamelCaseMotion_b
map <S-E> <Plug>CamelCaseMotion_e
" delimitMate
let delimitMate_expand_space = 1
" Fix slim wrapping issue
autocmd BufNew *.slim :set textwidth = 0
" Neoyank
nnoremap <silent> <leader>p :Unite history/yank<CR>
" Gundo
nnoremap <leader>u :GundoToggle<CR>
" Investigate
let g:investigate_use_dash = 1
nnoremap <leader>l :call investigate#Investigate()<CR>
" Markdown syntax highlighting
let g:vim_markdown_folding_disabled = 1
" Load a chktexrc file into the chktex, wich is loaded by syntastic
let g:syntastic_tex_chktex_args = "-l ~/.chktexrc"
" Enable Color hightlighting for certain filetypes
let g:colorizer_auto_filetype='css,sass,scss,html'