-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
185 lines (157 loc) · 4 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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'L9'
Plugin 'Lokaltog/vim-easymotion'
Plugin 'SuperTab'
Plugin 'The-NERD-Commenter'
Plugin 'The-NERD-tree'
Plugin 'VimClojure'
Plugin 'YankRing.vim'
Plugin 'ack.vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'derekwyatt/vim-scala'
Plugin 'fugitive.vim'
Plugin '[email protected]:ekalinin/Dockerfile.vim.git'
Plugin '[email protected]:motus/pig.vim.git'
Plugin 'gmarik/Vundle.vim'
Plugin 'haskell.vim'
Plugin 'moll/vim-node'
Plugin 'molokai'
Plugin 'rainbow_parentheses.vim'
Plugin 'tabular'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'vim-coffee-script'
call vundle#end()
filetype plugin indent on
set t_Co=256 " use 265 colors in vim
set shell=/bin/bash
syntax on
:colorscheme molokai
set guifont=Inconsolata\ for\ Powerline:h14
let g:airline_powerline_fonts = 1
let g:Powerline_symbols = 'fancy'
let g:airline_theme = 'jellybeans'
set fillchars+=stl:\ ,stlnc:\
set termencoding=utf-8
" Enable the list of buffers
let g:airline#extensions#tabline#enabled = 1
" Show just the filename
let g:airline#extensions#tabline#fnamemod = ':t'
" Use 'ag' rather than ack
if executable('ag')
let g:ackprg = 'ag --vimgrep'
endif
set tags=./tags,tags
set nocompatible
set modelines=0
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set pastetoggle=<F2>
set encoding=utf-8
set scrolloff=3
set autoindent
set showmode
set showcmd
set ruler
set hidden
set wildmenu
set wildmode=list:longest
set visualbell
set ttyfast
set backspace=indent,eol,start
set laststatus=2
set relativenumber
set number
set undofile
set cursorline
"enable clipboard integration in macvim
set clipboard=unnamed
let mapleader = ","
nnoremap / /\v
vnoremap / /\v
set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set hlsearch
nnoremap <silent><leader><space> :noh<CR>
nnoremap <Leader>fr :%s/\<<C-r><C-w>\>/
nnoremap <tab> %
vnoremap <tab> %
nnoremap <leader>a :Ack<space>
nnoremap <Leader>t :Tabularize<space>/
vnoremap <Leader>t :Tabularize<space>/
set wrap
set textwidth=121
set formatoptions=qrn1
set colorcolumn=121
noremap <up> <nop>
noremap <down> <nop>
noremap <left> <nop>
noremap <right> <nop>
nnoremap j gj
nnoremap k gk
noremap <F1> <ESC>
inoremap jj <ESC>
nnoremap ; :
nnoremap <leader>w <C-w>s<C-w>j
nnoremap <leader>e <C-w>v<C-w>l
nnoremap <leader>q :bd<CR>
nnoremap <leader>r <C-w>o
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
nmap <leader>j <Plug>GitGutterNextHunk
nmap <leader>k <Plug>GitGutterPrevHunk
let g:tagbar_usearrows = 1
nnoremap <leader>f :NERDTreeToggle<CR>
noremap <leader>v :YRShow<CR>
filetype plugin on
set ofu=syntaxcomplete#Complete
"excludes for fuzzy finder
let g:fuf_file_exclude = '\v\~$|\.(un\~|swp)$|node_modules/|\.git/'
let g:fuf_mrufile_maxItem = 300
let g:fuf_mrucmd_maxItem = 400
nnoremap <leader>gs :Gstatus<CR>
nnoremap <leader>gc :Gcommit<CR>
nnoremap <leader>gd :Gdiff<CR>
"remove the toolbar, right & left scrollbars
set guioptions-=T
set guioptions-=l
set guioptions-=r
set guioptions-=L
set guioptions-=R
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
"mappings for EasyMotion
let g:EasyMotion_do_mapping = 0 " Disable default mappings
" Bi-directional find motion
" Jump to anywhere you want with minimal keystrokes, with just one key binding.
" `s{char}{label}`
nmap s <Plug>(easymotion-s)
" Turn on case sensitive feature
let g:EasyMotion_smartcase = 1
" JK motions: Line motions
"map <C-j> <Plug>(easymotion-j)
"map <C-k> <Plug>(easymotion-k)
"
"" disable scrolling through the 'wheel'
noremap <ScrollWheelUp> <nop>
noremap <S-ScrollWheelUp> <nop>
noremap <C-ScrollWheelUp> <nop>
noremap <ScrollWheelDown> <nop>
noremap <S-ScrollWheelDown> <nop>
noremap <C-ScrollWheelDown> <nop>
noremap <ScrollWheelLeft> <nop>
noremap <S-ScrollWheelLeft> <nop>
noremap <C-ScrollWheelLeft> <nop>
noremap <ScrollWheelRight> <nop>
noremap <S-ScrollWheelRight> <nop>
noremap <C-ScrollWheelRight> <nop>