Show Menu
Cheatography

ne (nice editor) Keyboard Shortcuts by

shortcuts of ne text UI editor

Navigation Commands

MoveLeft [n]
ML
moves the cursor to left n times.
MoveRight [n]
MR
moves the cursor to right n times.
LineUp [n]
LU
moves the cursor up n times.
LineDown
LD
moves the cursor down n times.
GotoLine [line]
GL
moves the cursor to the respective line.
GotoColumn [col]
GC
moves the cursor to the respective column in the line.
GotoMark
GM
moves the cursor to the current mark.
PrevPage [n]
PP
moves the cursor n pages bakward.
NextPage [n]
NP
moves the cursor n pages forward.
PageUp [n]
PUP
pageups n times.
PageDown [n]
PDN
pagedowns n times.
PrevWord
PW
moves the cursor to the first letter of the word n times.
NextWord [n]
NW
moves the character to the next word n times.
MoveEOL
EOL
moves the character to the end of the current line.
MoveSOL
SOL
moves the cursor to the start of the line.
MoveTOS
TOS
moves the cursor to the top of the screen.
MoveBOS
BOS
moves the cursor to the lowest line in the view.
MoveEOF
EOF
moves the character to the end of the document.
MoveSOF
SOF
moves the character to the start of the file.
MoveEOW
EOW
moves the cursor one character past the end of the word.
MoveIncUp
MIU
moves the cursor to the start of the document increm­ent­ally.
MoveIn­cDown
MID
moves the cursor to the end of the document increm­ent­ally.
AdjustView
AV
shifts the text visible in terminal horz. or vert.
ToggleSEOF
TSEOF
moves the cursor to the start of the document.
ToggleSEOL
TSEOL
moves the cursor to thte start of the current line.

Misc

Where are the menus?
Press Esc twice to bring the menu.
Where to type all of these commands?
To type any command, press ^K to bring the commandBar

Only video about ne on Youtube

 

Document Commands

Quit
Q
exits. If any documents are modified, you'll be asked to confirm
Exit
X
save all the modified documents, then exit.
NewDoc
N
create a new unnamed document
Clear
CL
destroy the content of current document, undo buffer, current document become unnamed
CloseDoc
CD
close the current document
NextDoc
ND
bring the next document from the document list
PrevDoc
PD
bring the previous document from the document list
SelectDoc
SD
display opened document list

Opening and Saving commands

Command
Abbvr.
Descri­ption
Open [file]
O
loads the file in the current document
OpenNew [file]
ON
loads the file in a new document
Save
S
save the current document
SaveAs [file]
SA
save the current document using the specified string
SaveAll
SL
saves all the modified documents

Delete Commands

DeleteChar [n]
DC
deletes n characters to the right.
Delete­Pre­vWord [n]
DFW
deletes text from the current position to the first character of the previous word n times.
DeleteNext Word [n]
DNW
deletes text from the current position to the next word n times.
Backspace [n]
BS
deletes n characters to the left.
DeleteLine [n]
DL
deletes n lines, puts the last deleted line in the buffer.
DeleteEOL
DE
deletes all characters from current cursor to the end of the line.

Formatting Commands

Center [n]
CE
centers n lines from the cursor position.
Paragraph [n]
PA
reformats n paragraphs from the cursor position.
ToUpper [n]
TU
shifts to upper letters from cursor position to the end of the word.
ToLower [n]
TL
shifts to lower letters from cursor position to the end of the word.
Capitalize [n]
CA
shifts the first letter to upper and other letters to lower case.
RightM­argin [n]
RM
sets the right margin
WordWrap
WW
sets the wordwrap flag
AutoIndent
AI
sets the autoindent flag.

Links

 

Clipping commands

Mark [0|1]
M
set the mark at current position, cancels the previous mark
MarkVert [0|1]
MV
same as Mark but for verticla selection
Copy [n]
C
copies the content of the block
Cut [n]
CU
deletes the block being copied
Paste [n]
P
paste the marked content
PasteVert [n]
PV
vertically paste the content
Erase
E
delete the content in the block

Searching

Find [pattern]
F
searches the given pattern
FindRegExp [pattern]
FX
searches the given regexp pattern
Replace [string]
R
search and replace
Replac­eOnce [string]
RA
search and replace the first instance
ReplaceAll [string]
RA
search and replace all the instances
RepeatLast [times]
RL
repeats the last find or replace operation
MatchB­racket
MB
moves the cursor to the other paired bracket
AutoMa­tch­Bracket
AMB
highlights the paired brackets
SearchBack [0|1]
SB
search and replace operations performed backwards on true
CaseSearch [0|1]
CS
sets the case sensit­ivity flag
AutoCo­mplete [prefix]
AC
shows and inserts matching words

Macros

Record [0|1]
REC
records macro
Play [times]
PL
plays macro
Macro [filename]
MA
executes the file name as a macro
OpenMacro [filename]
OM
loads the given file as current macro
SaveMacro [filename]
SM
save the current macro in a file
Unload­Macro
UM
frees the macro cache list

Undo

Undo [n]
U
undoes
Redo [n]
RE
redoes
DoUndo [0|1]
DU
disabl­e/e­nable undo system

Support Commands

Help [name]
H
displays help about the command name.
Refresh
REF
resfreshes the display.
Suspend
SU
suspends ne.
Escape
ESC
toggle the menus on/off.

More info

ne is posix compat­ible, have GPLv3 license.
Developed in 1993.
Linux Voice has rated ne as the third best editor for Linux.
ne has a cygwin version too.
ne tands for nice editor

This is how ne looks like

ne stands for nice editor.
       
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Sublime Text 2 Windows Keyboard Shortcuts
          Wikipedia Cheat Sheet
          Vim NERDTree Cheat Sheet

          More Cheat Sheets by pryl

          Types of Governments Cheat Sheet
          Sorting algorithms Cheat Sheet
          micro editor Keyboard Shortcuts