rim

Aspiring vim-like text editor

  • 所有者: mathall/rim
  • 平台:
  • 許可證: Mozilla Public License 2.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Rim

Rim is an aspiring Vim-like text editor written in Rust.

Screenshot

Current state

Rim is in an early prototype stage. This means that you can load, edit and save files, and hopefully do so relatively comfortably if Vim is what you are used to. In particular some of the simpler commands for insertion and deletion as well as window and buffer navigation has been implemented and bound to the expected key strokes.

Try it out

Simply clone and cargo run.

Note: Some key bindings are for testing purposes only, and some may not work exactly as you would expect them to.

Window navigation

  • <C-w>v/<C-w>s - Split focused window
  • <C-w>c - Close focused window
  • <C-w> h/j/k/l - Move window focus left/down/up/right
  • n/N - Move window focus forward/backward in window order (for testing)
  • (<C->) y/u - Resize focused window (for testing)
  • <C-w>= - Reset window sizes

Buffer navigation

  • h/j/k/l/Arrow keys - Move caret
  • Home/0 - Move caret to start of line
  • End/$ - Move caret to end of line
  • PageUp/<C-b> - Scroll view up by window's length
  • PageDown/<C-f> - Scroll view down by window's length
  • <C-u> - Scroll view up by half of window's length
  • <C-d> - Scroll view down by half of window's length
  • gg - Go to first line
  • G - Go to last line
  • Space in normal mode - move caret forward across line boundaries
  • Backspace in normal mode - move caret backward across line boundaries

Insertion

  • i - Enter insert mode
  • I - Enter insert mode at start of line
  • a - Enter insert mode after caret
  • A - Enter insert mode at end of line
  • o - Enter insert mode at a new line under the current line
  • O - Enter insert mode at a new line above the current line
  • Escape - Exit insert mode

Deletion

  • dd - Delete line
  • D - Delete rest of line
  • C - Delete rest of line and enter insert mode
  • x - Delete character under the cursor
  • X - Delete character behind the cursor
  • r - Replace character under the cursor
  • R - Replace character on the line

Misc / For testing until a proper command line is implemented

  • F1-F4 - Load some buffers
  • :qa<Enter> - Quit
  • :q<Enter> - Close window and quit if it's the last one
  • :w<Enter> - Write buffer to file

主要指標

概覽
名稱與所有者mathall/rim
主編程語言Rust
編程語言Rust (語言數: 1)
平台
許可證Mozilla Public License 2.0
所有者活动
創建於2015-01-29 11:36:38
推送於2021-01-16 07:50:16
最后一次提交2021-01-16 18:27:32
發布數0
用户参与
星數618
關注者數23
派生數39
提交數170
已啟用問題?
問題數16
打開的問題數6
拉請求數0
打開的拉請求數1
關閉的拉請求數4
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?