Permalink
Browse files

use Vundle for vim plugins

  • Loading branch information...
1 parent 4294547 commit 740bb4f399e43bf6147d56dc914349905ea330f6 @tsukkee committed May 3, 2011
@@ -1,113 +0,0 @@
-" ku source: mrucommand
-" Version: 0.0.1
-" Copyright (C) 2009 tsukkee <http://relaxedcolumn.blog8.fc2.com/>
-" License: MIT license {{{
-" Permission is hereby granted, free of charge, to any person obtaining
-" a copy of this software and associated documentation files (the
-" "Software"), to deal in the Software without restriction, including
-" without limitation the rights to use, copy, modify, merge, publish,
-" distribute, sublicense, and/or sell copies of the Software, and to
-" permit persons to whom the Software is furnished to do so, subject to
-" the following conditions:
-"
-" The above copyright notice and this permission notice shall be included
-" in all copies or substantial portions of the Software.
-"
-" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-" }}}
-" Variables "{{{1
-
-let s:TYPES = {'cmd': ':', 'search': '/'}
-
-
-
-
-
-
-
-
-" Interface "{{{1
-function! ku#mrucommand#available_sources() "{{{2
- return ['mrucommand']
-endfunction
-
-
-
-
-
-
-
-
-function! ku#mrucommand#action_table(source_name_ext) "{{{2
- return {
- \ 'default': 'ku#mrucommand#execute',
- \ 'execute': 'ku#mrucommand#execute',
- \ 'input': 'ku#mrucommand#input',
- \ }
-endfunction
-
-
-
-
-function! ku#mrucommand#key_table(source_name_ext) "{{{2
- return {
- \ 'i': 'input',
- \ }
-endfunction
-
-
-
-
-function! ku#mrucommand#gather_items(source_name_ext, pattern) "{{{2
- let _ = []
- for [type, prefix] in items(s:TYPES)
- let n = histnr(type)
- for i in range(0, n)
- let cmd = histget(type, i)
- if(cmd != "")
- call add(_, {
- \ 'word': prefix . cmd,
- \ 'menu': type,
- \ 'ku__sort_priority': - i
- \ })
- endif
- endfor
- endfor
- return _
-endfunction
-
-
-
-
-
-
-
-
-" Misc {{{1
-" Actions {{{2
-function! ku#mrucommand#execute(item) "{{{3
- call feedkeys(a:item.word . "\<CR>", 'n')
-endfunction
-
-
-
-
-function! ku#mrucommand#input(item) "{{{3
- call feedkeys(a:item.word, 'n')
-endfunction
-
-
-
-
-
-
-
-
-" __END__ "{{{1
-" vim:foldmethod=marker:ts=2:sw=2:sts=0:
View
@@ -1,141 +0,0 @@
-" ku source: mrufile
-" Version: 0.0.1
-" Copyright (C) 2009 tsukkee <http://relaxedcolumn.blog8.fc2.com/>
-" License: MIT license {{{
-" Permission is hereby granted, free of charge, to any person obtaining
-" a copy of this software and associated documentation files (the
-" "Software"), to deal in the Software without restriction, including
-" without limitation the rights to use, copy, modify, merge, publish,
-" distribute, sublicense, and/or sell copies of the Software, and to
-" permit persons to whom the Software is furnished to do so, subject to
-" the following conditions:
-"
-" The above copyright notice and this permission notice shall be included
-" in all copies or substantial portions of the Software.
-"
-" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-" }}}
-" Interface "{{{1
-function! ku#mrufile#available_sources() "{{{2
- return ['mrufile']
-endfunction
-
-
-
-
-function! ku#mrufile#action_table(source_name_ext) "{{{2
- return ku#file#action_table(a:source_name_ext)
-endfunction
-
-
-
-
-function! ku#mrufile#key_table(source_name_ext) "{{{2
- return ku#file#key_table(a:source_name_ext)
-endfunction
-
-
-
-
-function! ku#mrufile#gather_items(source_name_ext, pattern) "{{{2
- return s:mrufile_load()
-endfunction
-
-
-
-
-
-
-
-
-" Misc {{{1
-function! ku#mrufile#add()
- call s:mrufile_add()
-endfunction
-
-
-
-
-" Variables {{{2
-if !exists('g:ku_mrufile_size')
- let g:ku_mrufile_size = 100
-endif
-
-
-
-
-" Utilities {{{2
-function! s:mrufile_file() "{{{3
- return ku#make_path(split(&runtimepath, ',')[0], 'info', 'ku', 'mrufile')
-endfunction
-
-
-
-
-function! s:mrufile_load() "{{{3
- let _ = []
- let file = s:mrufile_file()
- if filereadable(file)
- for line in readfile(file, '', g:ku_mrufile_size)
- let [word, _time] = split(line, '\t')
- if filereadable(word) || isdirectory(word)
- call add(_, {
- \ 'word': word,
- \ 'abbr': fnamemodify(word, ':~:.'),
- \ 'menu': getftype(word),
- \ '_time': _time,
- \ 'ku__sort_priority': - str2nr(_time),
- \ })
- endif
- endfor
- endif
- return _
-endfunction
-
-
-
-
-function! s:mrufile_save(list) "{{{3
- let file = s:mrufile_file()
- let directory = fnamemodify(file, ':h')
- if !isdirectory(directory)
- call mkdir(directory, 'p')
- endif
-
- call writefile(map(a:list, 'v:val.word ."\t". v:val._time'), file)
-endfunction
-
-
-
-
-function! s:mrufile_add() "{{{3
- let new_word = expand("%:p")
-
- if !empty(&buftype) || expand('%') !~ '\S'
- return
- endif
-
- let _ = s:mrufile_load()
- call filter(_, 'v:val.word != new_word')
- call insert(_, {
- \ 'word': new_word,
- \ '_time': localtime(),
- \ })
- call s:mrufile_save(_)
-endfunction
-
-
-
-
-
-
-
-
-" __END__ "{{{1
-" vim: foldmethod=marker ts=2 sw=2 sts=0
Oops, something went wrong.

3 comments on commit 740bb4f

Hey!

  • Seems like Bundle 'git://gist.github.com/99234.git' wont work, becase it turns into 99234/comment.vim which isn't a "standard" plugin layout
  • interesting use of Bundle 'git://github.com/gmarik/vundle.git'
  • yeah i wish it was possible : Bundle 'http://svn.macports.org/repository/macports/contrib/mpvim/', {'name': 'macports', 'type': 'svn'} , not yet...

Other than that - thanks for trying Vundle!
Let me know if you have any issues....Thx!

Also instead
Bundle 'git://github.com/Shougo/echodoc.git'
you can just use
Bundle 'Shougo/echodoc'
(same for the rest github based bundles)

Owner

tsukkee replied May 3, 2011

Thank you, gmarik! I updated my vimrc following your advice!
46cec89

Also, I forked vundle to support subversion and mercurial repositories, and use this now.
tsukkee/vundle@9d3546e

Please sign in to comment.