def visual_view(): text = get_visual_selection() if "\n" in text: print("bad selection") else: devhelpers.view(text)
def keyword_view(): devhelpers.view(vim.eval('expand("<cword>")'))