vim - F1 - f1 opens a vim help file its cool
vim      - i learned it by accident by hitting the wrong vim keys

vim - :arrows - a colon followed by the arrow keys wil vim allow you to scroll thru your prior ex commands vim and modify them

window commands for vi / vim

:sp - open a new window and edit the current file in it :sp file - open a new windown and edit FILE in it

:res n - make the current window bigger by N lines (res = resize) :res -n - make the current window smaller by N lines (res = resize) cntl/w = - make all the windows the same size. i couldnt get :res = to work

:qa - quit all the windows :qa! - quit all the windows - and discard any changes made

cntl/w j - go down one window (like j when editing a line) cntl/w k - go up one window (like k when editing a line) cntl/w <down arrow> - same as cntl/w j - go down one window cntl/w <up arrow> - same as cntl/w k - go up one window

cntl/w r - take the window your in and move it down 1 slot if your in the bottom window the window will move to the top.

your curser stays in the window

cntl/w R - take the window your in and move it up 1 slot if your in the top window the window will move to the bottom.

your curser stays in the window

also on the vim command line you can go

vi -o3 frog dog snake

the -o3 says open 3 windows

the file frog will be in the 1st window the file dog will be in the 2nd window the file snake will be in the 3rd window

the V v or VISUAL command is also cool. it allows you to select part text to operate on with the curser

1) type v where you want to start the text 2) move the curser to the end/begining of the text you want to operate on

3) type a vi command and it will be done to the marked text

~ - convert from upper case to lower case or vise versa !unixcommand - pipe the text thru a unix command d - delete the marked text > - shift to the right (usefull for e-mail)

window commands for vi / vim

:sp - open a new window and edit the current file in it :sp file - open a new windown and edit FILE in it

:res n - make the current window bigger by N lines (res = resize) :res -n - make the current window smaller by N lines (res = resize) cntl/w = - make all the windows the same size. i couldnt get :res = to work

:qa - qital the windows :qa! - ui ll the windows - and discard any changes made

cntl/w j - go down one window (like j when editing a line) cntl/w k - go up one window (like k when editing a line) cntl/w <down arrow> - same as cntl/w j - go down one window cntl/w <up arrow> - same as cntl/w k - go up one window

cntl/w r - take the window your in and move it down 1 slot if your in the bottom window the window will move to the top.

your curser stays in the window

cntl/w R - take the window your in and move it up 1 slot if your in the top window the window will move to the bottom.

your curser stays in the window



Visit the Crazy Atheist Libertarian
Visit my atheist friends at Heritics, Atheists, Skeptics, Humanists, Infidels, and Secular Humanists - Arizona
Arizona Secular Humanists
Paul Putz Cooks the Arizona Secular Humanist's Check Book
Some strange but true news about the government
Some strange but real news about religion
Interesting, funny but otherwise useless news!
1