Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-33) was last changed on 21-Jan-2018 01:53 by BlakeMcBride

This page was created on 18-Sep-2012 15:31 by BlakeMcBride

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 3 changed one line
Standard visual text editor available on all Unix / Linux computer systems. It also comes with Mac OS/X, and is available for Windows.
VI is the standard visual text editor available on all Unix, Linux, BSD, and other Unix-like computer systems. It also comes with Mac OS/X, and is available for Windows.
At line 5 changed one line
The VI editor has three main modes:
The VI editor has three modes:
At line 8 changed one line
* edit mode (insert or overtype text)
* edit mode (insert or over-type text)
At line 17 changed one line
nothing so if you are confused just hit the Esc key and you'll know
nothing. So if you are confused, just hit the Esc key and you'll know
At line 44 changed one line
!!Cursor movement
!!Cursor movement (in addition to possible cursor keys)
At line 46 changed one line
(The letters hjkl on the keyboard form a sort of arrow keys)\\
(The letters hjkl on the keyboard form a set of arrow keys)\\
At line 52 added 2 lines
See Searching below.
At line 57 changed one line
|0| beginning of line
|0| beginning of line (zero)
At line 61 changed one line
|15G| goto line 15 (basically you can preced G with any line number)
|15G| goto line 15 (basically you can precede G with any line number)
At line 75 changed one line
!!Text editing (all text entry except r ends by hitting the Esc key)
!!Text editing (Edit Mode - all text entry except "r" ends by hitting the Esc key)
At line 79 changed 2 lines
|r| replace a single character
|R| replace or over-type (doesn't require Esc key to end)
|r| replace a single character (doesn't require Esc key to end)
|R| replace or over-type
At line 82 changed 2 lines
|o| add text after the current line (open a line)
|O| add text before the current line
|o| add text after the current line (open a line) (oh)
|O| add text before the current line (capitol oh)
At line 93 added one line
|X| delete previous character
At line 102 changed 2 lines
|/xxxxx<return-key>| search forward for xxxxx
|?xxxxx<return-key>| search backwards for xxxxx
|/xxxxx<return-key>| search forward for regular expression xxxxx
|?xxxxx<return-key>| search backwards for regular expression xxxxx
At line 109 added one line
Vi's regular expression syntax corresponds to grep's basic regular expression syntax. See [grep]
At line 111 added one line
At line 129 changed one line
|! cmd|run cmd in shell and insert result into buffer
|!cmd|run cmd in a separate shell
|r!cmd|run cmd in a separate shell and insert result into buffer
At line 209 added one line
|:N|previous file is switched to
At line 215 added one line
----------------------------------------------------------------------
At line 217 added 58 lines
!!!VIM Commands
VIM, a popular version of VI, has the following additional commands available to it:
!!Buffers
|:ls|list buffers
|:bn|next buffer
|:bp|previous buffer
|:bN|switch to buffer named N (with tab completion)
!!Windows
Window commands begin with ^w. The second letter can be either the letter by itself, or at can be used as a control letter (so you don't have to release the control key if you don't want to.)
!Opening and closing windows
|^ws|split window horizontally
|^wv|split window vertically
|^wn|edit a new file in an additional / new window
|^wc|close the window you are in
|^wo|close all other windows
! Moving cursor to different windows
Use ^w followed by h, j, k, l, up arrow, down, left, or right to move the cursor to the indicated window.
! Controlling the window size
|^w=|Make all windows equal size
|^w-|Make current window smaller (also takes prefix argument)
|^w+|Make current window larger (also takes prefix argument)
!! Editing remote files
vim scp://username@host.com/path/to/file
:e scp://username@host.com/path/to/file
!! VIM Startup
When vim starts up, it reads the file ~/.vimrc
You can put configuration commands in that file.
! Stopping the colors
Put the following in .vimrc
{{{syntax off}}}
Version Date Modified Size Author Changes ... Change note
33 21-Jan-2018 01:53 8.378 kB BlakeMcBride to previous
32 18-Jan-2018 21:25 8.34 kB BlakeMcBride to previous | to last
31 25-Dec-2017 21:00 8.299 kB BlakeMcBride to previous | to last
30 17-May-2017 12:23 8.297 kB BlakeMcBride to previous | to last
29 17-May-2017 12:22 8.296 kB BlakeMcBride to previous | to last
28 17-May-2017 12:21 8.295 kB BlakeMcBride to previous | to last
27 05-Apr-2017 15:02 8.26 kB BlakeMcBride to previous | to last
26 20-Apr-2016 10:22 8.246 kB BlakeMcBride to previous | to last
25 06-Oct-2014 18:15 8.246 kB BlakeMcBride to previous | to last
24 26-Jan-2014 21:32 8.049 kB BlakeMcBride to previous | to last
23 28-Nov-2013 12:59 8.039 kB BlakeMcBride to previous | to last
22 28-Nov-2013 12:50 8.014 kB BlakeMcBride to previous | to last
21 28-Nov-2013 12:46 7.902 kB BlakeMcBride to previous | to last
« This page (revision-33) was last changed on 21-Jan-2018 01:53 by BlakeMcBride