def map_buffer(self):
        # autocommand to call on post save ...
        vim.command("map <buffer> s :python issue.Issue.save()<cr>") # uses current buffer name
        # toggle the state of the current issue
        vim.command("map <buffer> cc :python issue.Issue.toggle_state()<cr>") # uses current buffer name
        # hit enter to browse the current url
        vim.command("map <buffer> <cr> :normal! 0<cr>:python issue.Issue.browse(\"%s\", \"%s\")<cr>" % (self.repo, self.number)) # doesn't use current buffer name
dataset/ETHPy150Open jonmorehouse/vimhub/lib/issue.py/Issue.map_buffer/original