Jump to content

Helix (text editor)

From DawoumWiki, the free Mathematics self-learning

Helix는 Rust로 작성되었고 Neovim과 Kakoune에 의해 영감을 받은 모달 텍스트 편집기입니다. 그것은 Kakoune과 유사한 기존 Vim 워크플로우에 대한 변경 사항, 예를 들어, 선택-기반 편집 및 다중-커서 지원을 구현합니다. Helix는 많은 기능을 번들로 제공하고 활성화되어 있고 아직은 플러그인 시스템이 없습니다. 그것은 사용자-지정 언어 지원을 가집니다. 그러므로, 그것은 Vim 및 유사한 편집기보다 설정은 더 쉽지만 사용자 정의가 적은 것으로 여겨질 수 있습니다.

Introduction

데비안에서 기본 편집기는 GNU nano 또는 Vim입니다. 두 편집기에서 갖지 않은

Installation

데비안 저장소에서 설치할 수 있습니다:

  • sudo apt install hx

Configurations

Helix는 선택적 ~/.config/helix/config.toml 구성 파일을 읽습니다.

Syntax highlighting

  • hx --grammar fetch
  • hx --grammar build

Key Bindings

Key Bindings (Normal Mode):

  • h, j, k, l: Move left, down, up, and right.
  • w: Move to the next word.
  • b: Move to the previous word.
  • e: Move to the end of the current word.
  • 0: Move to the beginning of the line.
  • $: Move to the end of the line.
  • gg: Move to the beginning of the file.
  • G: Move to the end of the file.

Editing:

  • i: Enter insert mode (begin typing).
  • a: Append text after the cursor.
  • o: Open a new line below and enter insert mode.
  • O: Open a new line above and enter insert mode.
  • c: Change selection (delete and enter insert mode).
  • x: Delete the character under the cursor.
  • d: Delete (cut) the selection.
  • y: Yank (copy) the selection.
  • p: Paste the yanked or deleted text.
  • .: Redo the last change.
  • u: Undo the last change.
  • = : Format the current line or selection.

Selection:

  • v: Enter visual mode (selection).
  • V: Enter linewise visual mode.
  • gv: Reselect the previous selection.

Other:

  • :: Enter command mode.
  • Esc: Exit insert or select mode and return to normal mode.
  • Space ?: Show command palette / fuzzy find through all commands.
  • Space m: Match mode (e.g., for matching brackets).

Key Bindings (Insert Mode):

  • Esc: Return to normal mode.
  • Ctrl-w: Delete previous word.
  • Alt-d, Alt-Delete: Delete next word.
  • Ctrl-u: Delete to the beginning of the line.
  • Ctrl-k: Delete to the end of the line.