mirror of
https://github.com/gryf/.vim.git
synced 2025-12-18 12:00:30 +01:00
Update of Mark, syntastic, taglisttoo and ctrlp plugins
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
*ctrlp.txt* Fuzzy file, buffer, mru and tag finder. v1.7.2
|
||||
*ctrlp.txt* Fuzzy file, buffer, mru and tag finder. v1.7.4
|
||||
*CtrlP* *ControlP* *'ctrlp'* *'ctrl-p'*
|
||||
===============================================================================
|
||||
# #
|
||||
@@ -175,12 +175,10 @@ only need to keep the lines that you’ve changed the values (inside []): >
|
||||
\ }
|
||||
<
|
||||
Note: In some terminals, it’s not possible to remap <c-h> without also changing
|
||||
<bs> (|key-codes|). So if pressing <bs> moves the cursor to the left instead of
|
||||
deleting a char for you, add this to your |vimrc| to disable the default <c-h>
|
||||
mapping: >
|
||||
let g:ctrlp_prompt_mappings = {
|
||||
\ 'PrtCurLeft()': ['<left>', '<c-^>']
|
||||
\ }
|
||||
<bs> (|keycodes|). So if pressing <bs> moves the cursor to the left instead of
|
||||
deleting a char for you, add this to your |.vimrc| to disable the plugin’s
|
||||
default <c-h> mapping: >
|
||||
let g:ctrlp_prompt_mappings = { 'PrtCurLeft()': ['<left>', '<c-^>'] }
|
||||
<
|
||||
|
||||
*'g:ctrlp_mruf_max'*
|
||||
@@ -386,8 +384,73 @@ Example: >
|
||||
\ 'prog': 'Function_Name_2',
|
||||
\ }
|
||||
<
|
||||
Structure of the functions: >
|
||||
function! Function_Name_1(focus, byfname, regex, prev, item, next, marked)
|
||||
" Arguments:
|
||||
" |
|
||||
" +- a:focus : The focus of the prompt: "prt" or "win".
|
||||
" |
|
||||
" +- a:byfname : In filename mode or in full path mode: "file" or "path".
|
||||
" |
|
||||
" +- a:regex : In regex mode: 1 or 0.
|
||||
" |
|
||||
" +- a:prev : The previous search mode.
|
||||
" |
|
||||
" +- a:item : The current search mode.
|
||||
" |
|
||||
" +- a:next : The next search mode.
|
||||
" |
|
||||
" +- a:marked : The number of marked files, or a comma separated list of
|
||||
" the filenames.
|
||||
|
||||
return full_statusline
|
||||
endfunction
|
||||
|
||||
function! Function_Name_2(str)
|
||||
" a:str : Either the number of files scanned so far, or a string indicating
|
||||
" the current directory is being scanned with a user_command.
|
||||
|
||||
return full_statusline
|
||||
endfunction
|
||||
<
|
||||
See https://gist.github.com/1610859 for a working example.
|
||||
|
||||
*'g:ctrlp_match_func'*
|
||||
Set an external fuzzy matching function for |CtrlP| to use: >
|
||||
let g:ctrlp_match_func = {}
|
||||
<
|
||||
Example: >
|
||||
let g:ctrlp_match_func = { 'match': 'Function_Name' }
|
||||
<
|
||||
Structure of the function: >
|
||||
function! Function_Name(items, str, limit, mmode, ispath, crfile, regex)
|
||||
" Arguments:
|
||||
" |
|
||||
" +- a:items : The full list of items to search in.
|
||||
" |
|
||||
" +- a:str : The string entered by the user.
|
||||
" |
|
||||
" +- a:limit : The max height of the match window. Can be used to limit
|
||||
" | the number of items to return.
|
||||
" |
|
||||
" +- a:mmode : The match mode. Can be one of these strings:
|
||||
" | + "full-line": match the entire line.
|
||||
" | + "filename-only": match only the filename.
|
||||
" | + "first-non-tab": match until the first tab char.
|
||||
" | + "until-last-tab": match until the last tab char.
|
||||
" |
|
||||
" +- a:ispath : Is 1 when searching in file, buffer, mru, dir, and rtscript
|
||||
" | modes. Is 0 otherwise.
|
||||
" |
|
||||
" +- a:crfile : The file in the current window. Should be excluded from the
|
||||
" | results when a:ispath == 1.
|
||||
" |
|
||||
" +- a:regex : In regex mode: 1 or 0.
|
||||
|
||||
return list_of_matched_items
|
||||
endfunction
|
||||
<
|
||||
|
||||
===============================================================================
|
||||
COMMANDS *ctrlp-commands*
|
||||
|
||||
@@ -613,7 +676,8 @@ EXTENSIONS *g:ctrlp-extensions*
|
||||
|
||||
Extensions are optional. To enable an extension, add its name to the variable
|
||||
g:ctrlp_extensions: >
|
||||
let g:ctrlp_extensions = ['tag', 'buffertag', 'quickfix', 'dir', 'rtscript']
|
||||
let g:ctrlp_extensions = ['tag', 'buffertag', 'quickfix', 'dir', 'rtscript',
|
||||
\ 'undo', 'line', 'changes']
|
||||
<
|
||||
The order of the items will be the order they appear on the statusline and when
|
||||
using <c-f>, <c-b>.
|
||||
@@ -634,8 +698,8 @@ Available extensions:~
|
||||
- Name: 'buffertag'
|
||||
- Commands: ':CtrlPBufTag [buffer-name]',
|
||||
':CtrlPBufTagAll'.
|
||||
- Search for a tag within the current buffer or all buffers and jump to the
|
||||
definition. Requires |exuberant_ctags| or compatible programs.
|
||||
- Search for a tag within the current buffer or all listed buffers and jump
|
||||
to the definition. Requires |exuberant_ctags| or compatible programs.
|
||||
|
||||
*:CtrlPQuickfix*
|
||||
* Quickfix mode:~
|
||||
@@ -661,6 +725,27 @@ Available extensions:~
|
||||
- Command: ':CtrlPRTS'
|
||||
- Search for files (vimscripts, docs, snippets...) in runtimepath.
|
||||
|
||||
*:CtrlPUndo*
|
||||
* Undo mode:~
|
||||
- Name: 'undo'
|
||||
- Command: ':CtrlPUndo'
|
||||
- Browse undo history.
|
||||
|
||||
*:CtrlPLine*
|
||||
* Line mode:~
|
||||
- Name: 'line'
|
||||
- Command: ':CtrlPLine'
|
||||
- Search for a line in all listed buffers.
|
||||
|
||||
*:CtrlPChange*
|
||||
*:CtrlPChangeAll*
|
||||
* Change list mode:~
|
||||
- Name: 'changes'
|
||||
- Commands: ':CtrlPChange [buffer-name]',
|
||||
':CtrlPChangeAll'.
|
||||
- Search for and jump to a recent change in the current buffer or in all
|
||||
listed buffers.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Buffer Tag mode options:~
|
||||
|
||||
@@ -703,10 +788,14 @@ Highlighting:~
|
||||
|
||||
* In extensions:
|
||||
CtrlPTabExtra : the part of each line that’s not matched against (Comment)
|
||||
CtrlPqfLineCol : the line and column numbers in quickfix mode (|hl-Search|)
|
||||
CtrlPBufName : the buffer name an entry belongs to (|hl-Directory|)
|
||||
CtrlPTagKind : the kind of the tag in buffer-tag mode (|hl-Title|)
|
||||
CtrlPqfLineCol : the line and column numbers in quickfix mode (Comment)
|
||||
CtrlPUndoT : the elapsed time in undo mode (|hl-Directory|)
|
||||
CtrlPUndoBr : the square brackets [] in undo mode (Comment)
|
||||
CtrlPUndoNr : the undo number inside [] in undo mode (String)
|
||||
CtrlPUndoSv : the point where the file was saved (Comment)
|
||||
CtrlPUndoPo : the current position in the undo tree (|hl-Title|)
|
||||
|
||||
Statuslines:~
|
||||
* Highlight groups:
|
||||
@@ -789,6 +878,7 @@ Special thanks:~
|
||||
===============================================================================
|
||||
CHANGELOG *ctrlp-changelog*
|
||||
|
||||
+ New option: |g:ctrlp_match_func|, allow using a custom fuzzy matcher.
|
||||
+ Rename:
|
||||
*ClearCtrlPCache* -> |CtrlPClearCache|
|
||||
*ClearAllCtrlPCaches* -> |CtrlPClearAllCaches|
|
||||
|
||||
Reference in New Issue
Block a user