commit bc2f6d1fe02d7cfd9628e09cfad716f2091a3a04
parent a1458b7e465cc7ff597e4efc841c4e5100cbc750
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sat, 11 May 2019 08:12:45 -0700
Use asynchronous :Make if available
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.vim/plugin/keybinds.vim b/.vim/plugin/keybinds.vim
@@ -35,9 +35,11 @@ nnoremap <leader>e :e **/
nnoremap <leader>g :grep<space>
"" ilist function from qlist, make ilist go into quickfix window
nnoremap <leader>i :Ilist<space>
-"" taglist jump command line
-nnoremap <leader>j :tjump /
nnoremap <leader>m :make<cr>
+autocmd VimEnter * if exists(":Make") |
+ \ exe "nnoremap <leader>m :Make<cr>" |
+ \ endif
+
"" strip trailing whitespace
nnoremap <leader>s :call StripTrailingWhitespace()<cr>
"" go to last used buffer