-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
35 lines (29 loc) · 894 Bytes
/
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
execute pathogen#infect('bundle/{}', 'lang/{}', 'colors/{}', 'core/{}')
execute pathogen#helptags()
function! AddMapping(name, mapping_command, mapping_keys, ...)
if len(a:000) < 1
throw "The arguments to AddMapping() should be <name> <mapping_command> <mapping_keys> <mapping_action> [mapping_action]*"
endif
let mapping_command = join(a:000)
let mapping_list = [a:mapping_command, a:mapping_keys, mapping_command]
exe join(mapping_list)
endfunction
let s:corefile = $HOME . '/.vim/core/core.vim'
if filereadable(s:corefile)
exec 'source' . s:corefile
endif
" Colors
set t_Co=256
colorscheme lucius
" Disable arrow keys
inoremap <Up> <NOP>
inoremap <Down> <NOP>
inoremap <Left> <NOP>
inoremap <Right> <NOP>
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
" set dollar sign on change
set cpoptions+=$
set clipboard=unnamed