original_docstring: 
      Editor file using neovim outside floating window.
      
docstring: Editor file using neovim outside floating window.
docstring_tokens: Editor file using neovim outside floating window .
code: def edit_file():
      """
      Editor file using neovim outside floating window.
      """
  
      socket_path = os.getenv('NVIM_LISTEN_ADDRESS')
  
      if not socket_path:
          sys.exit(1)
  
      client = pynvim.attach('socket', path=socket_path)
  
      try:
          pick_enable = client.vars['rnvimr_pick_enable']
      except KeyError:
          pick_enable = 0
  
      cmd = ['close'] if pick_enable else ['noautocmd wincmd p']
  
      for file in sys.argv[2:]:
          cmd.append('silent! edit {}'.format(file))
  
      if not pick_enable:
          cmd.append('noautocmd wincmd p')
          cmd.append('noautocmd startinsert')
      else:
          client.call('rnvimr#rpc#enable_attach_file', async_=True)
  
      client.command('|'.join(cmd), async_=True)
code_tokens: def edit_file ( ) : socket_path = os . getenv ( 'NVIM_LISTEN_ADDRESS' ) if not socket_path : sys . exit ( 1 ) client = pynvim . attach ( 'socket' , path = socket_path ) try : pick_enable = client . vars [ 'rnvimr_pick_enable' ] except KeyError : pick_enable = 0 cmd = [ 'close' ] if pick_enable else [ 'noautocmd wincmd p' ] for file in sys . argv [ 2 : ] : cmd . append ( 'silent! edit {}' . format ( file ) ) if not pick_enable : cmd . append ( 'noautocmd wincmd p' ) cmd . append ( 'noautocmd startinsert' ) else : client . call ( 'rnvimr#rpc#enable_attach_file' , async_ = True ) client . command ( '|' . join ( cmd ) , async_ = True )
short_docstring: Editor file using neovim outside floating window.
short_docstring_tokens: Editor file using neovim outside floating window .
comment: """
      Editor file using neovim outside floating window.
      """