linux
BashVimMarkdown
https://docs.helix-editor.com/usage.html

hx —tutor
baita :tutor komandoarekin

para usar hx en vez de helix en fish:
fish no usa un archivo .bashrc o .zshrc. Al usar el flag —save, la shell crea automáticamente un archivo de función en:
~/.config/fish/functions/hx.fish

Type w to segtlect forward until the next word.
Type e to select to the end of the current word.
Type b to select backward to the start of the current word.
Use uppercase counterparts, W,E,B, to traverse WORDS.

Type d to delete the entire selection.
Type c to delete the selection and enter Insert mode.
y
Type a number before a motion to repeat it that many times.

Type v to enter Select mode, where all motions extend the selection.

Type x to select the entire current line. Type x again to select the next line.

Type semicolon ( ; ) to collapse selection.

type g(go to) and l : to the end of the line
type g and h: to the first of the line

  • Type u to undo. Type U to redo.

  • Type y to yank (copy) text and p to paste.

    • Use Space + y and Space + p to yank / paste on the system
      clipboard.
  • Type / to search forward in file, and ? to search backwards.

    • Use n and N to cycle through search matches.

Type C to duplicate the cursor to the next suitable line.

  1. Move the cursor to the first line marked ’—>’ below. Place
    the cursor somewhere past the ’—>’.
  2. Type C to duplicate the cursor to the next suitable line.
    Notice how it skips the line in the middle. Keys you type
    will now affect both cursors.
  3. Use Insert mode to correct the lines. The two cursors will
    fix both lines simultaneously.
  4. Type , to remove the first cursor.

Type s to select matches in the selection.

  1. Move the cursor to the line marked ’—>’ below.
  2. Type x to select the line.
  3. Type s. A prompt will appear.
  4. Type ‘apples’ and press Enter. Both occurrences of
    ’apples’ in the line will be selected.
  5. You can now type c and change ‘apples’ to something else,
    like ‘oranges’.
  6. Press Escape to exit Insert mode.
  7. Type , to remove the second cursor.
  • Type C to duplicate the cursor to the next suitable line
    and Alt-C for previous suitable line.

  • Type s to select all instances of a regex pattern inside
    the current selection.

  • Type & to align selections.

  • Press Alt-s to split the selection into lines.

  • Type R to replace the selection with yanked text.

  • Type J to join lines in selection.

  • Type > and < to indent / unindent lines.

  • Press Ctrl-a to increment the selected number.

    • Press Ctrl-x to decrement the selected number.

===============================================================
= 9.2 ADDING SELECTION ON NEXT SEARCH MATCH =
=
==============================================================

A property of Select mode (v) when using n and N is that instead
of moving the selection to the next match, it adds a new
selection on each match.

  1. Move the cursor to the line marked ’—>’ below.
  2. Select the first “bat” and type * to set it to search.
  3. Type v to enter Select mode.
  4. Type n to select the other “bat”.
  5. Use c or r to change the “bat”s to “cat”.