def get_documentation():
 from ._compat import StringIO
 (sys.stdout, _) = (StringIO(), sys.stdout)
 help(vim.eval('a:word'))
 (sys.stdout, out) = (_, sys.stdout.getvalue())
 vim.current.buffer.append(str(out).splitlines(), 0)

def get_documentation ( ) : from . _compat import StringIO ( sys . stdout , _ ) = ( StringIO ( ) , sys . stdout ) help ( vim . eval ( 'a:word' ) ) ( sys . stdout , out ) = ( _ , sys . stdout . getvalue ( ) ) vim . current . buffer . append ( str ( out ) . splitlines ( ) , 0 )
search documentation and append to current buffer .