• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/28

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

28 Cards in this Set

  • Front
  • Back
start Vim
$ vim
open "foo.txt"
$ vim foo.txt
open "foo.txt" and go to line 247
$ vim foo.txt +247
open "foo.txt" and "bar.cfg"
$ vim foo.txt bar.cfg
start Vim without reading the .vimrc file
vim -u NONE
When in Normal Mode: start searching forward for "foo"
/foo
When in Normal Mode: start searching backword for "foo"
?foo
When in Normal Mode: start searching forward for the word under the cursor
*
When in Normal Mode: start searching backward for the word under the cursor
#
When searching for a word go forward to the next match
n
When searching for a word go backward to the previous match
N
Move the cursor to the end of the line
$
Move the cursor to the first non-white-space charater of the line
^
Find all files with grep, filter out some and open them in Vim
vim `find | grep filepattern | grep -v svn`
Enter the Vim help
:help
Get Vim help on buffers
:help buffer
To jump from a |tag| to the thing it's pointing to:
Ctrl-]
To jump back
Ctrl-o
The vim configuration by default lives in
~/.vimrc
Comments in the Vim config file start with
"
To see all options give this Ex command
:set all
Turn a boolean option on
:set {option}, for example :set autoindent
Turn a boolean option off
:set no{option}, for example :set noautoindent
Reread the configuration file
:source $MYVIMRC
Edit the configuration file
:edit $MYVIMRC
What happens when a Vim configuration file is loaded?
A vim config file is basically a series of Ex commands. When it's loaded all commands are executed one by one.
Go from Insert Mode to Normal Mode (3 ways)
Esc or Ctrl-C or Ctrl-[
When in Normal Mode: go to the last position you were in in Insert mode
gi