forked from thoughtbot/dotfiles
/
vimrc.local
60 lines (43 loc) · 1.26 KB
/
vimrc.local
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
" javascript-libraries-syntax
let g:used_javascript_libs = 'underscore,backbone,jquery'
" scrooloose/syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_quiet_messages = { "type": "style" }
" ctrlp.vim
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
"let g:solarized_termcolors=16
syntax enable
colorscheme solarized
set background=light
" Easymotion
let g:EasyMotion_do_mapping = 0 " Disable default mappings
" Turn on case insensitive feature
let g:EasyMotion_smartcase = 1
nmap <Leader>w <Plug>(easymotion-w)
nmap s <Plug>(easymotion-s)
"nmap s <Plug>(easymotion-s2)
nmap t <Plug>(easymotion-t2)
map / <Plug>(easymotion-sn)
omap / <Plug>(easymotion-tn)
map <Leader>l <Plug>(easymotion-lineforward)
map <Leader>j <Plug>(easymotion-j)
map <Leader>k <Plug>(easymotion-k)
map <Leader>h <Plug>(easymotion-linebackward)
let g:EasyMotion_startofline = 0 " keep cursor colum when JK motion
" Swap : and ;
nnoremap ; :
map '' :e#<CR>
map '; :Explore<CR>
set mouse=a
set pastetoggle=<F2>
set autochdir
nnoremap <Leader>b :set buftype=<CR>
nnoremap :w :set buftype= :w<CR>
" visualbell
set vb
" for swift files, use 4 spaces per tab
autocmd Filetype swift setlocal ts=4 sw=4
nnoremap <Leader><Tab> :bn<CR>