fixed readme
This commit is contained in:
parent
66575f2919
commit
796a19b59c
1 changed files with 67 additions and 46 deletions
113
readme.org
113
readme.org
|
|
@ -5,57 +5,57 @@
|
||||||
* Keybindings
|
* Keybindings
|
||||||
|
|
||||||
** General
|
** General
|
||||||
| Key | Mode | Action |
|
| Mode | Key | Action |
|
||||||
|-----------------+--------+-------------------------------------|
|
|--------+-----------------+-------------------------------------|
|
||||||
| =<Space>= | - | Leader key |
|
| - | =<Space>= | Leader key |
|
||||||
| =<leader>cd= | Normal | Open netrw file explorer |
|
| Normal | =<leader>cd= | Open netrw file explorer |
|
||||||
| =<leader>rl= | Normal | Reload vimrc |
|
| Normal | =<leader>rl= | Reload vimrc |
|
||||||
| =<leader><leader>= | Normal | Source current file |
|
| Normal | =<leader><leader>= | Source current file |
|
||||||
| =<C-c>= | Insert | Behave like =<Esc>= |
|
| Insert | =<C-c>= | Behave like =<Esc>= |
|
||||||
| =Q= | Normal | Disabled (no Ex mode) |
|
| Normal | =Q= | Disabled (no Ex mode) |
|
||||||
|
|
||||||
** Editing
|
** Editing
|
||||||
| Key | Mode | Action |
|
| Mode | Key | Action |
|
||||||
|--------------+--------+----------------------------------------|
|
|---------------+--------------+----------------------------------------|
|
||||||
| =J= | Visual | Move selected lines down |
|
| Visual | =J= | Move selected lines down |
|
||||||
| =K= | Visual | Move selected lines up |
|
| Visual | =K= | Move selected lines up |
|
||||||
| =J= | Normal | Join lines with cursor preserved |
|
| Normal | =J= | Join lines with cursor preserved |
|
||||||
| =<leader>p= | Visual | Paste without overwriting clipboard |
|
| Visual | =<leader>p= | Paste without overwriting clipboard |
|
||||||
| =<leader>d= | Normal/Visual | Delete without overwriting clipboard |
|
| Normal/Visual | =<leader>d= | Delete without overwriting clipboard |
|
||||||
| =<leader>s= | Normal | Substitute word under cursor on line |
|
| Normal | =<leader>s= | Substitute word under cursor on line |
|
||||||
| =<leader>x= | Normal | Make current file executable |
|
| Normal | =<leader>x= | Make current file executable |
|
||||||
| =<leader>dg= | Normal | Generate documentation (Doge) |
|
| Normal | =<leader>dg= | Generate documentation (Doge) |
|
||||||
|
|
||||||
** Navigation
|
** Navigation
|
||||||
| Key | Mode | Action |
|
| Mode | Key | Action |
|
||||||
|--------------+--------+----------------------------------|
|
|--------+--------------+----------------------------------|
|
||||||
| =<C-d>= | Normal | Scroll half-page down and center |
|
| Normal | =<C-d>= | Scroll half-page down and center |
|
||||||
| =<C-u>= | Normal | Scroll half-page up and center |
|
| Normal | =<C-u>= | Scroll half-page up and center |
|
||||||
| =n= | Normal | Next search result (centered) |
|
| Normal | =n= | Next search result (centered) |
|
||||||
| =N= | Normal | Previous search result (centered)|
|
| Normal | =N= | Previous search result (centered)|
|
||||||
| =<C-j>= | Normal | Next location list item |
|
| Normal | =<C-j>= | Next location list item |
|
||||||
| =<C-k>= | Normal | Previous location list item |
|
| Normal | =<C-k>= | Previous location list item |
|
||||||
| =<leader>k= | Normal | Next location list (centered) |
|
| Normal | =<leader>k= | Next location list (centered) |
|
||||||
| =<leader>j= | Normal | Previous location list (centered)|
|
| Normal | =<leader>j= | Previous location list (centered)|
|
||||||
| =<leader>cl= | Normal | Close location list |
|
| Normal | =<leader>cl= | Close location list |
|
||||||
|
|
||||||
** FZF
|
** FZF
|
||||||
| Key | Mode | Action |
|
| Mode | Key | Action |
|
||||||
|--------------+--------+-------------------------------------|
|
|--------+--------------+-------------------------------------|
|
||||||
| =<leader>ff= | Normal | Find files |
|
| Normal | =<leader>ff= | Find files |
|
||||||
| =<leader>fo= | Normal | File history |
|
| Normal | =<leader>fo= | File history |
|
||||||
| =<leader>fb= | Normal | Open buffers |
|
| Normal | =<leader>fb= | Open buffers |
|
||||||
| =<leader>fq= | Normal | Quickfix list |
|
| Normal | =<leader>fq= | Quickfix list |
|
||||||
| =<leader>fh= | Normal | Help tags |
|
| Normal | =<leader>fh= | Help tags |
|
||||||
| =<leader>fs= | Normal | Grep current word under cursor |
|
| Normal | =<leader>fs= | Grep current word under cursor |
|
||||||
| =<leader>fg= | Normal | Grep (prompt for input) |
|
| Normal | =<leader>fg= | Grep (prompt for input) |
|
||||||
| =<leader>fc= | Normal | Grep for current filename |
|
| Normal | =<leader>fc= | Grep for current filename |
|
||||||
| =<leader>fi= | Normal | Find files in =~/.vim= config |
|
| Normal | =<leader>fi= | Find files in =~/.vim= config |
|
||||||
|
|
||||||
** Clipboard (OSCYank)
|
** Clipboard (OSCYank)
|
||||||
| Key | Mode | Action |
|
| Mode | Key | Action |
|
||||||
|-------------+---------------+---------------------------|
|
|---------------+-------------+---------------------------|
|
||||||
| =<leader>y= | Normal/Visual | Yank via OSCYank |
|
| Normal/Visual | =<leader>y= | Yank via OSCYank |
|
||||||
|
|
||||||
* Dependencies
|
* Dependencies
|
||||||
|
|
||||||
|
|
@ -73,10 +73,24 @@
|
||||||
|
|
||||||
** Installation
|
** Installation
|
||||||
|
|
||||||
*** macOS
|
*** Arch Linux
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
brew install git vim ripgrep fd fzf
|
sudo pacman -S git vim ripgrep fd fzf
|
||||||
brew install rust-analyzer # optional
|
sudo pacman -S rust-analyzer # optional
|
||||||
|
npm install -g typescript-language-server # optional
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
*** NixOS
|
||||||
|
#+begin_src bash
|
||||||
|
nix-env -iA nixpkgs.git nixpkgs.vim nixpkgs.ripgrep nixpkgs.fd nixpkgs.fzf
|
||||||
|
nix-env -iA nixpkgs.rust-analyzer # optional
|
||||||
|
npm install -g typescript-language-server # optional
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
*** Gentoo
|
||||||
|
#+begin_src bash
|
||||||
|
sudo emerge --ask dev-vcs/git app-editors/vim sys-apps/ripgrep sys-apps/fd app-shells/fzf
|
||||||
|
sudo emerge --ask dev-lang/rust-bin # for rust-analyzer
|
||||||
npm install -g typescript-language-server # optional
|
npm install -g typescript-language-server # optional
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
@ -86,6 +100,13 @@ sudo apt install git vim ripgrep fd-find fzf
|
||||||
# Note: fd is called fd-find on Debian/Ubuntu
|
# Note: fd is called fd-find on Debian/Ubuntu
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
*** macOS
|
||||||
|
#+begin_src bash
|
||||||
|
brew install git vim ripgrep fd fzf
|
||||||
|
brew install rust-analyzer # optional
|
||||||
|
npm install -g typescript-language-server # optional
|
||||||
|
#+end_src
|
||||||
|
|
||||||
*** Rust Analyzer
|
*** Rust Analyzer
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
rustup component add rust-analyzer
|
rustup component add rust-analyzer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue