dpmkl / vix

A modal terminal text editor inspired by vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vix(i)

vix is a experimental modal text editor using the xi-editor backend inspired by vim, focusing on emulating vim's modal states (vim,insert,visual) and behaviour as much as possible, by translating all corresponding actions to the xi core. Not intended to be a vim rewrite, rather a familiar expirience.

This project is based on xi-term, just as xim. Both use the same base code from xi-term.

Since the xi-editor is to implement a vi mode, this project may become obsolete.

Status

  • 'Esc' returns to vix mode
  • syntax highlighting
  • vix mode
    • 'arrows' move up/down/left/right
    • 'PageUp ,Down' move page up/down
    • 'Home ,End' move to line start/end
    • 'j ,k ,l' move down/up/right
    • 'i' insert mode
    • 'v' visual mode
    • 'V' visual line mode
    • ':' command mode
    • '/' search mode
    • 'y' copy
    • 'p' paste
    • 'd' cut
    • 'u' undo
    • 'r' redo
    • 'dd+' delete line(s)
    • 'n' find next
    • 'N' find prev
  • visual mode
    • 'arrows' move selection up/down/left/right
    • 'PageUp ,Down' move selection page up/down
    • 'Home ,End' move selection to line start/end
    • 'j ,k ,l' move selection down/up/right
    • 'y' copy
    • 'p' paste
    • 'd' cut
    • 'i' insert mode
    • '/' search mode
  • command mode
    • u64 goto line
    • 'w' write
    • 'q' quit
    • 'wq' write and quit
  • search mode
    • highlight
    • search
      • next
      • prev
    • replace
      • all
  • error mode
    • error message
    • debug dialog message
  • plugin mode
    • notify
  • status bar // FIXME: use xi backend for status bar
    • file name
    • cursor pos

About

A modal terminal text editor inspired by vim

License:MIT License


Languages

Language:Rust 100.0%