-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
109 lines (84 loc) · 2.94 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
104
105
106
107
108
109
set nocompatible
let mapleader = ","
let g:molokai_original=1
colorscheme molokai
autocmd BufNewFile, BufRead * setlocal formatoptions-=c formatoptions-=r formatoptions-=o formatoptions+=j formatoptions+=n
" Strip trailing whitespace on save
autocmd BufWritePre * :%s/\s\+$//e
set tabstop=4 shiftwidth=4 softtabstop=0
set encoding=utf8 ffs=unix,dos,mac
set ruler noerrorbells novisualbell noswapfile nobackup nowb smarttab number noexpandtab
let Tlist_Ctags_Cmd = "/usr/bin/ctags"
let Tlist_WinWidth = 0
let g:vim_markdown_folding_disabled=1
" Ctrl-h to toggle search higlighting.
nnoremap <C-h> :set hls!
" <esc> to clear the last search highlight.
nnoremap <esc> :noh<return><esc>
" Ctrl-r to search & replace selected text.
vnoremap <C-r> "hy:%s/<C-r>h//g<left><left><left>
" Set extra options when running in GUI mode
if has("gui_running")
set guioptions-=T
set guioptions+=e
set guioptions+=lrb
set guioptions-=lrb
endif
" Configure vundle before turning on filetype rules
filetype plugin indent off
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#rc()
" let Vundle manage Vundle. Required!
Bundle 'gmarik/vundle'
Bundle 'airblade/vim-gitgutter'
Bundle 'digitaltoad/vim-jade'
Bundle 'editorconfig/editorconfig-vim'
Bundle 'gkz/vim-ls'
Bundle 'godlygeek/tabular'
Bundle 'groenewege/vim-less'
Bundle 'guns/vim-clojure-highlight'
Bundle 'guns/vim-clojure-static'
Bundle 'joonty/vim-xdebug.git'
Bundle 'junegunn/vim-easy-align'
Bundle 'justmao945/vim-clang'
Bundle 'kchmck/vim-coffee-script'
Bundle 'kien/ctrlp.vim'
Bundle 'kien/rainbow_parentheses.vim'
Bundle 'lunaru/vim-twig'
Bundle 'mattn/emmet-vim'
Bundle 'mintplant/vim-literate-coffeescript'
Bundle 'mklabs/grunt.vim'
Bundle 'othree/html5.vim'
Bundle 'pangloss/vim-javascript'
Bundle 'plasticboy/vim-markdown'
Bundle 'rhysd/vim-clang-format'
Bundle 'scrooloose/syntastic'
Bundle 'tpope/vim-fireplace'
Bundle 'tpope/vim-fugitive'
Plugin 'bling/vim-airline'
Plugin 'derekwyatt/vim-scala'
let g:ctrlp_map = '<c-p>'
let g:ctrlp_working_path_mode = 'ra' " Root dir is the git root, or the directory of the current file.
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn|node_modules|bower_components)$',
\ }
" Go lang
set runtimepath+=$GOROOT/misc/vim
" Enable filetype plugins
filetype plugin indent on
au BufRead,BufNewFile *.ls set syntax=ls
set ofu=syntaxcomplete#Complete
au VimEnter * RainbowParenthesesActivate
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
au Syntax markdown setlocal spell spelllang=en_ca
au FileType make set noexpandtab
let g:syntastic_javascript_checkers = ['eslint', 'jscs']
let g:syntastic_aggregate_errors = 1
let g:syntastic_cpp_compiler = 'clang++'
let g:syntastic_cpp_compiler_options = ' -std=c++11 -stdlib=libc++'
" Start interactive EasyAlign in visual mode (e.g. vip<Enter>)
vmap <Enter> <Plug>(EasyAlign)
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign)