forked from spf13/spf13-vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc.local
56 lines (48 loc) · 1.5 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
set nospell
set nofoldenable
set mouse=c
" tmux {
"if exists('$TMUX')
set term=screen-256color
"let g:solarized_termtrans=1
"let g:solarized_contrast="normal"
"let g:solarized_visibility="normal"
"colors solarized
"else
let g:molokai_original=1
let g:rehash256=1
colors molokai
"endif
" }
" eslint {
"let g:syntastic_check_on_open = 1
"let g:syntastic_javascript_checkers = ['jshint']
"let g:syntastic_javascript_jshint_exec = '/home/zhen/.nvm/versions/node/v0.12.7/bin/jshint'
let g:jsx_ext_required = 0
let g:syntastic_javascript_checkers = ['eslint']
" I wish eslint would just check for a locally installed eslint on its
" own, but works great for vim.
let local_eslint = finddir('node_modules', '.;') . '/.bin/eslint'
if matchstr(local_eslint, "^\/\\w") == ''
let local_eslint = getcwd() . "/" . local_eslint
endif
if executable(local_eslint)
let g:syntastic_javascript_eslint_exec = local_eslint
endif
" }
"if exists('$ITERM_PROFILE')
"if exists('$TMUX')
"let &t_SI = "<Esc>[3 q"
"let &t_EI = "<Esc>[0 q"
"else
"let &t_SI = "<Esc>]50;CursorShape=1x7"
"let &t_EI = "<Esc>]50;CursorShape=0x7"
"endif
"endif
inoremap jk <ESC>
inoremap <ESC> <nop>
nnoremap <leader>q :q<CR>
nnoremap <leader>w :w<CR>
nnoremap <leader>ns :set nospell<CR>
nnoremap <leader>bn :bn<CR>
noremap <leader>stw :call StripTrailingWhitespace()<CR>