Skip to content

Instantly share code, notes, and snippets.

@pielgrzym
Created September 20, 2011 17:09
Show Gist options
  • Save pielgrzym/1229678 to your computer and use it in GitHub Desktop.
Save pielgrzym/1229678 to your computer and use it in GitHub Desktop.
pyfile /home/pielgrzym/.vim/bundle/vimotal/vimotal.py
python << EOF
def getPivotalGroup(name, group):
import vim, sys, os
scriptdir = "/home/pielgrzym/.vim/bundle/vimotal"
sys.path.append(scriptdir)
# name = vim.eval("a:projectname")
# group = vim.eval("a:groupname")
pivotal = Pivotal()
project = pivotal.projects[name]
iterations = project.printIterations(group)
vim.current.buffer[:] = iterations
EOF
function! OpenPivotalProject(name)
exec 'tabnew pivotal_'.a:name.'_current'
setlocal buftype=nofile
setlocal bufhidden=hide
setlocal nobuflisted
setlocal noswapfile
python getPivotalGroup(vim.eval("a:name"), "current")
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment