if waittillguiexist('*.gedit') == 0:
    raise LdtpExecutionError('Gedit window does not exist')
selectmenuitem('*-gedit', 'mnuFile;mnuOpen')
selectrow('dkgOpenFiles...', 'tblFiles', fileName[0])
send code from vim to an external application for execution