• home
  • about
  • 全ての投稿
  • ソフトウェア・ハードウェアの設定のまとめ
  • 分析関連のまとめ
  • ヘルスケア関連のまとめ
  • 生涯学習関連のまとめ

helix

date: 2022-07-08 excerpt: helixの使い方

tag: helixvimeditor


helixの使い方

概要

  • neovimのような操作感のeditor
  • rustで作成されいている
  • プラグインや設定を盛ったneovimより、標準のhelixのほうが軽い
  • 実行コマンドはhx
  • neovimの設定の限界で、treesitterと共存できない部分を補完する目的での使用が想定される

インストール

ビルド

$ git clone https://github.com/helix-editor/helix
$ cd helix
$ cargo install --path helix-term
$ mkdir $HOME/.config/helix
$ ln -s $PWD/runtime ~/.config/helix/runtime

macOS

$ brew tap helix-editor/helix
$ brew install helix

treesitterのインストール

$ hx --grammar fetch
$ hx --grammar build

ヘルスチェック

$ hx --health | less

使用している設定

theme = "onedark"

[editor]
line-number = "relative"
true-color = true
mouse = false

[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"

[editor.file-picker]
hidden = false

[keys.normal]
C-s = ":w"
C-o = ":open ~/.config/helix/config.toml"
c = "no_op"
C-c = "no_op"
G = "goto_last_line"

[keys.insert]
C-c = "normal_mode"

参考

  • Keymap/Helix
  • Helix/Helix


helixvimeditor Share Tweet