Skip to content

Commit

Permalink
0.4 is crappy
Browse files Browse the repository at this point in the history
  • Loading branch information
gawel committed Dec 12, 2011
1 parent 0b641ad commit 9fc4c39
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
13 changes: 9 additions & 4 deletions ohmyvim/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,15 @@ def list(self, args):
self.log('* %s (%s)', b.name, b.remote)
if args.all:
config = get_config()
for name, url in sorted(config.bundles.items()):
self.log('- %s (%s)', name, url)
for name, url in sorted(config.vimscripts.items()):
self.log('- %s (%s)', name, url)
printed = set()
bundles = config.bundles.items() + config.vimscripts.items()
for name, url in bundles:
if name not in printed:
printed.add(name)
if args.raw:
self.log(name)
else:
self.log('- %s (%s)', name, url)

def install(self, args):
config = get_config()
Expand Down
4 changes: 3 additions & 1 deletion plugin/ohmyvim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ endfunction

function! OhMyVimCmpl(A,L,P)
let a:splitted = split(a:L, ' ')
let a:cmds=sort(split('search,upgrade,list,remove,theme,profiles,install', ','))
let a:cmds=sort(split('info,search,upgrade,list,remove,theme,profiles,install', ','))
if len(a:splitted) == 1
return join(a:cmds, "\n")
elseif len(a:splitted) == 2
Expand All @@ -33,6 +33,8 @@ function! OhMyVimCmpl(A,L,P)
if len(a:splitted) >= 3
if a:splitted[1] == 'theme'
return system(g:ohmyvim.' theme --raw')
elseif a:splitted[1] == 'info'
return system(g:ohmyvim.' list -a --raw')
elseif a:splitted[1] == 'install'
return system(g:ohmyvim.' install --raw')
elseif a:splitted[1] == 'upgrade'
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
import os

version = '0.3'
version = '0.5'


def read(*args):
Expand Down

0 comments on commit 9fc4c39

Please sign in to comment.