Skip to content

Commit

Permalink
[vimrc] cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joelash committed Apr 14, 2017
1 parent 2b2ea5c commit 47235d6
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Plug 'ctrlpvim/ctrlp.vim'
Plug 'altercation/vim-colors-solarized'
Plug 'muz/vim-gemfile', {'for': 'ruby'}
Plug 'tmhedberg/matchit', { 'for': ['html', 'xml'] }
Plug 'itchyny/lightline.vim'
" Plug 'itchyny/lightline.vim'
Plug 'tpope/vim-fugitive'
Plug 'sjl/gundo.vim'
Plug 'tpope/vim-surround'
Expand Down Expand Up @@ -204,7 +204,9 @@ nnoremap <silent> <leader>K :set paste<CR>m`O<Esc>``:set nopaste<CR>
nnoremap <silent> <LocalLeader>s :set paste<CR>m`i<CR><Esc>``:set nopaste<CR>
" FZF binding
nnoremap <silent> <C-x><C-p> :GFiles<CR>
nnoremap <silent> <C-l><C-p> :GFiles<CR>
nnoremap <silent> <C-l><C-t> :Tags<CR>
nnoremap <silent> <C-l><C-b> :BTags<CR>
" magic from @manicolosi
nmap <leader>p (y%%a<CR><esc>p==
Expand Down Expand Up @@ -256,6 +258,10 @@ nnoremap <silent> cqa :%Eval<CR>
nnoremap <silent> crr :Require!<CR>:RunTests<CR>:copen<CR>
nnoremap <silent> <leader>E :%Eval<CR>
nnoremap <silent> <leader>R :%Eval<CR>:Eval (refresh)<CR>
nmap <S-Right> <Plug>(sexp_capture_next_element)<Plug>(sexp_indent_top)
nmap <S-Left> <Plug>(sexp_emit_tail_element)<Plug>(sexp_indent_top)
imap <S-Right> <C-O><Plug>(sexp_capture_next_element)<Plug>(sexp_indent_top)
imap <S-Left> <C-O><Plug>(sexp_emit_tail_element)<Plug>(sexp_indent_top)
" Sort namespaces in (:require)
function! CljSortRequireFn(find)
Expand Down Expand Up @@ -396,14 +402,14 @@ function! LightlineFugitive()
return ''
endfunction

augroup AutoSyntastic
autocmd!
autocmd BufWritePost * call s:syntastic()
augroup END
function! s:syntastic()
SyntasticCheck
call lightline#update()
endfunction
" augroup AutoSyntastic
" autocmd!
" autocmd BufWritePost * call s:syntastic()
" augroup END
" function! s:syntastic()
" SyntasticCheck
" call lightline#update()
" endfunction
" ------------- end lightline ------------------

let g:syntastic_check_on_open = 1
Expand Down

0 comments on commit 47235d6

Please sign in to comment.