Skip to content

Commit 3ce5caf

Browse files
author
Aaron Baker
committed
add NeoMake, fix alternate file shortcut
1 parent d08efec commit 3ce5caf

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

common_config/01_plugin_config.vim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ call dein#begin(expand('~/.vim/dein')) " plugins' root path
88

99
call dein#add('airblade/vim-gitgutter')
1010
call dein#add('tomtom/tcomment_vim')
11-
1211
call dein#add('tpope/vim-endwise')
1312
call dein#add('tpope/vim-fugitive')
1413
call dein#add('tpope/vim-rake')
@@ -18,6 +17,13 @@ call dein#begin(expand('~/.vim/dein')) " plugins' root path
1817
call dein#add('tpope/vim-abolish')
1918
call dein#add('tpope/vim-sleuth')
2019

20+
" Neomake for async static linting
21+
call dein#add('neomake/neomake')
22+
let g:neomake_eruby_rubocop_maker = {'exe': 'rubocop'}
23+
let g:neomake_eruby_enabled_makers = ['rubocop']
24+
autocmd! BufWritePost * Neomake
25+
26+
2127
" NERDTree for project drawer
2228
call dein#add('scrooloose/nerdtree')
2329
let NERDTreeHijackNetrw = 0

common_config/key_mappings.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ nmap <Leader>W :set nowrap<cr>
66
nmap gW :only<cr>
77
88
" go to the alternate file (previous buffer) with g-enter
9-
nmap g\\
9+
nmap g <C-^>
1010
1111
" shortcuts for frequenly used files
1212
nmap gs :e db/schema.rb<cr>

0 commit comments

Comments
 (0)