Actions

Difference between revisions of "Visual Editor (VI)"

From kemiko

(Created page with "Visual Editor ---- https://en.wikipedia.org/wiki/Vi I love this editor. Many do not like it because of the large learning curve. It is well worth the time and effort need t...")
 
Line 1: Line 1:
 
Visual Editor
 
Visual Editor
 
----
 
----
https://en.wikipedia.org/wiki/Vi
+
I love the [https://en.wikipedia.org/wiki/Vi vi] editor.  Many do not like it because of vi's large learning curve.  It is well worth the time and effort need to learn it.  vi is very powerful and will save a lot of time in the end.  It can do many things that standard editor can and can not do...like edit text documents with a terminal, regular expressions, macros, show hidden characters, pairing brackets/parenthesis, etc, etc.
  
I love this editorMany do not like it because of the large learning curve.  It is well worth the time and effort need to learn it.  It is very powerful and will save a lot of time in the end.  I can do many things that standard editor can not do...like regular expressions, pairing brackets/parenthesis, etc, etc.
+
Using a document containing several pages helps show vi's powerUsing the sentence "[https://en.wikipedia.org/wiki/The_quick_brown_fox_jumps_over_the_lazy_dog The quick brown fox jumps over the lazy dog]" to practice your typing with VI is fun because it has all the letters in one sentence.
 
 
Use "[https://en.wikipedia.org/wiki/The_quick_brown_fox_jumps_over_the_lazy_dog The quick brown fox jumps over the lazy dog]" to practice your typing with VI.
 
  
 
Some of my favorite commands are below:
 
Some of my favorite commands are below:
 
Move the cursor's line to the top of the editor
 
Move the cursor's line to the top of the editor
 
* z <enter>
 
* z <enter>
Jump to opening/closing parenthesis
+
Show line numbers
 +
* :set number
 +
Show hidden characters
 +
* :set list
 +
Jump to a specific line
 +
* <number> G or <number> gg
 +
Jump to a specific column
 +
* <number> |
 +
Jump to opening/closing parenthesis when cursor is sitting on one of them
 
* %
 
* %
Delete word
+
Delete word (what you delete/copy is automatically put in your buffer...if you want to paste somewhere else)
 
* dw
 
* dw
 
Yank/copy word
 
Yank/copy word
 
* yw
 
* yw
 +
Delete entire line
 +
* D or dd
 
Paste before
 
Paste before
 
* P
 
* P
 
Paste after
 
Paste after
 
* p
 
* p
 +
Forward search
 +
* /<pattern>
 +
Backward search
 +
* ?<pattern>
 +
Next match of search
 +
* n

Revision as of 23:22, 11 November 2016

Visual Editor


I love the vi editor. Many do not like it because of vi's large learning curve. It is well worth the time and effort need to learn it. vi is very powerful and will save a lot of time in the end. It can do many things that standard editor can and can not do...like edit text documents with a terminal, regular expressions, macros, show hidden characters, pairing brackets/parenthesis, etc, etc.

Using a document containing several pages helps show vi's power. Using the sentence "The quick brown fox jumps over the lazy dog" to practice your typing with VI is fun because it has all the letters in one sentence.

Some of my favorite commands are below: Move the cursor's line to the top of the editor

  • z <enter>

Show line numbers

  •  :set number

Show hidden characters

  •  :set list

Jump to a specific line

  • <number> G or <number> gg

Jump to a specific column

  • <number> |

Jump to opening/closing parenthesis when cursor is sitting on one of them

  •  %

Delete word (what you delete/copy is automatically put in your buffer...if you want to paste somewhere else)

  • dw

Yank/copy word

  • yw

Delete entire line

  • D or dd

Paste before

  • P

Paste after

  • p

Forward search

  • /<pattern>

Backward search

  •  ?<pattern>

Next match of search

  • n