gb geht jetzt in der jumplist bis zum letzten File zurück -> d.h. man kann mit gf beliebig tief gehen und kommt mit gb wieder zurück

Wörterbuch erweitert und sortiert
Syntax Highliting für Lint-Comments

git-svn-id: https://vimsuite.svn.sourceforge.net/svnroot/vimsuite/trunk@148 eb2d0018-73a3-4aeb-bfe9-1def61c9ec69
This commit is contained in:
stefan 2007-12-04 09:05:25 +00:00
parent 522f5b30cc
commit 532efb8664
6 changed files with 939 additions and 377 deletions

View File

@ -34,6 +34,16 @@ function EchoDebug(text)
endif
endfunction
" Go back in jumplist to an older file
function! GotoLastFile()
let actfilename = expand('%')
let filename = actfilename
while filename == actfilename
execute "normal \<C-O>"
let filename = expand('%')
endwhile
endfunction
"command -nargs=1 PathNormpath call PathNormpath('<fargs>')
"function PathNormpath(string)
" if (v:version > 602)

View File

@ -14,11 +14,14 @@ if exists('nochangelog')
endif
function s:ReportRev(Rev)
if a:Rev >= '145'
if a:Rev >= '148'
elseif a:Rev >= '145'
echo 'Neu seit Rev: 145'
echo 'BlockDiff: Markieren -> BlockDiff -> Markieren -> BlockDiff -> neuer Tab'
echo 'Gsub: global substitute'
if a:Rev >= '139'
echo 'gb funktioniert jetzt anders (= <c-o> bis zum letzten file)'
echo 'syntax Highliting für Lint-Kommentare'
elseif a:Rev >= '139'
echo 'Neu seit Rev: 129'
echo 'Projekt laden über project.vim'
echo 'Einstellungen bleiben gespeichert'

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -5,9 +5,21 @@ syntax keyword cType tuint8 tsint8 tuint16 tsint16 tuint32 tsint32 tuint64 ts
syntax keyword cType DfpType SfpType SfpErrorType LWrd LInt
syntax keyword cType TickType
syntax keyword Special ATOMIC BEGIN_ATOMIC END_ATOMIC
"syntax match cTodo "!\s*IST_LIEBL.*[^*/]"
syntax match cTodo "\(!\s*IST_LIEBL.*\>\)\ze\s*\*/"
" debug
syntax match cTodo "\(debug\)"
" Lint-Komments and #ifdef's
" Flexelint-Comment
syntax match cLint "\(\/\/\)\(lint.*\)"
syntax match cLint "\(\/\*\)\(lint\_.\{-}\)\(\*\/\)"
" Splint-Comment
syntax match cLint "\/\*@\_.\{-}@\*\/"
" #ifdef _lint or #ifndef _lint
syntax match cLint "\(#\s*ifn\?def\s\+_lint\)"
hi def link cLint Todo
syntax keyword cConstant TRUE FALSE
syntax region myFold start="{" end="}" transparent fold

View File

@ -164,7 +164,7 @@ nnoremap <S-CR> <C-T>
" find next error
nnoremap <C-N> :cn<CR>
" go back to previous edited file
nnoremap gb :edit #<CR>
nnoremap gb :call GotoLastFile()<CR>
" -----------
" come and go