Skip to content

Commit

Permalink
Set vim theme molokai always & use eslint localy
Browse files Browse the repository at this point in the history
  • Loading branch information
huangguozhen committed Jan 9, 2016
1 parent 5e02e35 commit 330f8e5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
1 change: 1 addition & 0 deletions .vimrc.before.local
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
let g:spf13_bundle_groups=['general', 'writing', 'programming', 'misc', 'youcompleteme', 'javascript', 'html', 'python', 'ruby']
let g:spf13_no_autochdir=1

let g:airline_theme = 'molokai'
let g:airline_powerline_fonts=1
Expand Down
38 changes: 26 additions & 12 deletions .vimrc.local
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
set nospell
set nofoldenable
set mouse=c

if exists('$TMUX')
set term=screen-256color
" 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
"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
" }

" javascript {
" 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')
Expand Down

0 comments on commit 330f8e5

Please sign in to comment.