session nicht neu laden
+ ftdetect/srec.vim git-svn-id: https://vimsuite.svn.sourceforge.net/svnroot/vimsuite/trunk@213 eb2d0018-73a3-4aeb-bfe9-1def61c9ec69
This commit is contained in:
parent
ec0033810f
commit
3d049d4de7
1
vimfiles.stefan/ftdetect/srec.vim
Normal file
1
vimfiles.stefan/ftdetect/srec.vim
Normal file
@ -0,0 +1 @@
|
||||
autocmd BufRead,BufNewFile *.srec setlocal filetype=srec
|
@ -154,16 +154,21 @@ function s:SetProject(projectfile)
|
||||
call s:EvalProjectVariables()
|
||||
endif
|
||||
|
||||
if exists('g:sessionfile')
|
||||
" Vim-Session load
|
||||
try
|
||||
execute 'source' g:sessionfile
|
||||
catch /^Vim\%((\a\+)\)\=:E484/ " file not found
|
||||
catch " other error
|
||||
echom 'Fehler in' g:sessionfile ':' v:exception
|
||||
endtry
|
||||
" Vim-Session autowrite
|
||||
autocmd VimLeavePre * execute 'mksession!' g:sessionfile
|
||||
if exists('g:did_load_sessionfile')
|
||||
echom 'Sessionfile not loaded again'
|
||||
else
|
||||
let g:did_load_sessionfile=1
|
||||
if exists('g:sessionfile')
|
||||
" Vim-Session load
|
||||
try
|
||||
execute 'source' g:sessionfile
|
||||
catch /^Vim\%((\a\+)\)\=:E484/ " file not found
|
||||
catch " other error
|
||||
echom 'Fehler in' g:sessionfile ':' v:exception
|
||||
endtry
|
||||
" Vim-Session autowrite
|
||||
autocmd VimLeavePre * execute 'mksession!' g:sessionfile
|
||||
endif
|
||||
endif
|
||||
|
||||
endfunction
|
||||
|
@ -21,6 +21,7 @@ syn keyword attribute SYSTEM_CONSTANT
|
||||
syn keyword attribute BYTE_ORDER ALIGNMENT_BYTE ALIGNMENT_WORD ALIGNMENT_LONG ALIGNMENT_FLOAT32_IEEE
|
||||
syn keyword attribute FORMAT DEPOSIT AXIS_PTS_REF BIT_MASK ECU_ADDRESS ARRAY_SIZE
|
||||
syn keyword attribute COEFFS FNC_VALUES NO_AXIS_PTS_X NO_AXIS_PTS_Y AXIS_PTS_X AXIS_PTS_Y
|
||||
syn keyword attribute REF_MEMORY_SEGMENT
|
||||
|
||||
|
||||
" Define the default highlighting.
|
||||
|
Loading…
x
Reference in New Issue
Block a user