1
0
mirror of https://github.com/gryf/.vim.git synced 2025-12-18 20:10:27 +01:00

- updated FuzzyFinder

- moved Pydoc to ftplugin/python
- updated pyflakes
- added Pygments feature into rst functions
This commit is contained in:
2010-11-15 18:45:27 +01:00
parent 53ddc03045
commit 442a6ab74e
29 changed files with 1779 additions and 1147 deletions

View File

@@ -1,13 +1,12 @@
"=============================================================================
" Copyright (c) 2007-2009 Takeshi NISHIDA
" Copyright (c) 2007-2010 Takeshi NISHIDA
"
"=============================================================================
" LOAD GUARD {{{1
if exists('g:loaded_autoload_fuf_mrucmd') || v:version < 702
if !l9#guardScriptLoading(expand('<sfile>:p'), 0, 0, [])
finish
endif
let g:loaded_autoload_fuf_mrucmd = 1
" }}}1
"=============================================================================
@@ -23,6 +22,11 @@ function fuf#mrucmd#getSwitchOrder()
return g:fuf_mrucmd_switchOrder
endfunction
"
function fuf#mrucmd#getEditableDataNames()
return ['items']
endfunction
"
function fuf#mrucmd#renewCache()
endfunction
@@ -34,7 +38,7 @@ endfunction
"
function fuf#mrucmd#onInit()
call fuf#defineLaunchCommand('FufMruCmd', s:MODE_NAME, '""')
call fuf#defineLaunchCommand('FufMruCmd', s:MODE_NAME, '""', [])
endfunction
"
@@ -53,11 +57,11 @@ let s:MODE_NAME = expand('<sfile>:t:r')
"
function s:updateInfo(cmd)
let info = fuf#loadInfoFile(s:MODE_NAME)
let info.data = fuf#updateMruList(
\ info.data, { 'word' : a:cmd, 'time' : localtime() },
let items = fuf#loadDataFile(s:MODE_NAME, 'items')
let items = fuf#updateMruList(
\ items, { 'word' : a:cmd, 'time' : localtime() },
\ g:fuf_mrucmd_maxItem, g:fuf_mrucmd_exclude)
call fuf#saveInfoFile(s:MODE_NAME, info)
call fuf#saveDataFile(s:MODE_NAME, 'items', items)
endfunction
" }}}1
@@ -73,7 +77,7 @@ endfunction
"
function s:handler.getPrompt()
return fuf#formatPrompt(g:fuf_mrucmd_prompt, self.partialMatching)
return fuf#formatPrompt(g:fuf_mrucmd_prompt, self.partialMatching, '')
endfunction
"
@@ -82,8 +86,8 @@ function s:handler.getPreviewHeight()
endfunction
"
function s:handler.targetsPath()
return 0
function s:handler.isOpenable(enteredPattern)
return 1
endfunction
"
@@ -115,7 +119,7 @@ endfunction
"
function s:handler.onModeEnterPost()
let self.items = copy(self.info.data)
let self.items = fuf#loadDataFile(s:MODE_NAME, 'items')
call map(self.items, 'fuf#makeNonPathItem(v:val.word, strftime(g:fuf_timeFormat, v:val.time))')
call fuf#mapToSetSerialIndex(self.items, 1)
call map(self.items, 'fuf#setAbbrWithFormattedWord(v:val, 1)')