diff --git a/vimfiles.stefan/plugin/toptica.vim b/vimfiles.stefan/plugin/toptica.vim index 1a7aa16..9e3e8ee 100644 --- a/vimfiles.stefan/plugin/toptica.vim +++ b/vimfiles.stefan/plugin/toptica.vim @@ -3,7 +3,11 @@ command -nargs=? -complete=dir DlcProShg call s:ProjectDlcproSet('shg', '' function s:ProjectDlcproSet(project_type, project_base_dir) " directories if a:project_base_dir != '' - let s:ProjectBaseDir = fnamemodify(a:project_base_dir, ':p') + 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 diff --git a/vimfiles.stefan/vimrc b/vimfiles.stefan/vimrc index ab889b8..8ea83bd 100644 --- a/vimfiles.stefan/vimrc +++ b/vimfiles.stefan/vimrc @@ -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