User Tools

Site Tools


helix:helix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
helix:helix [2025/12/11 11:54] – [MULTIPLE CURSORS] v1ctorhelix:helix [2026/04/21 12:52] (current) – [MOTION] v1ctor
Line 7: Line 7:
 ''eb'' - selects the whole word\\ ''eb'' - selects the whole word\\
  
 +''gw'' - GOTO WORD. It will create two letters at the start of every word in sight. When you type those two letters, you instantly jump to the specified word.
 ==== SELECTION ==== ==== SELECTION ====
  
 +''%'' - select whole file\\
 ''v'' - enters Select mode - movement will extend the selection, as opposed to replacing it.\\ ''v'' - enters Select mode - movement will extend the selection, as opposed to replacing it.\\
 ''v2w'' - select two words.\\ ''v2w'' - select two words.\\
Line 18: Line 20:
 '';'' - collapse selection onto a single cursor\\ '';'' - collapse selection onto a single cursor\\
  
 +''p'' - paste after selection\\
 +''P'' - paster before selection\\
 +
 +''Ctrl-c'' - comment/uncomment selection\\
 +
 +==== SELECT COMMAND ====
 +
 +''s'' - selects matches in the selection. First you need to have some text selected and then press ''s''. Prompt will appear. You can use regex in the prompt.
 ==== MULTIPLE CURSORS ==== ==== MULTIPLE CURSORS ====
  
Line 25: Line 35:
  
  
-Tutor 660+==== BUFFERS ==== 
 + 
 +Buffer is a file. You can open multiple files simultaneously.\\ 
 + 
 +''Space b'' - buffer picker\\ 
 +'':bp'' - previous buffer\\ 
 +'':bn'' - next buffer\\ 
 +'':bc'' - close current buffer\\ 
 + 
 + 
 +==== COMMENT OUT ==== 
 + 
 +''Ctrl - c'' - comments out the text. Or undo it 
 + 
 +==== GLOBAL SEARCH AND REPLACE ==== 
 + 
 +Let's say you want to replace ''foo'' with ''bar'' everywhere in the document. 
 + 
 +''%'' - select the whole document\\ 
 + 
 +''s'' - press s key for search and type the text you want to replace, e.g. ''select:foo<Enter>''. At this point you can scroll through the file and visually check what's highlighted\\ 
 + 
 +''c'' - type c for change and put in a new text. Press ''Enter''. To get rig of the multiple selections press a coma key '','' 
 + 
 +==== REPLACE WITH YANKED TEXT ==== 
 + 
 +''R'' - replaces the selection with yanked text 
 + 
 +==== SPLITS AND WINDOW MODE ==== 
 + 
 +'':vsplit <filename> '' - opens <filename> in a vertical split (or same file if no name passed)\\  
 +'':hsplit <filename> '' - opens <filename> in a horizontal split (or same file if no name passed)\\  
 + 
 +''Space + w'' or ''Ctrl + w'' - opens a Windows mode. Here you can switch between splits. 
 + 
 +''hx --vsplit pylint.sh README.md'' - opens two files in split from the command line. 
 + 
 +''Ctrl + v'' - opens file from the picket into the vertical split.
helix/helix.1765454050.txt.gz · Last modified: by v1ctor