Skip to content

Instantly share code, notes, and snippets.

@marcotrosi
Last active May 18, 2020 00:06
Show Gist options
  • Save marcotrosi/15e154f3aa0c31972aab to your computer and use it in GitHub Desktop.
Save marcotrosi/15e154f3aa0c31972aab to your computer and use it in GitHub Desktop.
function! MakeMenu()
let l:myMakeTargets = ["abort", "", "tags", "clean", "build", "test", "doc"]
let l:c = 0
let l:c = confirm("Make Menu","&make\nta&gs\n&clean\n&build\n&test\n&doc")
if l:c != 0
exe "make " . l:myMakeTargets[l:c]
endif
endfunction
nnoremap <leader>mm :call MakeMenu()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment