Onivim 2 User Manual

Onivim 2 User Manual

  • Early Access
  • About
  • Timeline
  • Docs

›Basic Usage

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

Formatting

Formatting

format-demo

Onivim supports code formatting, powered by Code language extensions. Onivim comes bundled with several format providers by default.

Keybindings

Onivim supports both the = and gq operators from Vim - in Onivim, these are functionality equivalent, and can be used to format a range of text.

In both cases, Onivim requests from an installed extension that provides format capabilities.

For example:

gqap

In the above example, the gqap key sequence does the following:

  • gq format operator
  • ap around-paragraph motion

In addition, the document can be formatted using these keybindings:

  • Linux: Control+Shift+I
  • Mac: Option+Shift+F
  • Windows: Alt+Shift+F

Multiple Format Providers

If there are multiple available format providers for the active filetype, Onivim will prompt to choose the default format provider:

format-provider

Configuration

Format on Save

The "editor.formatOnSave" setting can be used to request that Onivim runs a formatter after saving:

format-on-save

This setting is recommended to be set per-filetype, for example:

"[javascript]": {
    "editor.formatOnSave": true
}
← Working with FilesLanguage Features →
  • Formatting
    • Keybindings
    • Multiple Format Providers
    • Configuration
Onivim 2 User Manual
Docs
Getting StartedBasic UsageFor DevelopersFAQ
Community
RedditDiscordTwitter
More
GitHubStar
Copyright © 2022 Outrun Labs, LLC