Skip to content
Browse files

Remove unused plugins

  • Loading branch information...
1 parent 3f29d2d commit fcaaed22fea2b7339b0f9733634cb91c4cc61356 @twerth committed Aug 17, 2012
View
46 etc/vim/plugin/F6_Comment.vim
@@ -1,46 +0,0 @@
-" F6_Comment.vim
-" Author: David Maclay
-" Version: 1.1
-" License: GPLv2
-
-" Description:
-" I don't know for sure that something like this does not already exist in Vim,
-" but if it does, I can't find it.
-
-" I recal Cream having this kind of functionallity mapped to <F6>,
-" so to maintain consistency I've kept the convention.
-
-" This uses the current value of &cms / &commentstring to comment and uncomment code.
-" It works for ranges selected in Visual mode, or for the current line in all modes.
-" NB. Comment strings may not include '@' or '+'
-" (I don't know of any languages that use these characters).
-
-" Help:
-" Use <F6> to comment, and <S-F6> to uncomment.
-
-function Comment() range
- execute ':silent '.a:firstline.','.a:lastline.'s@\(^[\t, ]*\)\(\)\(..*\)@\1'.substitute(&cms,'%s.*$','','').'\3@'
- execute ':silent '.a:firstline.','.a:lastline.'s@\(..*\)\($\)@\1'. substitute(&cms,'^.*%s','','').'@'
-endfunction
-map <silent> <F6> :call Comment()<CR>
-imap <silent> <F6> <ESC><F6>i
-
-function UnComment() range
- exe ':silent '.a:firstline.','.a:lastline.'s@\(^[\t, ]*\)\('.substitute(substitute(&cms,'%s.*$','',''),'\*','\\*','g').'\)@\1@'
- exe ':silent '.a:firstline.','.a:lastline.'s@'. substitute(substitute(&cms,'^.*%s','',''),'\*','\\*','g').'$@@'
-endfunction
-map <silent> <S-F6> :call UnComment()<CR>
-imap <silent> <S-F6> <ESC><S-F6>i
-
-
-" P.S.
-" This command cleans up a code file.
-" It swaps 4 spaces for all tabs, and removes any trailing spaces.
-" Just use :Clean
-
-function Clean()
- %s/\t/ /g
- %s/ *$//g
-endfunction
-com -nargs=* Clean :call Clean()<args>|noh
-
View
606 etc/vim/plugin/autocomplpop.vim
@@ -1,606 +0,0 @@
-"=============================================================================
-" autocomplpop.vim - Automatically open the popup menu for completion.
-"=============================================================================
-"
-" Author: Takeshi NISHIDA <ns9tks@DELETE-ME.gmail.com>
-" Version: 2.6, for Vim 7.1
-" Licence: MIT Licence
-" URL: http://www.vim.org/scripts/script.php?script_id=1879
-"
-" GetLatestVimScripts: 1879 1 :AutoInstall: autocomplpop.vim
-"
-"=============================================================================
-" DOCUMENT: {{{1
-" Japanese: http://vim.g.hatena.ne.jp/keyword/autocomplpop.vim
-"
-"-----------------------------------------------------------------------------
-" Description:
-" Install this plugin and your vim comes to automatically opens the popup
-" menu for completion when you enter characters or move the cursor in Insert
-" mode.
-"
-"-----------------------------------------------------------------------------
-" Installation:
-" Drop this file in your plugin directory.
-"
-"-----------------------------------------------------------------------------
-" Usage:
-" If this plugin has been installed, the auto-popup is enabled at startup by
-" default.
-"
-" Which completion method is used depends on the text before the cursor. The
-" default behavior is as follows:
-"
-" 1. The keyword completion is attempted if the text before the cursor
-" consists of two keyword character.
-" 2. The filename completion is attempted if the text before the cursor
-" consists of a filename character + a path separator + 0 or more
-" filename characters.
-" 3. The omni completion is attempted in Ruby file if the text before the
-" cursor consists of "." or "::". (Ruby interface is required.)
-" 4. The omni completion is attempted in Python file if the text before
-" the cursor consists of ".". (Python interface is required.)
-" 5. The omni completion is attempted in HTML/XHTML file if the text
-" before the cursor consists of "<" or "</".
-" 6. The omni completion is attempted in CSS file if the text before the
-" cursor consists of ":", ";", "{", "@", "!", or in the start of line
-" with blank characters and keyword characters.
-"
-" This behavior is customizable.
-"
-" Commands:
-" :AutoComplPopEnable
-" - makes autocommands for the auto-popup.
-" :AutoComplPopDisable
-" - removes autocommands for the auto-popup.
-"
-"-----------------------------------------------------------------------------
-" Options:
-" g:AutoComplPop_NotEnableAtStartup:
-" The auto-popup is not enabled at startup if non-zero is set.
-"
-" g:AutoComplPop_MappingDriven:
-" The auto-popup is triggered by key mappings instead of CursorMovedI
-" event if non-zero is set. This is useful to avoid auto-popup by moving
-" cursor in Insert mode.
-"
-" g:AutoComplPop_IgnoreCaseOption
-" This is set to 'ignorecase' when the popup menu is opened.
-"
-" g:AutoComplPop_CompleteOption:
-" This is set to 'complete' when the popup menu is opened.
-"
-" g:AutoComplPop_CompleteoptPreview:
-" If non-zero is set, 'preview' is added to 'completeopt' when the popup
-" menu is opened.
-"
-" g:AutoComplPop_BehaviorKeywordLength:
-" This is the length of keyword characters before the cursor which are
-" needed to attempt the keyword completion. If negative value is set, it
-" will never attempt this completion.
-"
-" g:AutoComplPop_BehaviorFileLength:
-" This is the length of filename characters before the cursor which are
-" needed to attempt the filename completion. If negative value is set, it
-" will never attempt this completion.
-"
-" g:AutoComplPop_BehaviorRubyOmniMethodLength:
-" This is the length of keyword characters before the cursor which are
-" needed to attempt the ruby omni-completion for methods. If negative
-" value is set, it will never attempt this completion.
-"
-" g:AutoComplPop_BehaviorRubyOmniSymbolLength:
-" This is the length of keyword characters before the cursor which are
-" needed to attempt the ruby omni-completion for symbols. If negative
-" value is set, it will never attempt this completion.
-"
-" g:AutoComplPop_BehaviorPythonOmniLength:
-" This is the length of keyword characters before the cursor which are
-" needed to attempt the python omni-completion. If negative value is set,
-" it will never attempt this completion.
-"
-" g:AutoComplPop_BehaviorHtmlOmniLength:
-" This is the length of keyword characters before the cursor which are
-" needed to attempt the HTML omni-completion. If negative value is set, it
-" will never attempt this completion.
-"
-" g:AutoComplPop_BehaviorCssOmniPropertyLength:
-" This is the length of keyword characters before the cursor which are
-" needed to attempt the CSS omni-completion for properties. If negative
-" value is set, it will never attempt this completion.
-"
-" g:AutoComplPop_BehaviorCssOmniValueLength:
-" This is the length of keyword characters before the cursor which are
-" needed to attempt the CSS omni-completion for values. If negative value
-" is set, it will never attempt this completion.
-"
-" g:AutoComplPop_Behavior:
-" This option is for advanced users. This setting overrides other behavior
-" options. This is a dictionary. Each key corresponds to a filetype. '*'
-" is default. Each value is a list. These are attempted in sequence until
-" completion item is found. Each element is a dictionary which has
-" following items:
-" ['command']:
-" This is a command to be fed to open a popup menu for completion.
-" ['pattern'], ['excluded']:
-" If a text before the cursor matches ['pattern'] and not
-" ['excluded'], a popup menu is opened.
-" ['repeat']:
-" It automatically repeats a completion if non-zero is set.
-"
-"-----------------------------------------------------------------------------
-" Special Thanks:
-" vimtip #1386
-" Daniel Schierbeck
-"
-"-----------------------------------------------------------------------------
-" ChangeLog:
-" 2.6:
-" - Improved the behavior of omni completion for HTML/XHTML.
-"
-" 2.5:
-" - Added some options to customize behavior easily:
-" g:AutoComplPop_BehaviorKeywordLength
-" g:AutoComplPop_BehaviorFileLength
-" g:AutoComplPop_BehaviorRubyOmniMethodLength
-" g:AutoComplPop_BehaviorRubyOmniSymbolLength
-" g:AutoComplPop_BehaviorPythonOmniLength
-" g:AutoComplPop_BehaviorHtmlOmniLength
-" g:AutoComplPop_BehaviorCssOmniPropertyLength
-" g:AutoComplPop_BehaviorCssOmniValueLength
-"
-" 2.4:
-" - Added g:AutoComplPop_MappingDriven option.
-"
-" 2.3.1:
-" - Changed to set 'lazyredraw' while a popup menu is visible to avoid
-" flickering.
-" - Changed a behavior for CSS.
-" - Added support for GetLatestVimScripts.
-"
-" 2.3:
-" - Added a behavior for Python to support omni completion.
-" - Added a behavior for CSS to support omni completion.
-"
-" 2.2:
-" - Changed not to work when 'paste' option is set.
-" - Fixed AutoComplPopEnable command and AutoComplPopDisable command to
-" map/unmap "i" and "R".
-"
-" 2.1:
-" - Fixed the problem caused by "." command in Normal mode.
-" - Changed to map "i" and "R" to feed completion command after starting
-" Insert mode.
-" - Avoided the problem caused by Windows IME.
-"
-" 2.0:
-" - Changed to use CursorMovedI event to feed a completion command instead
-" of key mapping. Now the auto-popup is triggered by moving the cursor.
-" - Changed to feed completion command after starting Insert mode.
-" - Removed g:AutoComplPop_MapList option.
-"
-" 1.7:
-" - Added behaviors for HTML/XHTML. Now supports the omni completion for
-" HTML/XHTML.
-" - Changed not to show expressions for CTRL-R =.
-" - Changed not to set 'nolazyredraw' while a popup menu is visible.
-"
-" 1.6.1:
-" - Changed not to trigger the filename completion by a text which has
-" multi-byte characters.
-"
-" 1.6:
-" - Redesigned g:AutoComplPop_Behavior option.
-" - Changed default value of g:AutoComplPop_CompleteOption option.
-" - Changed default value of g:AutoComplPop_MapList option.
-"
-" 1.5:
-" - Implemented continuous-completion for the filename completion. And
-" added new option to g:AutoComplPop_Behavior.
-"
-" 1.4:
-" - Fixed the bug that the auto-popup was not suspended in fuzzyfinder.
-" - Fixed the bug that an error has occurred with Ruby-omni-completion
-" unless Ruby interface.
-"
-" 1.3:
-" - Supported Ruby-omni-completion by default.
-" - Supported filename completion by default.
-" - Added g:AutoComplPop_Behavior option.
-" - Added g:AutoComplPop_CompleteoptPreview option.
-" - Removed g:AutoComplPop_MinLength option.
-" - Removed g:AutoComplPop_MaxLength option.
-" - Removed g:AutoComplPop_PopupCmd option.
-"
-" 1.2:
-" - Fixed bugs related to 'completeopt'.
-"
-" 1.1:
-" - Added g:AutoComplPop_IgnoreCaseOption option.
-" - Added g:AutoComplPop_NotEnableAtStartup option.
-" - Removed g:AutoComplPop_LoadAndEnable option.
-" 1.0:
-" - g:AutoComplPop_LoadAndEnable option for a startup activation is added.
-" - AutoComplPopLock command and AutoComplPopUnlock command are added to
-" suspend and resume.
-" - 'completeopt' and 'complete' options are changed temporarily while
-" completing by this script.
-"
-" 0.4:
-" - The first match are selected when the popup menu is Opened. You can
-" insert the first match with CTRL-Y.
-"
-" 0.3:
-" - Fixed the problem that the original text is not restored if 'longest'
-" is not set in 'completeopt'. Now the plugin works whether or not
-" 'longest' is set in 'completeopt', and also 'menuone'.
-"
-" 0.2:
-" - When completion matches are not found, insert CTRL-E to stop
-" completion.
-" - Clear the echo area.
-" - Fixed the problem in case of dividing words by symbols, popup menu is
-" not opened.
-"
-" 0.1:
-" - First release.
-"
-" }}}1
-"=============================================================================
-
-" INCLUDE GUARD: ======================================================== {{{1
-if exists('loaded_autocomplpop') || v:version < 701
- finish
-endif
-let loaded_autocomplpop = 1
-
-
-" FUNCTION: ============================================================= {{{1
-
-"-----------------------------------------------------------------------------
-function! s:GetSidPrefix()
- return matchstr(expand('<sfile>'), '<SNR>\d\+_')
-endfunction
-
-"-----------------------------------------------------------------------------
-function! s:GetPopupFeeder()
- return s:PopupFeeder
-endfunction
-
-"-----------------------------------------------------------------------------
-function! s:Enable()
- call s:Disable()
-
- augroup AutoComplPopGlobalAutoCommand
- autocmd!
- autocmd InsertEnter * let s:PopupFeeder.last_pos = [] | unlet s:PopupFeeder.last_pos
- autocmd InsertLeave * call s:PopupFeeder.finish()
- augroup END
-
- if g:AutoComplPop_MappingDriven
- call s:FeedMapping.map()
- else
- autocmd AutoComplPopGlobalAutoCommand CursorMovedI * call s:PopupFeeder.feed()
- endif
-
- nnoremap <silent> i i<C-r>=<SID>GetPopupFeeder().feed()<CR>
- nnoremap <silent> a a<C-r>=<SID>GetPopupFeeder().feed()<CR>
- nnoremap <silent> R R<C-r>=<SID>GetPopupFeeder().feed()<CR>
-endfunction
-
-"-----------------------------------------------------------------------------
-function! s:Disable()
- call s:FeedMapping.unmap()
- augroup AutoComplPopGlobalAutoCommand
- autocmd!
- augroup END
- nnoremap i <Nop> | nunmap i
- nnoremap a <Nop> | nunmap a
- nnoremap R <Nop> | nunmap R
-endfunction
-
-" FUNCTION: BEHAVIOR ==================================================== {{{1
-
-"-----------------------------------------------------------------------------
-function! s:MakeDefaultBehavior()
- let behavs = {
- \ '*' : [],
- \ 'ruby' : [],
- \ 'python' : [],
- \ 'html' : [],
- \ 'xhtml' : [],
- \ 'css' : [],
- \ }
-
- if g:AutoComplPop_BehaviorKeywordLength >= 0
- for key in keys(behavs)
- call add(behavs[key], {
- \ 'command' : "\<C-n>",
- \ 'pattern' : printf('\k\{%d,}$', g:AutoComplPop_BehaviorKeywordLength),
- \ 'repeat' : 0,
- \ })
- endfor
- endif
-
- if g:AutoComplPop_BehaviorFileLength >= 0
- for key in keys(behavs)
- call add(behavs[key], {
- \ 'command' : "\<C-x>\<C-f>",
- \ 'pattern' : printf('\f[%s]\f\{%d,}$', (has('win32') || has('win64') ? '/\\' : '/'),
- \ g:AutoComplPop_BehaviorFileLength),
- \ 'excluded' : '[*/\\][/\\]\f*$\|[^[:print:]]\f*$',
- \ 'repeat' : 1,
- \ })
- endfor
- endif
-
- if has('ruby') && g:AutoComplPop_BehaviorRubyOmniMethodLength >= 0
- call add(behavs.ruby, {
- \ 'command' : "\<C-x>\<C-o>",
- \ 'pattern' : printf('[^. \t]\(\.\|::\)\k\{%d,}$', g:AutoComplPop_BehaviorRubyOmniMethodLength),
- \ 'repeat' : 0,
- \ })
- endif
-
- if has('ruby') && g:AutoComplPop_BehaviorRubyOmniSymbolLength >= 0
- call add(behavs.ruby, {
- \ 'command' : "\<C-x>\<C-o>",
- \ 'pattern' : printf('\(^\|[^:]\):\k\{%d,}$', g:AutoComplPop_BehaviorRubyOmniSymbolLength),
- \ 'repeat' : 0,
- \ })
- endif
-
- if has('python') && g:AutoComplPop_BehaviorPythonOmniLength >= 0
- call add(behavs.python, {
- \ 'command' : "\<C-x>\<C-o>",
- \ 'pattern' : printf('\k\.\k\{%d,}$', g:AutoComplPop_BehaviorPythonOmniLength),
- \ 'repeat' : 0,
- \ })
- endif
-
- if g:AutoComplPop_BehaviorHtmlOmniLength >= 0
- let behav_html = {
- \ 'command' : "\<C-x>\<C-o>",
- \ 'pattern' : printf('\(<\|<\/\|<[^>]\+ \|<[^>]\+=\"\)\k\{%d,}$', g:AutoComplPop_BehaviorHtmlOmniLength),
- \ 'repeat' : 1,
- \ }
- call add(behavs.html , behav_html)
- call add(behavs.xhtml, behav_html)
- endif
-
- if g:AutoComplPop_BehaviorCssOmniPropertyLength >= 0
- call add(behavs.css, {
- \ 'command' : "\<C-x>\<C-o>",
- \ 'pattern' : printf('\(^\s\|[;{]\)\s*\k\{%d,}$', g:AutoComplPop_BehaviorCssOmniPropertyLength),
- \ 'repeat' : 0,
- \ })
- endif
-
- if g:AutoComplPop_BehaviorCssOmniValueLength >= 0
- call add(behavs.css, {
- \ 'command' : "\<C-x>\<C-o>",
- \ 'pattern' : printf('[:@!]\s*\k\{%d,}$', g:AutoComplPop_BehaviorCssOmniValueLength),
- \ 'repeat' : 0,
- \ })
- endif
-
- return behavs
-endfunction
-
-" OBJECT: PopupFeeder: ================================================== {{{1
-let s:PopupFeeder = { 'behavs' : [], 'lock_count' : 0 }
-"-----------------------------------------------------------------------------
-function! s:PopupFeeder.feed()
- " NOTE: CursorMovedI is not triggered while the pupup menu is visible. And
- " it will be triggered when pupup menu is disappeared.
-
- if self.lock_count > 0 || pumvisible() || &paste
- return ''
- endif
-
- let cursor_moved = self.check_cursor_and_update()
- if exists('self.behavs[0]') && self.behavs[0].repeat
- let self.behavs = (self.behavs[0].repeat ? [ self.behavs[0] ] : [])
- elseif cursor_moved
- let self.behavs = copy(exists('g:AutoComplPop_Behavior[&filetype]') ? g:AutoComplPop_Behavior[&filetype]
- \ : g:AutoComplPop_Behavior['*'])
- else
- let self.behavs = []
- endif
-
- let cur_text = strpart(getline('.'), 0, col('.') - 1)
- call filter(self.behavs, 'cur_text =~ v:val.pattern && (!exists(''v:val.excluded'') || cur_text !~ v:val.excluded)')
-
- if empty(self.behavs)
- call self.finish()
- return ''
- endif
-
- " In case of dividing words by symbols while a popup menu is visible,
- " popup is not available unless input <C-e> or try popup once.
- " (E.g. "for(int", "ab==cd") So duplicates first completion.
- call insert(self.behavs, self.behavs[0])
-
- call s:OptionManager.set('completeopt', 'menuone' . (g:AutoComplPop_CompleteoptPreview ? ',preview' : ''))
- call s:OptionManager.set('complete', g:AutoComplPop_CompleteOption)
- call s:OptionManager.set('ignorecase', g:AutoComplPop_IgnoreCaseOption)
- call s:OptionManager.set('lazyredraw', !g:AutoComplPop_MappingDriven)
- " NOTE: With CursorMovedI driven, Set 'lazyredraw' to avoid flickering.
- " With Mapping driven, set 'nolazyredraw' to make a popup menu visible.
-
- " use <Plug> for silence instead of <C-r>=
- call feedkeys(self.behavs[0].command . "\<Plug>AutocomplpopOnPopupPost", 'm')
- return '' " for <C-r>=
-endfunction
-
-"-----------------------------------------------------------------------------
-function! s:PopupFeeder.finish()
- let self.behavs = []
- call s:OptionManager.restore_all()
-endfunction
-
-"-----------------------------------------------------------------------------
-function! s:PopupFeeder.lock()
- let self.lock_count += 1
-endfunction
-
-"-----------------------------------------------------------------------------
-function! s:PopupFeeder.unlock()
- let self.lock_count -= 1
- if self.lock_count < 0
- let self.lock_count = 0
- throw "autocomplpop.vim: not locked"
- endif
-endfunction
-
-"-----------------------------------------------------------------------------
-function! s:PopupFeeder.check_cursor_and_update()
- let prev_pos = (exists('self.last_pos') ? self.last_pos : [-1, -1, -1, -1])
- let self.last_pos = getpos('.')
-
- if has('multi_byte_ime')
- return (prev_pos[1] != self.last_pos[1] || prev_pos[2] + 1 == self.last_pos[2] ||
- \ prev_pos[2] > self.last_pos[2])
- else
- return (prev_pos != self.last_pos)
- endif
-endfunction
-
-"-----------------------------------------------------------------------------
-function! s:PopupFeeder.on_popup_post()
- if pumvisible()
- " a command to restore to original text and select the first match
- return "\<C-p>\<Down>"
- elseif exists('self.behavs[1]')
- call remove(self.behavs, 0)
- return printf("\<C-e>%s\<C-r>=%sGetPopupFeeder().on_popup_post()\<CR>",
- \ self.behavs[0].command, s:GetSidPrefix())
- else
- call self.finish()
- return "\<C-e>"
- endif
-endfunction
-
-" OBJECT: OptionManager: sets or restores temporary options ============= {{{1
-let s:OptionManager = { 'originals' : {} }
-"-----------------------------------------------------------------------------
-function! s:OptionManager.set(name, value)
- call extend(self.originals, { a:name : eval('&' . a:name) }, 'keep')
- execute printf('let &%s = a:value', a:name)
-endfunction
-
-"-----------------------------------------------------------------------------
-function! s:OptionManager.restore_all()
- for [name, value] in items(self.originals)
- execute printf('let &%s = value', name)
- endfor
- let self.originals = {}
-endfunction
-
-" OBJECT: FeedMapping: manages global mappings ========================== {{{1
-let s:FeedMapping = { 'keys' : [] }
-"-----------------------------------------------------------------------------
-function! s:FeedMapping.map()
- call self.unmap()
-
- let self.keys = [
- \ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
- \ 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
- \ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
- \ 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
- \ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
- \ '-', '_', '~', '^', '.', ',', ':', '!', '#', '=', '%', '$', '@', '<', '>', '/', '\',
- \ '<Space>', '<C-h>', '<BS>', ]
-
- for key in self.keys
- execute printf('inoremap <silent> %s %s<C-r>=<SID>GetPopupFeeder().feed()<CR>',
- \ key, key)
- endfor
-endfunction
-
-"-----------------------------------------------------------------------------
-function! s:FeedMapping.unmap()
- for key in self.keys
- execute 'iunmap ' . key
- endfor
-
- let self.keys = []
-endfunction
-
-" }}}1
-
-" GLOBAL OPTIONS: ======================================================= {{{1
-"...........................................................................
-if !exists('g:AutoComplPop_NotEnableAtStartup')
- let g:AutoComplPop_NotEnableAtStartup = 0
-endif
-"...........................................................................
-if !exists('g:AutoComplPop_MappingDriven')
- let g:AutoComplPop_MappingDriven = 0
-endif
-".........................................................................
-if !exists('g:AutoComplPop_IgnoreCaseOption')
- let g:AutoComplPop_IgnoreCaseOption = 0
-endif
-".........................................................................
-if !exists('g:AutoComplPop_CompleteOption')
- let g:AutoComplPop_CompleteOption = '.,w,b,k'
-endif
-".........................................................................
-if !exists('g:AutoComplPop_CompleteoptPreview')
- let g:AutoComplPop_CompleteoptPreview = 0
-endif
-".........................................................................
-if !exists('g:AutoComplPop_BehaviorKeywordLength')
- let g:AutoComplPop_BehaviorKeywordLength = 2
-endif
-".........................................................................
-if !exists('g:AutoComplPop_BehaviorFileLength')
- let g:AutoComplPop_BehaviorFileLength = 0
-endif
-".........................................................................
-if !exists('g:AutoComplPop_BehaviorRubyOmniMethodLength')
- let g:AutoComplPop_BehaviorRubyOmniMethodLength = 0
-endif
-".........................................................................
-if !exists('g:AutoComplPop_BehaviorRubyOmniSymbolLength')
- let g:AutoComplPop_BehaviorRubyOmniSymbolLength = 1
-endif
-".........................................................................
-if !exists('g:AutoComplPop_BehaviorPythonOmniLength')
- let g:AutoComplPop_BehaviorPythonOmniLength = 0
-endif
-".........................................................................
-if !exists('g:AutoComplPop_BehaviorHtmlOmniLength')
- let g:AutoComplPop_BehaviorHtmlOmniLength = 0
-endif
-".........................................................................
-if !exists('g:AutoComplPop_BehaviorCssOmniPropertyLength')
- let g:AutoComplPop_BehaviorCssOmniPropertyLength = 1
-endif
-".........................................................................
-if !exists('g:AutoComplPop_BehaviorCssOmniValueLength')
- let g:AutoComplPop_BehaviorCssOmniValueLength = 0
-endif
-".........................................................................
-if !exists('g:AutoComplPop_Behavior')
- let g:AutoComplPop_Behavior = {}
-endif
-call extend(g:AutoComplPop_Behavior, s:MakeDefaultBehavior(), 'keep')
-
-
-" COMMANDS/AUTOCOMMANDS/MAPPINGS/ETC.: ================================== {{{1
-command! -bar -narg=0 AutoComplPopEnable call s:Enable()
-command! -bar -narg=0 AutoComplPopDisable call s:Disable()
-command! -bar -narg=0 AutoComplPopLock call s:PopupFeeder.lock()
-command! -bar -narg=0 AutoComplPopUnlock call s:PopupFeeder.unlock()
-
-inoremap <silent> <expr> <Plug>AutocomplpopOnPopupPost <SID>GetPopupFeeder().on_popup_post()
-
-if !g:AutoComplPop_NotEnableAtStartup
- AutoComplPopEnable
-endif
-
-" }}}1
-"=============================================================================
-" vim: set fdm=marker:
View
151 etc/vim/plugin/command-t.vim
@@ -1,151 +0,0 @@
-" command-t.vim
-" Copyright 2010 Wincent Colaiuta. All rights reserved.
-"
-" Redistribution and use in source and binary forms, with or without
-" modification, are permitted provided that the following conditions are met:
-"
-" 1. Redistributions of source code must retain the above copyright notice,
-" this list of conditions and the following disclaimer.
-" 2. Redistributions in binary form must reproduce the above copyright notice,
-" this list of conditions and the following disclaimer in the documentation
-" and/or other materials provided with the distribution.
-"
-" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
-" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-" POSSIBILITY OF SUCH DAMAGE.
-
-if exists("g:command_t_loaded")
- finish
-endif
-let g:command_t_loaded = 1
-
-command -nargs=? -complete=dir CommandT call <SID>CommandTShow(<q-args>)
-command CommandTFlush call <SID>CommandTFlush()
-
-if !hasmapto(':CommandT<CR>')
- silent! nmap <unique> <silent> <Leader>t :CommandT<CR>
-endif
-
-function s:CommandTRubyWarning()
- echohl WarningMsg
- echo "command-t.vim requires Vim to be compiled with Ruby support"
- echo "For more information type: :help command-t"
- echohl none
-endfunction
-
-function s:CommandTShow(arg)
- if has('ruby')
- ruby $command_t.show
- else
- call s:CommandTRubyWarning()
- endif
-endfunction
-
-function s:CommandTFlush()
- if has('ruby')
- ruby $command_t.flush
- else
- call s:CommandTRubyWarning()
- endif
-endfunction
-
-if !has('ruby')
- finish
-endif
-
-function CommandTHandleKey(arg)
- ruby $command_t.handle_key
-endfunction
-
-function CommandTBackspace()
- ruby $command_t.backspace
-endfunction
-
-function CommandTDelete()
- ruby $command_t.delete
-endfunction
-
-function CommandTAcceptSelection()
- ruby $command_t.accept_selection
-endfunction
-
-function CommandTAcceptSelectionTab()
- ruby $command_t.accept_selection :command => 'tabe'
-endfunction
-
-function CommandTAcceptSelectionSplit()
- ruby $command_t.accept_selection :command => 'sp'
-endfunction
-
-function CommandTAcceptSelectionVSplit()
- ruby $command_t.accept_selection :command => 'vs'
-endfunction
-
-function CommandTToggleFocus()
- ruby $command_t.toggle_focus
-endfunction
-
-function CommandTCancel()
- ruby $command_t.cancel
-endfunction
-
-function CommandTSelectNext()
- ruby $command_t.select_next
-endfunction
-
-function CommandTSelectPrev()
- ruby $command_t.select_prev
-endfunction
-
-function CommandTClear()
- ruby $command_t.clear
-endfunction
-
-function CommandTCursorLeft()
- ruby $command_t.cursor_left
-endfunction
-
-function CommandTCursorRight()
- ruby $command_t.cursor_right
-endfunction
-
-function CommandTCursorEnd()
- ruby $command_t.cursor_end
-endfunction
-
-function CommandTCursorStart()
- ruby $command_t.cursor_start
-endfunction
-
-ruby << EOF
- # require Ruby files
- begin
- # prepare controller
- require 'command-t/vim'
- require 'command-t/controller'
- $command_t = CommandT::Controller.new
- rescue LoadError
- load_path_modified = false
- ::VIM::evaluate('&runtimepath').to_s.split(',').each do |path|
- lib = "#{path}/ruby"
- if !$LOAD_PATH.include?(lib) and File.exist?(lib)
- $LOAD_PATH << lib
- load_path_modified = true
- end
- end
- retry if load_path_modified
-
- # could get here if C extension was not compiled, or was compiled
- # for the wrong architecture or Ruby version
- require 'command-t/stub'
- $command_t = CommandT::Stub.new
- end
-EOF
View
158 etc/vim/plugin/fuf.vim
@@ -1,158 +0,0 @@
-"=============================================================================
-" Copyright (c) 2007-2010 Takeshi NISHIDA
-"
-" GetLatestVimScripts: 1984 1 :AutoInstall: FuzzyFinder
-"=============================================================================
-" LOAD GUARD {{{1
-
-try
- if !l9#guardScriptLoading(expand('<sfile>:p'), 702, 101, [])
- finish
- endif
-catch /E117/
- echoerr '***** L9 library must be installed! *****'
- finish
-endtry
-
-" }}}1
-"=============================================================================
-" LOCAL FUNCTIONS {{{1
-
-"
-function s:initialize()
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_modesDisable' , [ 'mrufile', 'mrucmd', ])
- call l9#defineVariableDefault('g:fuf_keyOpen' , '<CR>')
- call l9#defineVariableDefault('g:fuf_keyOpenSplit' , '<C-j>')
- call l9#defineVariableDefault('g:fuf_keyOpenVsplit' , '<C-k>')
- call l9#defineVariableDefault('g:fuf_keyOpenTabpage' , '<C-l>')
- call l9#defineVariableDefault('g:fuf_keyPreview' , '<C-@>')
- call l9#defineVariableDefault('g:fuf_keyNextMode' , '<C-t>')
- call l9#defineVariableDefault('g:fuf_keyPrevMode' , '<C-y>')
- call l9#defineVariableDefault('g:fuf_keyPrevPattern' , '<C-s>')
- call l9#defineVariableDefault('g:fuf_keyNextPattern' , '<C-_>')
- call l9#defineVariableDefault('g:fuf_keySwitchMatching', '<C-\><C-\>')
- call l9#defineVariableDefault('g:fuf_dataDir' , '~/.vim-fuf-data')
- call l9#defineVariableDefault('g:fuf_abbrevMap' , {})
- call l9#defineVariableDefault('g:fuf_patternSeparator' , ';')
- call l9#defineVariableDefault('g:fuf_promptHighlight' , 'Question')
- call l9#defineVariableDefault('g:fuf_ignoreCase' , 1)
- call l9#defineVariableDefault('g:fuf_splitPathMatching', 1)
- call l9#defineVariableDefault('g:fuf_fuzzyRefining' , 0)
- call l9#defineVariableDefault('g:fuf_smartBs' , 1)
- call l9#defineVariableDefault('g:fuf_reuseWindow' , 1)
- call l9#defineVariableDefault('g:fuf_timeFormat' , '(%Y-%m-%d %H:%M:%S)')
- call l9#defineVariableDefault('g:fuf_learningLimit' , 100)
- call l9#defineVariableDefault('g:fuf_enumeratingLimit' , 50)
- call l9#defineVariableDefault('g:fuf_maxMenuWidth' , 78)
- call l9#defineVariableDefault('g:fuf_previewHeight' , 0)
- call l9#defineVariableDefault('g:fuf_autoPreview' , 0)
- call l9#defineVariableDefault('g:fuf_useMigemo' , 0)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_buffer_prompt' , '>Buffer[]>')
- call l9#defineVariableDefault('g:fuf_buffer_switchOrder', 10)
- call l9#defineVariableDefault('g:fuf_buffer_mruOrder' , 1)
- call l9#defineVariableDefault('g:fuf_buffer_keyDelete' , '<C-]>')
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_file_prompt' , '>File[]>')
- call l9#defineVariableDefault('g:fuf_file_switchOrder', 20)
- call l9#defineVariableDefault('g:fuf_file_exclude' , '\v\~$|\.(o|exe|dll|bak|orig|sw[po])$|(^|[/\\])\.(hg|git|bzr)($|[/\\])')
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_coveragefile_prompt' , '>CoverageFile[]>')
- call l9#defineVariableDefault('g:fuf_coveragefile_switchOrder', 30)
- call l9#defineVariableDefault('g:fuf_coveragefile_exclude' , '\v\~$|\.(o|exe|dll|bak|orig|sw[po])$|(^|[/\\])\.(hg|git|bzr)($|[/\\])')
- call l9#defineVariableDefault('g:fuf_coveragefile_globPatterns', ['**/.*', '**/*'])
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_dir_prompt' , '>Dir[]>')
- call l9#defineVariableDefault('g:fuf_dir_switchOrder', 40)
- call l9#defineVariableDefault('g:fuf_dir_exclude' , '\v(^|[/\\])\.(hg|git|bzr)($|[/\\])')
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_mrufile_prompt' , '>MRU-File[]>')
- call l9#defineVariableDefault('g:fuf_mrufile_switchOrder', 50)
- call l9#defineVariableDefault('g:fuf_mrufile_exclude' , '\v\~$|\.(o|exe|dll|bak|orig|sw[po])$|^(\/\/|\\\\|\/mnt\/|\/media\/)')
- call l9#defineVariableDefault('g:fuf_mrufile_maxItem' , 200)
- call l9#defineVariableDefault('g:fuf_mrufile_maxItemDir' , 50)
- call l9#defineVariableDefault('g:fuf_mrufile_keyExpand' , '<C-]>')
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_mrucmd_prompt' , '>MRU-Cmd[]>')
- call l9#defineVariableDefault('g:fuf_mrucmd_switchOrder', 60)
- call l9#defineVariableDefault('g:fuf_mrucmd_exclude' , '^$')
- call l9#defineVariableDefault('g:fuf_mrucmd_maxItem' , 200)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_bookmarkfile_prompt' , '>Bookmark-File[]>')
- call l9#defineVariableDefault('g:fuf_bookmarkfile_switchOrder', 70)
- call l9#defineVariableDefault('g:fuf_bookmarkfile_searchRange', 400)
- call l9#defineVariableDefault('g:fuf_bookmarkfile_keyDelete' , '<C-]>')
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_bookmarkdir_prompt' , '>Bookmark-Dir[]>')
- call l9#defineVariableDefault('g:fuf_bookmarkdir_switchOrder', 80)
- call l9#defineVariableDefault('g:fuf_bookmarkdir_keyDelete' , '<C-]>')
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_tag_prompt' , '>Tag[]>')
- call l9#defineVariableDefault('g:fuf_tag_switchOrder', 90)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_buffertag_prompt' , '>Buffer-Tag[]>')
- call l9#defineVariableDefault('g:fuf_buffertag_switchOrder', 100)
- call l9#defineVariableDefault('g:fuf_buffertag_ctagsPath' , 'ctags')
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_taggedfile_prompt' , '>Tagged-File[]>')
- call l9#defineVariableDefault('g:fuf_taggedfile_switchOrder', 110)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_jumplist_prompt' , '>Jump-List[]>')
- call l9#defineVariableDefault('g:fuf_jumplist_switchOrder', 120)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_changelist_prompt' , '>Change-List[]>')
- call l9#defineVariableDefault('g:fuf_changelist_switchOrder', 130)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_quickfix_prompt' , '>Quickfix[]>')
- call l9#defineVariableDefault('g:fuf_quickfix_switchOrder', 140)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_line_prompt' , '>Line[]>')
- call l9#defineVariableDefault('g:fuf_line_switchOrder', 150)
- "---------------------------------------------------------------------------
- call l9#defineVariableDefault('g:fuf_help_prompt' , '>Help[]>')
- call l9#defineVariableDefault('g:fuf_help_switchOrder', 160)
- "---------------------------------------------------------------------------
- command! -bang -narg=0 FufEditDataFile call fuf#editDataFile()
- command! -bang -narg=0 FufRenewCache call s:renewCachesOfAllModes()
- "---------------------------------------------------------------------------
- call fuf#addMode('buffer')
- call fuf#addMode('file')
- call fuf#addMode('coveragefile')
- call fuf#addMode('dir')
- call fuf#addMode('mrufile')
- call fuf#addMode('mrucmd')
- call fuf#addMode('bookmarkfile')
- call fuf#addMode('bookmarkdir')
- call fuf#addMode('tag')
- call fuf#addMode('buffertag')
- call fuf#addMode('taggedfile')
- call fuf#addMode('jumplist')
- call fuf#addMode('changelist')
- call fuf#addMode('quickfix')
- call fuf#addMode('line')
- call fuf#addMode('help')
- call fuf#addMode('givenfile')
- call fuf#addMode('givendir')
- call fuf#addMode('givencmd')
- call fuf#addMode('callbackfile')
- call fuf#addMode('callbackitem')
- "---------------------------------------------------------------------------
-endfunction
-
-"
-function s:renewCachesOfAllModes()
- for m in fuf#getModeNames()
- call fuf#{m}#renewCache()
- endfor
-endfunction
-
-" }}}1
-"=============================================================================
-" INITIALIZATION {{{1
-
-call s:initialize()
-
-" }}}1
-"=============================================================================
-" vim: set fdm=marker:
View
1,858 etc/vim/plugin/fuzzyfinder.vim
0 additions, 1,858 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
138 etc/vim/plugin/fuzzyfinder_textmate.vim
@@ -1,138 +0,0 @@
-if has("ruby")
-
-" ====================================================================================
-" COPIED FROM FUZZYFINDER.VIM {{{
-" since they can't be called from outside fuzzyfinder.vim
-" ====================================================================================
-
-function! s:ExistsPrompt(line, prompt)
- return strlen(a:line) >= strlen(a:prompt) && a:line[:strlen(a:prompt) -1] ==# a:prompt
-endfunction
-
-function! s:RemovePrompt(line, prompt)
- return a:line[(s:ExistsPrompt(a:line, a:prompt) ? strlen(a:prompt) : 0):]
-endfunction
-
-" ------------------------------------------------------------------------------------
-" }}}
-" ====================================================================================
-
-command! -bang -narg=? -complete=file FuzzyFinderTextMate call FuzzyFinderTextMateLauncher(<q-args>, len(<q-bang>))
-command! FuzzyFinderTextMateRefreshFiles ruby refresh_finder
-
-function! InstantiateTextMateMode() "{{{
-ruby << RUBY
- begin
- require "#{ENV['HOME']}/.vim/ruby/fuzzy_file_finder"
- rescue LoadError
- begin
- require 'rubygems'
- begin
- gem 'fuzzy_file_finder'
- rescue Gem::LoadError
- gem 'jamis-fuzzy_file_finder'
- end
- rescue LoadError
- end
-
- require 'fuzzy_file_finder'
- end
-RUBY
-
- " Configuration option: g:fuzzy_roots
- " Specifies roots in which the FuzzyFinder will search.
- if !exists('g:fuzzy_roots')
- let g:fuzzy_roots = ['.']
- endif
-
- " Configuration option: g:fuzzy_ceiling
- " Specifies the maximum number of files that FuzzyFinder allows to be searched
- if !exists('g:fuzzy_ceiling')
- let g:fuzzy_ceiling = 10000
- endif
-
- " Configuration option: g:fuzzy_ignore
- " A delimited list of file glob patterns to ignore. Entries may be delimited
- " with either commas or semi-colons.
- if !exists('g:fuzzy_ignore')
- let g:fuzzy_ignore = ""
- endif
-
- " Configuration option: g:fuzzy_path_display
- " Set to `abbr` if you want to display the abbreviated path to a file,
- " `full` to display the full path
- if !exists('g:fuzzy_path_display')
- let g:fuzzy_path_display = 'abbr'
- endif
-
- " Configuration option: g:fuzzy_enumerating_limit
- " The maximum number of matches to return at a time. Defaults to 200, via the
- " g:FuzzyFinderMode.TextMate.enumerating_limit variable, but using a global variable
- " makes it easier to set this value.
-
-ruby << RUBY
- def finder
- @finder ||= begin
- roots = VIM.evaluate("g:fuzzy_roots").split("\n")
- ceiling = VIM.evaluate("g:fuzzy_ceiling").to_i
- ignore = VIM.evaluate("g:fuzzy_ignore").split(/[;,]/)
- FuzzyFileFinder.new(roots, ceiling, ignore)
- end
- end
-
- def refresh_finder
- @finder = nil
- finder
- nil
- end
-RUBY
-
- let g:FuzzyFinderMode.TextMate = copy(g:FuzzyFinderMode.Base)
-
- function! g:FuzzyFinderMode.TextMate.on_complete(base)
- if exists('g:fuzzy_enumerating_limit')
- let l:enumerating_limit = g:fuzzy_enumerating_limit
- else
- let l:enumerating_limit = self.enumerating_limit
- endif
- let result = []
- ruby << RUBY
-
- text = VIM.evaluate('s:RemovePrompt(a:base,self.prompt)')
- enumerating_limit = VIM.evaluate('l:enumerating_limit').to_i
- path_display = VIM.evaluate("g:fuzzy_path_display")
- ceiling = VIM.evaluate('g:fuzzy_ceiling').to_i
-
- matches = finder.find(text, ceiling)
- matches_length = matches.length
- matches.sort_by { |a| [-a[:score], a[:path]] }[0,enumerating_limit].each_with_index do |match, index|
- word = match[:path]
- abbr = "%2d: %s" % [index+1, match[path_display.to_sym]]
- menu = "[%5d]" % [match[:score] * 10000]
- VIM.evaluate("add(result, { 'word' : fnamemodify(#{word.inspect},':~:.'), 'abbr' : #{abbr.inspect}, 'menu' : #{menu.inspect}, 'ranks': [#{index}] })")
- end
-RUBY
- return result
- endfunction
-
- function! FuzzyFinderTextMateLauncher(initial_text, partial_matching)
- call g:FuzzyFinderMode.TextMate.launch(a:initial_text, a:partial_matching)
- endfunction
-
- let g:FuzzyFinderOptions.TextMate = copy(g:FuzzyFinderOptions.File)
-endfunction "}}}
-
-if !exists('loaded_fuzzyfinder') "{{{
- function! FuzzyFinderTextMateLauncher(initial_text, partial_matching)
- call InstantiateTextMateMode()
- function! FuzzyFinderTextMateLauncher(initial_text, partial_matching)
- call g:FuzzyFinderMode.TextMate.launch(a:initial_text, a:partial_matching)
- endfunction
- call g:FuzzyFinderMode.TextMate.launch(a:initial_text, a:partial_matching)
- endfunction
- finish
-end "}}}
-
-call InstantiateTextMateMode()
-
-endif

0 comments on commit fcaaed2

Please sign in to comment.
Something went wrong with that request. Please try again.