Changes

Jump to: navigation, search

Tutorial2: Unix / Linux File Management

836 bytes added, 14:05, 23 September 2020
Part 2: Creating Text Files Using The vi Text Editor
The major different between nano and vi is that '''vi starts in COMMAND LINE mode'''. You need to issue letter commands to perform text editing or press colon “: ” to enter last line mode to issue more complex commands.
 
'''NOTE:''' Refer to the table below for a list of the most common '''vi''' ('''vim''') navigation &amp; editing commands:<br><table cellpadding="5"><tr><th style="border-bottom: 1px solid black;">Keyboard Combination</th><th style="border-bottom: 1px solid black;">Purpose</th></tr><tr><td>'''&lt;ctrl&gt;&lt;SPACEBAR&gt;'''</td><td>Move forward one word</td></tr><tr><td>'''&lt;esc&gt;&lt;SPACEBAR&gt;'''</td><td>Move back one word</td></tr><tr><td>'''&lt;ctrl&gt;&lt;k&gt;'''</td><td>Cut line</td></tr><tr><td>'''&lt;esc&gt;^'''</td><td>Copy Line ('''Note:''' to get '''^''' character, type '''&lt;shift&gt;6''', <u>not</u> <ctrl>)</td></tr><tr><td>'''&lt;ctrl&gt;&lt;u&gt;'''</td><td>Paste Cut/Copied Text</td></tr><tr><td>'''&lt;ctrl&gt;&lt;g&gt;'''</td><td>Display help screen (ctrl-x to exit help screen)</td></tr></table><br>
[[Image:vi-text-editor-2.png|right|350px|thumb|The online vi-tutorial provides users "hands-on" experience of using the vi text editor.]]
13,420
edits

Navigation menu