Update vim stuff
This commit is contained in:
parent
596a82fa68
commit
53378083fa
|
@ -214,13 +214,18 @@ endif
|
||||||
fun! RunMake()
|
fun! RunMake()
|
||||||
split
|
split
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
execute 'terminal make ' . g:make_args
|
" run from the root of the current git repository
|
||||||
:autocmd TermClose * call feedkeys('<cr>')
|
let path = system("git rev-parse --show-toplevel | tr -d '\\n'")
|
||||||
|
" TODO: handle non-git situations
|
||||||
|
execute 'terminal cd ' . path . ' && make ' . g:make_args
|
||||||
else
|
else
|
||||||
execute '!make ' . g:make_args
|
execute '!make ' . g:make_args
|
||||||
endif
|
endif
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
|
" kill the terminal buffer when the process exits
|
||||||
|
" autocmd TermClose * call feedkeys('<cr>')
|
||||||
|
|
||||||
" whitespace
|
" whitespace
|
||||||
" use tabs at a two-space width
|
" use tabs at a two-space width
|
||||||
set tabstop=2
|
set tabstop=2
|
||||||
|
|
Reference in a new issue