Onivim 2 User Manual

Onivim 2 User Manual

  • Early Access
  • About
  • Timeline
  • Docs

›Languages

Getting Started

  • Why Onivim?
  • Installation
  • Vim Differences
  • Tips for Vim Users
  • Tips for VSCode Users
  • Modal Editing 101

Basic Usage

  • Moving Around
  • Editing and Deleting Text
  • Visual Mode (Selection)
  • Working with Files
  • Formatting
  • Language Features
  • Command Line
  • Integrated Terminal
  • Emmet
  • Snippets

Configuration

  • Settings
  • Key Bindings
  • Extensions

Languages

  • Reason & OCaml
  • ReScript
  • Python
  • Go
  • Java
  • C / C++
  • C#
  • Rust

For Developers

  • Architecture
  • Building from Source
  • How to Contribute
  • Style Guide
  • License Key Bounty

Other

  • FAQ
  • Appendix A: v2 Design Doc
  • Appendix B: More Resources
Edit

Python

python-support

Onivim supports several features from Microsoft's vscode-python extension, including:

  • Code completion
  • Go-to-definition
  • Hover
  • Signature Help

Setup

NOTE: There is a blocking bug (https://github.com/microsoft/vscode-python/issues/12465) in the latest open-vsx package, so the extension needs to be installed manually.

  1. Download the extension: https://github.com/microsoft/vscode-python/releases/download/2020.5.86806/ms-python-release.vsix
  2. Run oni2 --install-extension /path/to/ms-python-release.vsix
  3. Activate your virtual environment in your python project
  4. Open oni2 from your python project folder

If all goes well - you'll see the current python interpreter in the status bar:

python-status-bar

FAQ

I'm not getting completions or diagnostics - what can I try?

  1. Make sure you start Onivim from the active virtual environment. This will set the path to the python modules for the vscode-python extension.
  2. If the Python interpreter is not inferred correctly, you can set the "python.pythonPath": "/path/to/python" configuration setting manually.
  3. If the modules your project using are in a non-standard location, you can add them via the "python.autoComplete.extraPaths": ["/path/to/customModule"] configuration setting.
← ReScriptGo →
  • Setup
  • FAQ
    • I'm not getting completions or diagnostics - what can I try?
Onivim 2 User Manual
Docs
Getting StartedBasic UsageFor DevelopersFAQ
Community
RedditDiscordTwitter
More
GitHubStar
Copyright © 2022 Outrun Labs, LLC