Skip to content

Instantly share code, notes, and snippets.

@mhinz
Last active December 25, 2015 04:59
Show Gist options
  • Save mhinz/6920855 to your computer and use it in GitHub Desktop.
Save mhinz/6920855 to your computer and use it in GitHub Desktop.
function! Make() abort
let path = findfile('Makefile', '.;')
if !empty(path)
execute 'lcd' fnamemodify(path, ':h')
make
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment