1
0
mirror of https://github.com/gryf/.vim.git synced 2026-02-12 05:55:46 +01:00

Update plugins: ctrl_p, syntastic, tagbar, taglisttoo and mark.

Added skeleton to make autocompletion for kickassembler.
This commit is contained in:
2012-11-25 15:55:59 +01:00
parent 6fcf232124
commit bc4032accb
50 changed files with 1679 additions and 153 deletions

View File

@@ -10,8 +10,14 @@
" Dependencies:
" - SearchSpecial.vim autoload script (optional, for improved search messages).
"
" Version: 2.7.1
" Version: 2.7.2
" Changes:
" 15-Oct-2012, Ingo Karkat
" - Issue an error message "No marks defined" instead of moving the cursor by
" one character when there are no marks (e.g. initially or after :MarkClear).
" - Enable custom integrations via new mark#GetNum() and mark#GetPattern()
" functions.
"
" 13-Sep-2012, Ingo Karkat
" - Enable alternative * / # mappings that do not remember the last search type
" by adding optional search function argument to mark#SearchNext().
@@ -626,19 +632,31 @@ function! mark#SearchCurrentMark( isBackward )
endif
endfunction
function! s:ErrorMessage( searchType, searchPattern, isBackward )
if &wrapscan
let v:errmsg = a:searchType . ' not found: ' . a:searchPattern
else
let v:errmsg = printf('%s search hit %s without match for: %s', a:searchType, (a:isBackward ? 'TOP' : 'BOTTOM'), a:searchPattern)
endif
function! s:ErrorMsg( text )
let v:errmsg = a:text
echohl ErrorMsg
echomsg v:errmsg
echohl None
endfunction
function! s:NoMarkErrorMessage()
call s:ErrorMsg('No marks defined')
endfunction
function! s:ErrorMessage( searchType, searchPattern, isBackward )
if &wrapscan
let l:errmsg = a:searchType . ' not found: ' . a:searchPattern
else
let l:errmsg = printf('%s search hit %s without match for: %s', a:searchType, (a:isBackward ? 'TOP' : 'BOTTOM'), a:searchPattern)
endif
call s:ErrorMsg(l:errmsg)
endfunction
" Wrapper around search() with additonal search and error messages and "wrapscan" warning.
function! s:Search( pattern, isBackward, currentMarkPosition, searchType )
if empty(a:pattern)
call s:NoMarkErrorMessage()
return 0
endif
let l:save_view = winsaveview()
" searchpos() obeys the 'smartcase' setting; however, this setting doesn't
@@ -954,6 +972,23 @@ function! mark#GetGroupNum()
endfunction
"- integrations ----------------------------------------------------------------
" Access the number of possible marks.
function! mark#GetNum()
return s:markNum
endfunction
" Access the current / passed index pattern.
function! mark#GetPattern( ... )
if a:0
return s:pattern[a:1]
else
return (s:lastSearch == -1 ? '' : s:pattern[s:lastSearch])
endif
endfunction
"- initializations ------------------------------------------------------------
augroup Mark
autocmd!

View File

@@ -7,6 +7,7 @@ description |mark-description|
usage |mark-usage|
installation |mark-installation|
configuration |mark-configuration|
integration |mark-integration|
limitations |mark-limitations|
known problems |mark-known-problems|
todo |mark-todo|
@@ -336,6 +337,14 @@ behavior: >
vmap <Plug>IgnoreMarkSet <Plug>MarkSet
vmap <Leader>m <Plug>MarkWhitespaceIndifferent
<
==============================================================================
INTEGRATION *mark-integration*
The following functions offer (read-only) access to the number of marks and
individual patterns:
- mark#GetNum()
- mark#GetPattern([{index}])
==============================================================================
LIMITATIONS *mark-limitations*
@@ -359,6 +368,12 @@ http://vim.wikia.com/wiki/Highlight_multiple_words:
==============================================================================
HISTORY *mark-history*
2.7.2 15-Oct-2012
- Issue an error message "No marks defined" instead of moving the cursor by
one character when there are no marks (e.g. initially or after :MarkClear).
- Enable custom integrations via new mark#GetNum() and mark#GetPattern()
functions.
2.7.1 14-Sep-2012
- Enable alternative * / # mappings that do not remember the last search type
through new <Plug>MarkSearchOrCurNext, <Plug>MarkSearchOrCurPrev,