IT/Software/Applications/Text or Code Editing/Nano: Difference between revisions

From msgwiki
Jump to navigation Jump to search
Access restrictions were established for this page. If you see this message, you have no access to this page.
(Created page with " <br /> = Overview of nano's shortcuts      = === The editor's keystrokes and their functions         === {| class="wikitable" |'''File handling''' {| class="wikita...")
 
No edit summary
 
Line 4: Line 4:
<br />
<br />


= Overview of nano's shortcuts      =
==Overview of nano's shortcuts      ==


=== The editor's keystrokes and their functions         ===
===The editor's keystrokes and their functions        ===
{| class="wikitable"
{| class="wikitable"
|'''File handling'''
|'''File handling'''
{| class="wikitable"
{| class="wikitable"
|Ctrl+S    
|Ctrl+S  
|Save current file
|Save current file
|-
|-
Line 24: Line 24:
'''Editing'''
'''Editing'''
{| class="wikitable"
{| class="wikitable"
|Ctrl+K    
|Ctrl+K  
|Cut current line into cutbuffer
|Cut current line into cutbuffer
|-
|-
Line 50: Line 50:
'''Search and replace'''
'''Search and replace'''
{| class="wikitable"
{| class="wikitable"
|Ctrl+Q    
|Ctrl+Q  
|Start backward search
|Start backward search
|-
|-
Line 76: Line 76:
|Delete word to the left
|Delete word to the left
|-
|-
|Ctrl+Del    
|Ctrl+Del  
|Delete word to the right
|Delete word to the right
|-
|-
Line 84: Line 84:
'''Operations'''
'''Operations'''
{| class="wikitable"
{| class="wikitable"
|Ctrl+T    
|Ctrl+T  
|Execute some command
|Execute some command
|-
|-
Line 107: Line 107:
|'''Moving around'''
|'''Moving around'''
{| class="wikitable"
{| class="wikitable"
|Ctrl+B    
|Ctrl+B  
|One character backward
|One character backward
|-
|-
Line 171: Line 171:
'''Information'''
'''Information'''
{| class="wikitable"
{| class="wikitable"
|Ctrl+C    
|Ctrl+C  
|Report cursor position
|Report cursor position
|-
|-
Line 188: Line 188:
|Indent marked region
|Indent marked region
|-
|-
|Shift+Tab    
|Shift+Tab  
|Unindent marked region
|Unindent marked region
|-
|-

Latest revision as of 05:04, 20 October 2021



Overview of nano's shortcuts      

The editor's keystrokes and their functions        

File handling
Ctrl+S   Save current file
Ctrl+O Offer to write file ("Save as")
Ctrl+R Insert a file into current one
Ctrl+X Close buffer, exit from nano

Editing

Ctrl+K   Cut current line into cutbuffer
Alt+6 Copy current line into cutbuffer
Ctrl+U Paste contents of cutbuffer
Alt+T Cut until end of buffer
Ctrl+] Complete current word
Alt+3 Comment/uncomment line/region
Alt+U Undo last action
Alt+E Redo last undone action

Search and replace

Ctrl+Q   Start backward search
Ctrl+W Start forward search
Alt+Q Find next occurrence backward
Alt+W Find next occurrence forward
Alt+R Start a replacing session

Deletion

Ctrl+H Delete character before cursor      
Ctrl+D Delete character under cursor
Alt+Bsp Delete word to the left
Ctrl+Del   Delete word to the right
Alt+Del Delete current line

Operations

Ctrl+T   Execute some command
Ctrl+J Justify paragraph or region
Alt+J Justify entire buffer
Alt+B Run a syntax check
Alt+F Run a formatter/fixer/arranger
Alt+: Start/stop recording of macro
Alt+; Replay macro
Moving around
Ctrl+B   One character backward
Ctrl+F One character forward
Ctrl+ One word backward
Ctrl+ One word forward
Ctrl+A To start of line
Ctrl+E To end of line
Ctrl+P One line up
Ctrl+N One line down
Ctrl+ To previous block
Ctrl+ To next block
Ctrl+Y One page up
Ctrl+V One page down
Alt+\ To top of buffer
Alt+/ To end of buffer

Special movement

Alt+G     Go to specified line
Alt+] Go to complementary bracket
Alt+ Scroll viewport up
Alt+ Scroll viewport down
Alt+< Switch to preceding buffer
Alt+> Switch to succeeding buffer

Information

Ctrl+C   Report cursor position
Alt+D Report line/word/character count
Ctrl+G Display help text

Various

Alt+A Turn the mark on/off
Tab Indent marked region
Shift+Tab   Unindent marked region
Alt+N Turn line numbers on/off
Alt+P Turn visible whitespace on/off
Alt+V Enter next keystroke verbatim
Ctrl+L Refresh the screen
Ctrl+Z Suspend nano