improve DlcPro
This commit is contained in:
parent
dac347a402
commit
04b9f5e458
@ -3,7 +3,11 @@ command -nargs=? -complete=dir DlcProShg call s:ProjectDlcproSet('shg', '<args>'
|
||||
function s:ProjectDlcproSet(project_type, project_base_dir)
|
||||
" directories
|
||||
if a:project_base_dir != ''
|
||||
if (isdirectory(fnamemodify(a:project_base_dir, ':p').'/../src'))
|
||||
let s:ProjectBaseDir = fnamemodify(a:project_base_dir, ':p:h:h')
|
||||
else
|
||||
let s:ProjectBaseDir = fnamemodify(a:project_base_dir, ':p')
|
||||
endif
|
||||
else
|
||||
" defaults
|
||||
if (a:project_type == 'device-control')
|
||||
@ -127,7 +131,7 @@ function s:Cmake(build_type, async_mode)
|
||||
if !isdirectory(g:ProjectBuildDir)
|
||||
call mkdir(g:ProjectBuildDir)
|
||||
endif
|
||||
execute "!rm ".g:ProjectBuildDir."/build-type-*"
|
||||
execute "!rm ".g:ProjectBuildDir."/build-type*"
|
||||
execute "!touch ".g:ProjectBuildDir."/build-type:".a:build_type
|
||||
call asyncrun#quickfix_toggle(10, 1)
|
||||
let args = ""
|
||||
@ -230,3 +234,5 @@ endfunction
|
||||
"/opt/app/bin/jamplayer -sm3 -aprogram PDD.jam
|
||||
"/opt/app/bin/jamplayer -sm3 -areconfigure /opt/app/fpga-configurations/reconfigure.jam
|
||||
|
||||
" read/write eeprom
|
||||
"/opt/app/bin/eepromio
|
||||
|
@ -203,7 +203,7 @@ autocmd BufReadPost *
|
||||
" read all files on got of focus
|
||||
" autocmd FocusGained * execute
|
||||
" save all files on loss of focus
|
||||
autocmd FocusLost * execute ':wa'
|
||||
autocmd FocusLost * execute ':silent! wa'
|
||||
" since we always save, don't use a swapfile
|
||||
set noswapfile
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user