Compare commits
No commits in common. "7efb40288d0a8a3ece41f8cd41be4a56e838c1ab" and "d3f0c1496e049b916e1884c3e8c9e3e82cbd2d4f" have entirely different histories.
7efb40288d
...
d3f0c1496e
57
vimfiles.stefan/colors/Carsten.vim
Normal file
57
vimfiles.stefan/colors/Carsten.vim
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
" local syntax file - set colors on a per-machine basis:
|
||||||
|
" vim: tw=0 ts=4 sw=4
|
||||||
|
" Vim color file
|
||||||
|
" Maintainer: Ron Aaron <ronaharon@yahoo.com>
|
||||||
|
" Last Change: 2003 May 02
|
||||||
|
|
||||||
|
set background=light
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
let g:colors_name = "Carsten"
|
||||||
|
|
||||||
|
hi Comment term=bold ctermfg=darkgreen guifg=darkgreen
|
||||||
|
hi Normal guifg=black guibg=white
|
||||||
|
hi Constant term=underline ctermfg=Magenta guifg=Magenta
|
||||||
|
hi Special term=bold ctermfg=Magenta guifg=Magenta
|
||||||
|
hi Identifier term=underline ctermfg=Blue guifg=Blue
|
||||||
|
hi Statement term=bold ctermfg=DarkRed gui=NONE guifg=Brown
|
||||||
|
hi PreProc term=underline ctermfg=Magenta guifg=Purple
|
||||||
|
hi Type term=underline ctermfg=blue gui=NONE guifg=blue
|
||||||
|
hi Visual term=reverse ctermfg=Yellow ctermbg=Red gui=NONE guifg=Black guibg=Yellow
|
||||||
|
hi Search term=reverse ctermfg=Black ctermbg=Cyan gui=NONE guifg=Black guibg=Cyan
|
||||||
|
hi Tag term=bold ctermfg=DarkGreen guifg=DarkGreen
|
||||||
|
hi Error term=reverse ctermfg=15 ctermbg=9 guibg=Red guifg=White
|
||||||
|
hi Todo term=standout ctermbg=Yellow ctermfg=Black guifg=Blue guibg=Yellow
|
||||||
|
hi NonText term=bold ctermfg=black guifg=#C7C7C7
|
||||||
|
hi StatusLine term=bold,reverse cterm=NONE ctermfg=Yellow ctermbg=DarkGray gui=NONE guifg=Yellow guibg=DarkGray
|
||||||
|
hi! link MoreMsg Comment
|
||||||
|
hi! link ErrorMsg Visual
|
||||||
|
hi! link WarningMsg ErrorMsg
|
||||||
|
hi! link Question Comment
|
||||||
|
hi! link SpecialKey NonText
|
||||||
|
hi link String Constant
|
||||||
|
hi link Character Constant
|
||||||
|
hi link Number Constant
|
||||||
|
hi link Boolean Constant
|
||||||
|
hi link Float Number
|
||||||
|
hi link Function Identifier
|
||||||
|
hi link Conditional Statement
|
||||||
|
hi link Repeat Statement
|
||||||
|
hi link Label Statement
|
||||||
|
hi link Operator Statement
|
||||||
|
hi link Keyword Statement
|
||||||
|
hi link Exception Statement
|
||||||
|
hi link Include PreProc
|
||||||
|
hi link Define PreProc
|
||||||
|
hi link Macro PreProc
|
||||||
|
hi link PreCondit PreProc
|
||||||
|
hi link StorageClass Type
|
||||||
|
hi link Structure Type
|
||||||
|
hi link Typedef Type
|
||||||
|
hi link SpecialChar Special
|
||||||
|
hi link Delimiter Special
|
||||||
|
hi link SpecialComment Special
|
||||||
|
hi link Debug Special
|
||||||
|
hi link SpecialKey NonText
|
@ -2,7 +2,6 @@ command -nargs=1 -complete=dir DlcPro call s:ProjectSet('dlcpro', '<args>')
|
|||||||
command -nargs=1 -complete=dir DlcProShg call s:ProjectSet('shg', '<args>')
|
command -nargs=1 -complete=dir DlcProShg call s:ProjectSet('shg', '<args>')
|
||||||
command -nargs=1 -complete=dir DlcProGui call s:ProjectSet('dlcpro-gui', '<args>')
|
command -nargs=1 -complete=dir DlcProGui call s:ProjectSet('dlcpro-gui', '<args>')
|
||||||
command -nargs=1 -complete=dir DlcProTui call s:ProjectSet('dlcpro-tui', '<args>')
|
command -nargs=1 -complete=dir DlcProTui call s:ProjectSet('dlcpro-tui', '<args>')
|
||||||
command -nargs=1 -complete=dir DlcProTuiSimulator call s:ProjectSet('dlcpro-tui-simulator', '<args>')
|
|
||||||
command -nargs=1 -complete=dir DlcProCan call s:ProjectSet('dlcpro-can', '<args>')
|
command -nargs=1 -complete=dir DlcProCan call s:ProjectSet('dlcpro-can', '<args>')
|
||||||
command -nargs=1 -complete=dir DlcProSpecalyser call s:ProjectSet('dlcpro-specalyser', '<args>')
|
command -nargs=1 -complete=dir DlcProSpecalyser call s:ProjectSet('dlcpro-specalyser', '<args>')
|
||||||
command -nargs=1 -complete=dir Topmode call s:ProjectSet('topmode', '<args>')
|
command -nargs=1 -complete=dir Topmode call s:ProjectSet('topmode', '<args>')
|
||||||
@ -20,7 +19,7 @@ command SetOselasGcc11 call s:set_oselas_gcc()
|
|||||||
|
|
||||||
let s:path_orig = $PATH
|
let s:path_orig = $PATH
|
||||||
|
|
||||||
function! s:ProjectSet(project_type, project_base_dir)
|
function s:ProjectSet(project_type, project_base_dir)
|
||||||
let g:project_type = a:project_type
|
let g:project_type = a:project_type
|
||||||
let g:jenkins_url = 'http://jenkins.toptica.com'
|
let g:jenkins_url = 'http://jenkins.toptica.com'
|
||||||
|
|
||||||
@ -39,8 +38,6 @@ function! s:ProjectSet(project_type, project_base_dir)
|
|||||||
let s:ProjectBaseDir = '/home/stefan/dlcpro/firmware'
|
let s:ProjectBaseDir = '/home/stefan/dlcpro/firmware'
|
||||||
elseif (g:project_type == 'dlcpro-tui')
|
elseif (g:project_type == 'dlcpro-tui')
|
||||||
let s:ProjectBaseDir = '/home/stefan/dlcpro/firmware'
|
let s:ProjectBaseDir = '/home/stefan/dlcpro/firmware'
|
||||||
elseif (g:project_type == 'dlcpro-tui-simulator')
|
|
||||||
let s:ProjectBaseDir = '/home/stefan/dlcpro/firmware.tui-simulator'
|
|
||||||
elseif (g:project_type == 'dlcpro-can')
|
elseif (g:project_type == 'dlcpro-can')
|
||||||
let s:ProjectBaseDir = '/home/stefan/dlcpro/firmware'
|
let s:ProjectBaseDir = '/home/stefan/dlcpro/firmware'
|
||||||
elseif (g:project_type == 'dlcpro-specalyser')
|
elseif (g:project_type == 'dlcpro-specalyser')
|
||||||
@ -98,18 +95,6 @@ function! s:ProjectSet(project_type, project_base_dir)
|
|||||||
let g:new_compiler = ' -DNEW_COMPILER=ON'
|
let g:new_compiler = ' -DNEW_COMPILER=ON'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! g:Compiler_version()
|
|
||||||
let cmakefile = g:ProjectBuildDir . '/CMakeCache.txt'
|
|
||||||
for line in readfile(cmakefile)
|
|
||||||
if match(line, 'NEW_COMPILER:BOOL=OFF') >= 0
|
|
||||||
return 'old'
|
|
||||||
elseif match(line, 'NEW_COMPILER:BOOL=ON') >= 0
|
|
||||||
return 'new'
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
return 0
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
" vim path
|
" vim path
|
||||||
execute 'cd '.s:ProjectSrcDir
|
execute 'cd '.s:ProjectSrcDir
|
||||||
execute 'set path-=./**'
|
execute 'set path-=./**'
|
||||||
@ -123,7 +108,6 @@ function! s:ProjectSet(project_type, project_base_dir)
|
|||||||
let g:ProgramRemote = '/opt/app/bin/device-control'
|
let g:ProgramRemote = '/opt/app/bin/device-control'
|
||||||
set wildignore-=**/firmware/src/device-control/**
|
set wildignore-=**/firmware/src/device-control/**
|
||||||
set wildignore+=**/shg-firmware/**
|
set wildignore+=**/shg-firmware/**
|
||||||
set titlestring=%<%t\ (%{expand('%:p:h')})%=compiler:\ %{Compiler_version()}
|
|
||||||
let s:makegoals = ['artifacts-firmware', 'artifacts-docu', 'artifacts', 'device-control', 'user-interface', 'doxygen', 'fw-updates', 'shg-firmware', 'can-updater', 'specalyser', 'docu-ul0', 'code-generation', 'dependency-graphs', 'decof', 'decof-sdk', 'clean', 'distclean', 'help', 'jamplayer', 'dlcpro-slot']
|
let s:makegoals = ['artifacts-firmware', 'artifacts-docu', 'artifacts', 'device-control', 'user-interface', 'doxygen', 'fw-updates', 'shg-firmware', 'can-updater', 'specalyser', 'docu-ul0', 'code-generation', 'dependency-graphs', 'decof', 'decof-sdk', 'clean', 'distclean', 'help', 'jamplayer', 'dlcpro-slot']
|
||||||
let s:makeprg = 'make'
|
let s:makeprg = 'make'
|
||||||
let g:DeviceIP = 'dlc_pro__040083'
|
let g:DeviceIP = 'dlc_pro__040083'
|
||||||
@ -135,7 +119,7 @@ function! s:ProjectSet(project_type, project_base_dir)
|
|||||||
command DlcproEmissionOn call s:DlcproEmission('1')
|
command DlcproEmissionOn call s:DlcproEmission('1')
|
||||||
command DlcproEmissionOff call s:DlcproEmission('0')
|
command DlcproEmissionOff call s:DlcproEmission('0')
|
||||||
command DlcproShutup call s:DlcproShutup()
|
command DlcproShutup call s:DlcproShutup()
|
||||||
elseif ((g:project_type == 'dlcpro-tui') || (g:project_type == 'dlcpro-tui-simulator'))
|
elseif (g:project_type == 'dlcpro-tui')
|
||||||
let s:Program = '/user-interface/src/user-interface'
|
let s:Program = '/user-interface/src/user-interface'
|
||||||
let s:Elffile = s:Program
|
let s:Elffile = s:Program
|
||||||
let g:ProgramRemote = '/opt/app/bin/user-interface'
|
let g:ProgramRemote = '/opt/app/bin/user-interface'
|
||||||
@ -361,18 +345,18 @@ endfunction
|
|||||||
" ====
|
" ====
|
||||||
" Make
|
" Make
|
||||||
" ====
|
" ====
|
||||||
function! GetAllMakeCompletions(ArgLead, CmdLine, CursorPos)
|
function GetAllMakeCompletions(ArgLead, CmdLine, CursorPos)
|
||||||
return join(s:makegoals + s:makeopts + glob(a:ArgLead.'*', 1, 1), "\n")
|
return join(s:makegoals + s:makeopts + glob(a:ArgLead.'*', 1, 1), "\n")
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:Make(args, async_mode)
|
function s:Make(args, async_mode)
|
||||||
let &makeprg = s:makeprg
|
let &makeprg = s:makeprg
|
||||||
call asyncrun#quickfix_toggle(10, 1)
|
call asyncrun#quickfix_toggle(10, 1)
|
||||||
" execute 'AsyncRun -mode='.a:async_mode.' -save=2 -program=make @ --directory='.g:ProjectBuildDir.' '.a:args
|
" execute 'AsyncRun -mode='.a:async_mode.' -save=2 -program=make @ --directory='.g:ProjectBuildDir.' '.a:args
|
||||||
execute 'AsyncRun -mode='.a:async_mode.' -save=2 -program=make -cwd='.g:ProjectBuildDir. ' @ '.a:args
|
execute 'AsyncRun -mode='.a:async_mode.' -save=2 -program=make -cwd='.g:ProjectBuildDir. ' @ '.a:args
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:MakeTestBuild()
|
function s:MakeTestBuild()
|
||||||
let &makeprg = s:makeprg
|
let &makeprg = s:makeprg
|
||||||
call s:BuildDirStash('save')
|
call s:BuildDirStash('save')
|
||||||
call s:Cmake('-DCMAKE_BUILD_TYPE=Release', 1)
|
call s:Cmake('-DCMAKE_BUILD_TYPE=Release', 1)
|
||||||
@ -381,7 +365,7 @@ function! s:MakeTestBuild()
|
|||||||
call s:BuildDirUnStash('save')
|
call s:BuildDirUnStash('save')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:MakeCheck(filename, async_mode)
|
function s:MakeCheck(filename, async_mode)
|
||||||
let &makeprg = s:ProjectSrcDir.'/tools/static-check.py'
|
let &makeprg = s:ProjectSrcDir.'/tools/static-check.py'
|
||||||
call asyncrun#quickfix_toggle(10, 1)
|
call asyncrun#quickfix_toggle(10, 1)
|
||||||
if a:filename != ''
|
if a:filename != ''
|
||||||
@ -395,7 +379,7 @@ function! s:MakeCheck(filename, async_mode)
|
|||||||
execute 'AsyncRun -mode='.a:async_mode.' -save=2 -program=make -cwd='.g:ProjectBuildDir. ' @ '.args
|
execute 'AsyncRun -mode='.a:async_mode.' -save=2 -program=make -cwd='.g:ProjectBuildDir. ' @ '.args
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:Cmake(options, async_mode)
|
function s:Cmake(options, async_mode)
|
||||||
if !isdirectory(g:ProjectBuildDir)
|
if !isdirectory(g:ProjectBuildDir)
|
||||||
call mkdir(g:ProjectBuildDir)
|
call mkdir(g:ProjectBuildDir)
|
||||||
endif
|
endif
|
||||||
@ -409,11 +393,11 @@ function! s:Cmake(options, async_mode)
|
|||||||
let args .= " --graphviz=dependencies.dot"
|
let args .= " --graphviz=dependencies.dot"
|
||||||
let args .= " ".a:options
|
let args .= " ".a:options
|
||||||
let args .= " -DCMAKE_EXPORT_COMPILE_COMMANDS=1"
|
let args .= " -DCMAKE_EXPORT_COMPILE_COMMANDS=1"
|
||||||
if ((g:project_type == 'dlcpro') || (g:project_type == 'dlcpro-tui'))
|
if (g:project_type == 'dlcpro')
|
||||||
let args .= " -DCMAKE_TOOLCHAIN_FILE=../".g:ProjectSrcDirRel."/Toolchain-target.cmake"
|
let args .= " -DCMAKE_TOOLCHAIN_FILE=../".g:ProjectSrcDirRel."/Toolchain-target.cmake"
|
||||||
let args .= " -DBUILD_TARGET=target"
|
let args .= " -DBUILD_TARGET=target"
|
||||||
let args .= g:new_compiler
|
let args .= g:new_compiler
|
||||||
elseif (g:project_type == 'dlcpro-tui-simulator')
|
elseif (g:project_type == 'dlcpro-tui')
|
||||||
let args .= " -DBUILD_TARGET=simulation"
|
let args .= " -DBUILD_TARGET=simulation"
|
||||||
let args .= " -DQT5_INSTALL_PATH=/usr/lib/x86_64-linux-gnu/qt5"
|
let args .= " -DQT5_INSTALL_PATH=/usr/lib/x86_64-linux-gnu/qt5"
|
||||||
elseif (g:project_type == 'topmode')
|
elseif (g:project_type == 'topmode')
|
||||||
@ -433,13 +417,13 @@ function! s:Cmake(options, async_mode)
|
|||||||
execute 'AsyncRun -mode='.a:async_mode.' -save=2 -cwd='.g:ProjectBuildDir.' @ cmake '.args
|
execute 'AsyncRun -mode='.a:async_mode.' -save=2 -cwd='.g:ProjectBuildDir.' @ cmake '.args
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:Ctest(args, async_mode)
|
function s:Ctest(args, async_mode)
|
||||||
let cmd = 'ctest --build-and-test ../src . --build-generator "Unix Makefiles" --build-target unit_tests --nocompress-output -T Test --build-options -DCMAKE_BUILD_TYPE=Debug --test-command ctest'
|
let cmd = 'ctest --build-and-test ../src . --build-generator "Unix Makefiles" --build-target unit_tests --nocompress-output -T Test --build-options -DCMAKE_BUILD_TYPE=Debug --test-command ctest'
|
||||||
call asyncrun#quickfix_toggle(10, 1)
|
call asyncrun#quickfix_toggle(10, 1)
|
||||||
execute 'AsyncRun -mode='.a:async_mode.' -save=2 -cwd='.s:ProjectBaseDir.'/unit-tests @ ' . cmd .' '. a:args
|
execute 'AsyncRun -mode='.a:async_mode.' -save=2 -cwd='.s:ProjectBaseDir.'/unit-tests @ ' . cmd .' '. a:args
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:Ctestx(args, async_mode)
|
function s:Ctestx(args, async_mode)
|
||||||
let unit_test_dirname = 'unit-tests'
|
let unit_test_dirname = 'unit-tests'
|
||||||
let unit_test_dir = s:ProjectBaseDir . '/' . unit_test_dirname
|
let unit_test_dir = s:ProjectBaseDir . '/' . unit_test_dirname
|
||||||
if !isdirectory('./unit-tests')
|
if !isdirectory('./unit-tests')
|
||||||
@ -454,7 +438,7 @@ function! s:Ctestx(args, async_mode)
|
|||||||
execute 'AsyncRun -mode='.a:async_mode.' -save=2 -cwd='.unit_test_dir.' @ ' . ctest_cmd .' '. a:args
|
execute 'AsyncRun -mode='.a:async_mode.' -save=2 -cwd='.unit_test_dir.' @ ' . ctest_cmd .' '. a:args
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:Ctest1(args, async_mode)
|
function s:Ctest1(args, async_mode)
|
||||||
let unit_test_dirname = 'unit-tests'
|
let unit_test_dirname = 'unit-tests'
|
||||||
let unit_test_dir = s:ProjectBaseDir . '/' . unit_test_dirname
|
let unit_test_dir = s:ProjectBaseDir . '/' . unit_test_dirname
|
||||||
if !isdirectory(unit_test_dir)
|
if !isdirectory(unit_test_dir)
|
||||||
@ -466,7 +450,7 @@ function! s:Ctest1(args, async_mode)
|
|||||||
execute 'AsyncRun -mode=1 -save=2 -cwd='.unit_test_dir.' @ ' . cmake_cmd
|
execute 'AsyncRun -mode=1 -save=2 -cwd='.unit_test_dir.' @ ' . cmake_cmd
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:Ctest2(args, async_mode)
|
function s:Ctest2(args, async_mode)
|
||||||
let unit_test_dirname = 'unit-tests'
|
let unit_test_dirname = 'unit-tests'
|
||||||
let unit_test_dir = s:ProjectBaseDir . '/' . unit_test_dirname
|
let unit_test_dir = s:ProjectBaseDir . '/' . unit_test_dirname
|
||||||
let build_cmd = 'cmake --build . -j --target unit_tests ' . a:args
|
let build_cmd = 'cmake --build . -j --target unit_tests ' . a:args
|
||||||
@ -474,7 +458,7 @@ function! s:Ctest2(args, async_mode)
|
|||||||
execute 'AsyncRun -mode=1 -save=2 -cwd='.unit_test_dir.' @ ' . build_cmd
|
execute 'AsyncRun -mode=1 -save=2 -cwd='.unit_test_dir.' @ ' . build_cmd
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:Ctest3(args, async_mode)
|
function s:Ctest3(args, async_mode)
|
||||||
let unit_test_dirname = 'unit-tests'
|
let unit_test_dirname = 'unit-tests'
|
||||||
let unit_test_dir = s:ProjectBaseDir . '/' . unit_test_dirname
|
let unit_test_dir = s:ProjectBaseDir . '/' . unit_test_dirname
|
||||||
let ctest_cmd = 'ctest --nocompress-output -T Test'
|
let ctest_cmd = 'ctest --nocompress-output -T Test'
|
||||||
@ -482,7 +466,7 @@ function! s:Ctest3(args, async_mode)
|
|||||||
execute 'AsyncRun -mode='.a:async_mode.' -save=2 -cwd='.unit_test_dir.' @ ' . ctest_cmd .' '. a:args
|
execute 'AsyncRun -mode='.a:async_mode.' -save=2 -cwd='.unit_test_dir.' @ ' . ctest_cmd .' '. a:args
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:Call_and_log(cmd)
|
function s:Call_and_log(cmd)
|
||||||
echom a:cmd
|
echom a:cmd
|
||||||
let r = system(a:cmd)
|
let r = system(a:cmd)
|
||||||
let e = v:shell_error
|
let e = v:shell_error
|
||||||
@ -492,14 +476,14 @@ function! s:Call_and_log(cmd)
|
|||||||
return v:shell_error
|
return v:shell_error
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:DlcproTuiStart()
|
function s:DlcproTuiStart()
|
||||||
let workdir = s:ProjectSrcDir . '/user-interface/src'
|
let workdir = s:ProjectSrcDir . '/user-interface/src'
|
||||||
let cmd = g:ProjectBuildDir . '/user-interface/src/user-interface'
|
let cmd = g:ProjectBuildDir . '/user-interface/src/user-interface'
|
||||||
call asyncrun#quickfix_toggle(10, 1)
|
call asyncrun#quickfix_toggle(10, 1)
|
||||||
execute 'AsyncRun -mode=async -save=2 -cwd='.workdir.' @ ' . cmd
|
execute 'AsyncRun -mode=async -save=2 -cwd='.workdir.' @ ' . cmd
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"function! s:CopyFirmware(command)
|
"function s:CopyFirmware(command)
|
||||||
" let command = 'bash '.s:GdbSlave.' -h '.g:DeviceIP.' '.a:command
|
" let command = 'bash '.s:GdbSlave.' -h '.g:DeviceIP.' '.a:command
|
||||||
"" if a:command == 'update' || a:command == 'start-debug'
|
"" if a:command == 'update' || a:command == 'start-debug'
|
||||||
" let command .= ' '.g:Program
|
" let command .= ' '.g:Program
|
||||||
@ -508,25 +492,25 @@ endfunction
|
|||||||
" call system(command)
|
" call system(command)
|
||||||
"endfunction
|
"endfunction
|
||||||
|
|
||||||
function! s:DlcproEmission(state)
|
function s:DlcproEmission(state)
|
||||||
call s:Call_and_log('ssh -o RemoteCommand=none '.g:SshOpts.' root@'.g:DeviceIP.' "echo '.a:state.' > /sys/bus/i2c/devices/200-0028/emission_button_state"')
|
call s:Call_and_log('ssh -o RemoteCommand=none '.g:SshOpts.' root@'.g:DeviceIP.' "echo '.a:state.' > /sys/bus/i2c/devices/200-0028/emission_button_state"')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:DlcproShutup()
|
function s:DlcproShutup()
|
||||||
call s:Call_and_log('ssh -o RemoteCommand=none '.g:SshOpts.' root@'.g:DeviceIP.' "modprobe -r tam3517_buzzer"')
|
call s:Call_and_log('ssh -o RemoteCommand=none '.g:SshOpts.' root@'.g:DeviceIP.' "modprobe -r tam3517_buzzer"')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:JLinkFlashProgram()
|
function s:JLinkFlashProgram()
|
||||||
call term_start(s:ProjectSrcDir.'/flash_firmware.py -j '.s:jlink_path.'/JLinkExe -a 0x8000000 '.g:Program)
|
call term_start(s:ProjectSrcDir.'/flash_firmware.py -j '.s:jlink_path.'/JLinkExe -a 0x8000000 '.g:Program)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! g:JLinkSWOviewer()
|
function g:JLinkSWOviewer()
|
||||||
let cmd = s:jlink_path.'/JLinkSWOViewerCLExe -device STM32H743ZI -itmmask 0xffffffff -swofreq 450000'
|
let cmd = s:jlink_path.'/JLinkSWOViewerCLExe -device STM32H743ZI -itmmask 0xffffffff -swofreq 450000'
|
||||||
call asyncrun#quickfix_toggle(10, 1)
|
call asyncrun#quickfix_toggle(10, 1)
|
||||||
execute 'AsyncRun -mode=async @ ' . cmd
|
execute 'AsyncRun -mode=async @ ' . cmd
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:DeviceUpdateProgramLinux()
|
function s:DeviceUpdateProgramLinux()
|
||||||
call s:Call_and_log('ssh -o RemoteCommand=none '.g:SshOpts.' root@'.g:DeviceIP.' "killall -q gdbserver start-dc.sh '.fnamemodify(g:ProgramRemote, ':t').'"')
|
call s:Call_and_log('ssh -o RemoteCommand=none '.g:SshOpts.' root@'.g:DeviceIP.' "killall -q gdbserver start-dc.sh '.fnamemodify(g:ProgramRemote, ':t').'"')
|
||||||
sleep 2
|
sleep 2
|
||||||
" call s:Call_and_log('ssh -o RemoteCommand=none '.g:SshOpts.' root@'.g:DeviceIP.' "killall -q -9 gdbserver start-dc.sh '.g:ProgramRemote.'"')
|
" call s:Call_and_log('ssh -o RemoteCommand=none '.g:SshOpts.' root@'.g:DeviceIP.' "killall -q -9 gdbserver start-dc.sh '.g:ProgramRemote.'"')
|
||||||
@ -535,15 +519,15 @@ function! s:DeviceUpdateProgramLinux()
|
|||||||
return r
|
return r
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:DeviceFirmwareUpdateStartLinux()
|
function s:DeviceFirmwareUpdateStartLinux()
|
||||||
let r = s:DeviceUpdateProgramLinux()
|
let r = s:DeviceUpdateProgramLinux()
|
||||||
if (r == 0)
|
if (r == 0)
|
||||||
let cd_workdir = 'cd ' . fnamemodify(g:ProgramRemote, ":h") . ' && '
|
let workdir = 'cd /opt/app &&'
|
||||||
call s:Call_and_log('ssh -o RemoteCommand=none '.g:SshOpts.' -f root@'.g:DeviceIP.' "{ '.cd_workdir.' '.g:ProgramRemote.' 2>&1 | logger -t "'.g:ProgramRemote.'" -p user.err; } &"')
|
call s:Call_and_log('ssh -o RemoteCommand=none '.g:SshOpts.' -f root@'.g:DeviceIP.' "{ '.workdir.' '.g:ProgramRemote.' 2>&1 | logger -t "'.g:ProgramRemote.'" -p user.err; } &"')
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:DeviceStartGdbServer()
|
function s:DeviceStartGdbServer()
|
||||||
if ((g:project_type == 'digifalc') || (g:project_type == 'servoboard') || (g:project_type == 'dl-motor'))
|
if ((g:project_type == 'digifalc') || (g:project_type == 'servoboard') || (g:project_type == 'dl-motor'))
|
||||||
call s:Call_and_log('pkill --full JLinkGDBServer')
|
call s:Call_and_log('pkill --full JLinkGDBServer')
|
||||||
call s:Call_and_log(s:jlink_path.'/JLinkGDBServer -if SWD -device STM32H743ZI &')
|
call s:Call_and_log(s:jlink_path.'/JLinkGDBServer -if SWD -device STM32H743ZI &')
|
||||||
@ -557,7 +541,7 @@ function! s:DeviceStartGdbServer()
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:DeviceStartGdbServerAttach()
|
function s:DeviceStartGdbServerAttach()
|
||||||
if ((g:project_type == 'digifalc') || (g:project_type == 'servoboard') || (g:project_type == 'dl-motor'))
|
if ((g:project_type == 'digifalc') || (g:project_type == 'servoboard') || (g:project_type == 'dl-motor'))
|
||||||
else
|
else
|
||||||
call s:Call_and_log('pkill --full gdbserver')
|
call s:Call_and_log('pkill --full gdbserver')
|
||||||
@ -565,15 +549,15 @@ function! s:DeviceStartGdbServerAttach()
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:SendToTerm(command)
|
function s:SendToTerm(command)
|
||||||
call term_sendkeys('', a:command . "\n")
|
call term_sendkeys('', a:command . "\n")
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:SendToConque(command)
|
function s:SendToConque(command)
|
||||||
execute 'ConqueGdbCommand ' . a:command
|
execute 'ConqueGdbCommand ' . a:command
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:SendToDebugger(command)
|
function s:SendToDebugger(command)
|
||||||
if !exists("s:UseConqueGdb")
|
if !exists("s:UseConqueGdb")
|
||||||
call s:SendToTerm(a:command)
|
call s:SendToTerm(a:command)
|
||||||
else
|
else
|
||||||
@ -581,7 +565,7 @@ function! s:SendToDebugger(command)
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:StartDebugger(elffile, attach)
|
function s:StartDebugger(elffile, attach)
|
||||||
if !exists("s:UseConqueGdb")
|
if !exists("s:UseConqueGdb")
|
||||||
if (a:attach == 0)
|
if (a:attach == 0)
|
||||||
Termdebug
|
Termdebug
|
||||||
@ -599,7 +583,7 @@ function! s:StartDebugger(elffile, attach)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
let g:DlcproBasePath = "/jenkins/workspace/pro--firmware_release_1.9.0-DCESJ5C5R577IG5QFEWTML22UFDDZCJDGFLMDA4DCD3V2ZAGVEJA/source/"
|
let g:DlcproBasePath = "/jenkins/workspace/pro--firmware_release_1.9.0-DCESJ5C5R577IG5QFEWTML22UFDDZCJDGFLMDA4DCD3V2ZAGVEJA/source/"
|
||||||
function! s:DeviceDebug(attach)
|
function s:DeviceDebug(attach)
|
||||||
if (a:attach == 0)
|
if (a:attach == 0)
|
||||||
" let r = s:DeviceFirmwareUpdate()
|
" let r = s:DeviceFirmwareUpdate()
|
||||||
let r = 0
|
let r = 0
|
||||||
@ -651,25 +635,25 @@ endfunction
|
|||||||
" ================
|
" ================
|
||||||
" Regression Tests
|
" Regression Tests
|
||||||
" ================
|
" ================
|
||||||
function! g:DlcproRegtestCmd(arguments)
|
function g:DlcproRegtestCmd(arguments)
|
||||||
return s:DlcproRegtestCmd('', '', '0', '1', '', '--capture=no', a:arguments)
|
return s:DlcproRegtestCmd('', '', '0', '1', '', '--capture=no', a:arguments)
|
||||||
endfunction
|
endfunction
|
||||||
function! g:DlcproRegtestDlProCmd(arguments)
|
function g:DlcproRegtestDlProCmd(arguments)
|
||||||
return s:DlcproRegtestCmd('dlc_pro_proto_050003', 'elab-dlcpro2', '2', '1', 'DLpro', '', a:arguments)
|
return s:DlcproRegtestCmd('dlc_pro__040011', 'elab-dlcpro2', '2', '1', 'DLpro', '', a:arguments)
|
||||||
endfunction
|
endfunction
|
||||||
function! g:DlcproRegtestTaProCmd(arguments)
|
function g:DlcproRegtestTaProCmd(arguments)
|
||||||
return s:DlcproRegtestCmd('dlc_pro_045396', 'elab-dlcpro2', '3', '1', 'TApro', '-m "not usb and not usbstick"', a:arguments)
|
return s:DlcproRegtestCmd('dlc_pro_020372', 'elab-dlcpro2', '3', '1', 'TApro', '-m "not usb and not usbstick"', a:arguments)
|
||||||
endfunction
|
endfunction
|
||||||
function! g:DlcproRegtestCtlCmd(arguments)
|
function g:DlcproRegtestCtlCmd(arguments)
|
||||||
return s:DlcproRegtestCmd('dlc_pro__040120', 'elab-dlcpro2', '1', '1', 'CTL', '-m "not usb and not usbstick"', a:arguments)
|
return s:DlcproRegtestCmd('dlc_pro__040120', 'elab-dlcpro2', '1', '1', 'CTL', '-m "not usb and not usbstick"', a:arguments)
|
||||||
endfunction
|
endfunction
|
||||||
function! g:DlcproRegtestDualDlCmd(arguments)
|
function g:DlcproRegtestDualDlCmd(arguments)
|
||||||
return s:DlcproRegtestCmd('dlc_pro_041299', 'elab-dlcpro2', '4', '2', 'DLpro', '-m "not usb and not usbstick"', a:arguments)
|
return s:DlcproRegtestCmd('dlc_pro_041299', 'elab-dlcpro2', '4', '2', 'DLpro', '-m "not usb and not usbstick"', a:arguments)
|
||||||
endfunction
|
endfunction
|
||||||
function! g:DlcproRegtestDualDl1Cmd(arguments)
|
function g:DlcproRegtestDualDl1Cmd(arguments)
|
||||||
return s:DlcproRegtestCmd('dlc_pro_041299', 'elab-dlcpro2', '4', '1', 'DLpro', '-m "not usb and not usbstick"', a:arguments)
|
return s:DlcproRegtestCmd('dlc_pro_041299', 'elab-dlcpro2', '4', '1', 'DLpro', '-m "not usb and not usbstick"', a:arguments)
|
||||||
endfunction
|
endfunction
|
||||||
function! g:DlcproRegtestShgProCmd(arguments)
|
function g:DlcproRegtestShgProCmd(arguments)
|
||||||
return s:DlcproRegtestCmd('dlc_pro_041355', 'elab-dlcpro2', '7', '1', 'TA-SHGpro', '-m "not usb and not usbstick"', a:arguments)
|
return s:DlcproRegtestCmd('dlc_pro_041355', 'elab-dlcpro2', '7', '1', 'TA-SHGpro', '-m "not usb and not usbstick"', a:arguments)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@ -682,12 +666,12 @@ command -nargs=1 -complete=file DlcproRegtestDualDl1 call s:DlcproRegtest(g:Dlcp
|
|||||||
command -nargs=1 -complete=file DlcproRegtestShgPro call s:DlcproRegtest(g:DlcproRegtestShgProCmd('<args>'))
|
command -nargs=1 -complete=file DlcproRegtestShgPro call s:DlcproRegtest(g:DlcproRegtestShgProCmd('<args>'))
|
||||||
|
|
||||||
let g:DlcproRegtest_fast_restart = 1
|
let g:DlcproRegtest_fast_restart = 1
|
||||||
let g:DlcproRegtest_marks = '"-m (no_crash_without_mc_fpga and not usb and not usbstick and not si and not si1 and not servo_control and not eom and not cavity and not cell_spectroscopy and not falc and not pfd and not smc)"'
|
"let g:DlcproRegtest_marks = '"-m (no_crash_without_mc_fpga and not usb and not usbstick and not si1 and not servo_control and not eom and not cavity and not cell_spectroscopy)"'
|
||||||
"let g:DlcproRegtest_marks = ""
|
let g:DlcproRegtest_marks = ""
|
||||||
let g:DlcproRegtest_lasertype = "DLpro"
|
let g:DlcproRegtest_lasertype = "DLpro"
|
||||||
let g:DlcproRegtest_powerswitch_ip = ""
|
let g:DlcproRegtest_powerswitch_ip = ""
|
||||||
|
|
||||||
function! s:DlcproRegtestCmd(ip, powerswitch_ip, powerplug, laser_count, laser_type, opts, arguments)
|
function s:DlcproRegtestCmd(ip, powerswitch_ip, powerplug, laser_count, laser_type, opts, arguments)
|
||||||
if (a:ip == '')
|
if (a:ip == '')
|
||||||
let ip = g:DeviceIP
|
let ip = g:DeviceIP
|
||||||
else
|
else
|
||||||
@ -727,7 +711,8 @@ function! s:DlcproRegtestCmd(ip, powerswitch_ip, powerplug, laser_count, laser_t
|
|||||||
\"--firmware_file=".archive_dir."/DLCpro-archive.fw ".
|
\"--firmware_file=".archive_dir."/DLCpro-archive.fw ".
|
||||||
\"--license_tool=".licensetool." ".
|
\"--license_tool=".licensetool." ".
|
||||||
\"--license_keyfile=".s:ProjectSrcDir."/license/libdlcprolicense/rsa-private.key ".
|
\"--license_keyfile=".s:ProjectSrcDir."/license/libdlcprolicense/rsa-private.key ".
|
||||||
\"--log-cli-level=INFO "
|
\"--skip_shutdown_after_test ".
|
||||||
|
\"--skip_fw_update ".
|
||||||
\"--log-file-level=DEBUG "
|
\"--log-file-level=DEBUG "
|
||||||
\""
|
\""
|
||||||
|
|
||||||
@ -736,13 +721,14 @@ function! s:DlcproRegtestCmd(ip, powerswitch_ip, powerplug, laser_count, laser_t
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" hint: --collect-only
|
" hint: --collect-only
|
||||||
|
"--log-cli-level=DEBUG --log-file-level=DEBUG
|
||||||
|
|
||||||
let test_cmd .= a:opts." ". g:DlcproRegtest_marks." ".a:arguments
|
let test_cmd .= a:opts." ". g:DlcproRegtest_marks." ".a:arguments
|
||||||
let @+ = test_cmd
|
let @+ = test_cmd
|
||||||
return test_cmd
|
return test_cmd
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:DlcproRegtest(test_cmd)
|
function s:DlcproRegtest(test_cmd)
|
||||||
execute "wa"
|
execute "wa"
|
||||||
|
|
||||||
" Build license tool
|
" Build license tool
|
||||||
@ -793,7 +779,7 @@ endfunction
|
|||||||
" ===============
|
" ===============
|
||||||
" Stash / Unstash
|
" Stash / Unstash
|
||||||
" ===============
|
" ===============
|
||||||
function! s:BuildDirStash(suffix)
|
function s:BuildDirStash(suffix)
|
||||||
if a:suffix != ''
|
if a:suffix != ''
|
||||||
let suffix = a:suffix
|
let suffix = a:suffix
|
||||||
else
|
else
|
||||||
@ -813,7 +799,7 @@ function! s:BuildDirStash(suffix)
|
|||||||
call execute('!cp '.target_dir.'/.project '.g:ProjectBuildDir, 'silent!')
|
call execute('!cp '.target_dir.'/.project '.g:ProjectBuildDir, 'silent!')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:BuildDirUnStash(suffix)
|
function s:BuildDirUnStash(suffix)
|
||||||
if a:suffix != ''
|
if a:suffix != ''
|
||||||
let suffix = a:suffix
|
let suffix = a:suffix
|
||||||
else
|
else
|
||||||
@ -831,7 +817,7 @@ function! s:BuildDirUnStash(suffix)
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! GetAllStashedBuildDirs(ArgLead, CmdLine, CursorPos)
|
function GetAllStashedBuildDirs(ArgLead, CmdLine, CursorPos)
|
||||||
return system('ls '.s:ProjectBaseDir.' | grep build.')
|
return system('ls '.s:ProjectBaseDir.' | grep build.')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@ -855,7 +841,7 @@ command TopticaBeamer execute('!pandoc -s -t beamer -H toptica-style.tex -o %:r.
|
|||||||
" -----------------
|
" -----------------
|
||||||
" Jenkins validator
|
" Jenkins validator
|
||||||
" -----------------
|
" -----------------
|
||||||
function! s:Jenkins_linter(jenkinsfile)
|
function s:Jenkins_linter(jenkinsfile)
|
||||||
if a:jenkinsfile == ''
|
if a:jenkinsfile == ''
|
||||||
let jenkinsfile = expand("%")
|
let jenkinsfile = expand("%")
|
||||||
else
|
else
|
||||||
|
1599
vimfiles.stefan/spell/bmsk.add
Normal file
1599
vimfiles.stefan/spell/bmsk.add
Normal file
File diff suppressed because it is too large
Load Diff
BIN
vimfiles.stefan/spell/bmsk.add.spl
Normal file
BIN
vimfiles.stefan/spell/bmsk.add.spl
Normal file
Binary file not shown.
52
vimfiles.stefan/templates/file.tps
Normal file
52
vimfiles.stefan/templates/file.tps
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
/*****************************************************************************
|
||||||
|
*
|
||||||
|
* FILENAME: %-r%-e
|
||||||
|
*
|
||||||
|
* AUTHOR: IST_LIEBL
|
||||||
|
*
|
||||||
|
* DESCRIPTION:
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* HISTORY:
|
||||||
|
*
|
||||||
|
* %date IST_LIEBL
|
||||||
|
* created file
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
/*----------------------------------------------------------------------------
|
||||||
|
* includes
|
||||||
|
*--------------------------------------------------------------------------*/
|
||||||
|
#include "stdtype.h" /* uint8, ... */
|
||||||
|
|
||||||
|
/*----------------------------------------------------------------------------
|
||||||
|
* defines
|
||||||
|
*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/*----------------------------------------------------------------------------
|
||||||
|
* constants
|
||||||
|
*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/*----------------------------------------------------------------------------
|
||||||
|
* variables
|
||||||
|
*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/*----------------------------------------------------------------------------
|
||||||
|
* public function prototypes
|
||||||
|
*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/*----------------------------------------------------------------------------
|
||||||
|
* privat function prototypes
|
||||||
|
*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/*----------------------------------------------------------------------------
|
||||||
|
* public functions
|
||||||
|
*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/*----------------------------------------------------------------------------
|
||||||
|
* privat functions
|
||||||
|
*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* end of file: %-r%-e */
|
||||||
|
%line9%col5
|
28
vimfiles.stefan/templates/file_c.tpl
Normal file
28
vimfiles.stefan/templates/file_c.tpl
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
/********************************************************************
|
||||||
|
* %filename
|
||||||
|
*--------------------------------------------------------------------
|
||||||
|
* Brief: Kurzbeschreibung
|
||||||
|
* Author: %author
|
||||||
|
* Date: %date
|
||||||
|
* Desc:
|
||||||
|
********************************************************************/
|
||||||
|
|
||||||
|
/****************************
|
||||||
|
* Includes
|
||||||
|
****************************/
|
||||||
|
#include "bmsservices.h"
|
||||||
|
|
||||||
|
/****************************
|
||||||
|
* Konstanten / Variablen
|
||||||
|
****************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************
|
||||||
|
* Funktionsname
|
||||||
|
* ------------------------------------------------------------------
|
||||||
|
* Hier erfolgt lediglich eine Kurzbeschreibung der Funktion.
|
||||||
|
* Eine dokumentationstaugliche Beschreibung(doxygen) der Funktion
|
||||||
|
* gehört in den Header.
|
||||||
|
*******************************************************************/
|
||||||
|
|
19
vimfiles.stefan/templates/file_h.tpl
Normal file
19
vimfiles.stefan/templates/file_h.tpl
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/****************************************************************//*!
|
||||||
|
* \file %filename
|
||||||
|
* \brief Kurzbeschreibung
|
||||||
|
* \author %author
|
||||||
|
* \date %date
|
||||||
|
*
|
||||||
|
* Beschreibung
|
||||||
|
********************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef DATEINAME_H
|
||||||
|
#define DATEINAME_H
|
||||||
|
|
||||||
|
/****************************
|
||||||
|
* Konstanten / Variablen
|
||||||
|
****************************/
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
43
vimfiles.stefan/templates/file_kgs.tpl
Normal file
43
vimfiles.stefan/templates/file_kgs.tpl
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
/********************************************************************
|
||||||
|
* %filename
|
||||||
|
*------------------------------------------------------------------*/
|
||||||
|
/*! \file %filename
|
||||||
|
* \brief Kurzbeschreibung
|
||||||
|
* \author %author
|
||||||
|
* \date %date
|
||||||
|
********************************************************************/
|
||||||
|
sg_funktion FUNKTIONSNAME
|
||||||
|
{
|
||||||
|
fkt_bezeichner FUNKTIONSNAME
|
||||||
|
{
|
||||||
|
deutsch "Eine tolle Funktionsbeschreibung";
|
||||||
|
}
|
||||||
|
|
||||||
|
/****************************************************************
|
||||||
|
* Referenzen
|
||||||
|
****************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
/****************************************************************
|
||||||
|
* RAM-Größen
|
||||||
|
* ---------------------------------------------------------------
|
||||||
|
* Info: RaMBit sind mittels Trennzeichen (1) zu trennen.
|
||||||
|
****************************************************************/
|
||||||
|
|
||||||
|
/****************************************************************
|
||||||
|
* Kennwerte
|
||||||
|
****************************************************************/
|
||||||
|
|
||||||
|
/****************************************************************
|
||||||
|
* Kennlinien
|
||||||
|
****************************************************************/
|
||||||
|
|
||||||
|
/****************************************************************
|
||||||
|
* Kennfelder
|
||||||
|
****************************************************************/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// (1) /*----------------------------------------------*/
|
||||||
|
|
10
vimfiles.stefan/templates/funct.tpl
Normal file
10
vimfiles.stefan/templates/funct.tpl
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/*************************************************************************
|
||||||
|
* FUNCTION:
|
||||||
|
*
|
||||||
|
* PARAMETERS:
|
||||||
|
*
|
||||||
|
* DESCRIPTION:
|
||||||
|
*
|
||||||
|
* RETURNS:
|
||||||
|
*
|
||||||
|
************************************************************************/
|
8
vimfiles.stefan/templates/html.tpl
Normal file
8
vimfiles.stefan/templates/html.tpl
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<HTML>
|
||||||
|
<HEAD>
|
||||||
|
<TITLE></TITLE>
|
||||||
|
</HEAD>
|
||||||
|
<BODY>
|
||||||
|
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
13
vimfiles.stefan/tools/DirDiff.bat
Normal file
13
vimfiles.stefan/tools/DirDiff.bat
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
@echo off
|
||||||
|
set a=%1
|
||||||
|
set b=%2
|
||||||
|
|
||||||
|
:: remove ""
|
||||||
|
set a=%a:"=%
|
||||||
|
set b=%b:"=%
|
||||||
|
:: escape space
|
||||||
|
set a=%a: =\ %
|
||||||
|
set b=%b: =\ %
|
||||||
|
|
||||||
|
echo on
|
||||||
|
"c:\Program Files (x86)\vim\vim73\gvim.exe" -c "DirDiff %a% %b%"
|
BIN
vimfiles.stefan/tools/cscope.exe
Normal file
BIN
vimfiles.stefan/tools/cscope.exe
Normal file
Binary file not shown.
BIN
vimfiles.stefan/tools/ctags.exe
Normal file
BIN
vimfiles.stefan/tools/ctags.exe
Normal file
Binary file not shown.
17
vimfiles.stefan/tools/gvimmerge.bat
Normal file
17
vimfiles.stefan/tools/gvimmerge.bat
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
set vimdir=%~dp0..\..\..
|
||||||
|
set vimprg=%vimdir%\vim74\gvim.exe
|
||||||
|
set vimscript=%~dp0gvimmerge.vim
|
||||||
|
set base=%1
|
||||||
|
set mine=%2
|
||||||
|
set theirs=%3
|
||||||
|
set merged=%4
|
||||||
|
|
||||||
|
if not exist %vimprg% (
|
||||||
|
echo gvim.exe nicht gefunden
|
||||||
|
)
|
||||||
|
|
||||||
|
set cmd=%vimprg% -f -R %base% %mine% %theirs% %merged% -S %vimscript%
|
||||||
|
echo %cmd%
|
||||||
|
%cmd%
|
29
vimfiles.stefan/tools/gvimmerge.vim
Normal file
29
vimfiles.stefan/tools/gvimmerge.vim
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
function s:OpenDiffTab(left, right)
|
||||||
|
tabnew
|
||||||
|
execute 'buffer' a:left
|
||||||
|
diffthis
|
||||||
|
execute 'rightbelow vertical sbuffer' a:right
|
||||||
|
diffthis
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function s:OpenMergeTabs()
|
||||||
|
set columns=200
|
||||||
|
call s:OpenDiffTab(2, 4)
|
||||||
|
call s:FixLineendings()
|
||||||
|
setlocal noreadonly modifiable
|
||||||
|
call s:OpenDiffTab(1, 4)
|
||||||
|
call s:OpenDiffTab(3, 4)
|
||||||
|
call s:OpenDiffTab(1, 2)
|
||||||
|
call s:OpenDiffTab(1, 3)
|
||||||
|
call s:OpenDiffTab(2, 3)
|
||||||
|
tabfirst
|
||||||
|
tabclose
|
||||||
|
" turn off line formatting
|
||||||
|
setlocal formatoptions=
|
||||||
|
" set search pattern to conflict markers
|
||||||
|
let @/ = "[<>=]\\{7}"
|
||||||
|
" set last command to 'save and close'
|
||||||
|
call histadd('cmd', 'w | qa')
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
call s:OpenMergeTabs()
|
BIN
vimfiles.stefan/tools/patch.exe
Normal file
BIN
vimfiles.stefan/tools/patch.exe
Normal file
Binary file not shown.
BIN
vimfiles.stefan/tools/python27.dll
Normal file
BIN
vimfiles.stefan/tools/python27.dll
Normal file
Binary file not shown.
BIN
vimfiles.stefan/tools/tee.exe
Normal file
BIN
vimfiles.stefan/tools/tee.exe
Normal file
Binary file not shown.
2
vimfiles.stefan/tools/untee.bat
Normal file
2
vimfiles.stefan/tools/untee.bat
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
@rem redirect stderr to stdout
|
||||||
|
@%* 2>&1
|
BIN
vimfiles.stefan/tools/wget.exe
Normal file
BIN
vimfiles.stefan/tools/wget.exe
Normal file
Binary file not shown.
@ -320,7 +320,7 @@ let g:clang_format#enable_fallback_style = 0
|
|||||||
" -------------
|
" -------------
|
||||||
" YouCompleteMe
|
" YouCompleteMe
|
||||||
" -------------
|
" -------------
|
||||||
"let g:ycm_clangd_binary_path = exepath('clangd-13')
|
let g:ycm_clangd_binary_path = exepath('clangd-13')
|
||||||
let g:ycm_clangd_uses_ycmd_caching = 0 " Let clangd fully control code completion
|
let g:ycm_clangd_uses_ycmd_caching = 0 " Let clangd fully control code completion
|
||||||
"let g:ycm_clangd_args = ['--all-scopes-completion', '--clang-tidy', '--header-insertion=iwyu', '--suggest-missing-includes', '--enable-config']
|
"let g:ycm_clangd_args = ['--all-scopes-completion', '--clang-tidy', '--header-insertion=iwyu', '--suggest-missing-includes', '--enable-config']
|
||||||
let g:ycm_clangd_args = ['--all-scopes-completion', '--header-insertion=iwyu', '--suggest-missing-includes', '--enable-config']
|
let g:ycm_clangd_args = ['--all-scopes-completion', '--header-insertion=iwyu', '--suggest-missing-includes', '--enable-config']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user