Added Vim commands.

This commit is contained in:
Donne Martin 2015-03-01 08:16:23 -05:00
parent 80741219ce
commit 11d7e041fb

View File

@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:c5c96220a48c13454e0e8b2b2085f4bfa95d7b1eb9a9de0771c4fb7b818c001a"
"signature": "sha256:67c67b0d98088d4c0573bea23d46b8ed9372b679f9664a24756eece3d42f6ca2"
},
"nbformat": 3,
"nbformat_minor": 0,
@ -18,7 +18,8 @@
"* Splitting Files\n",
"* Grep\n",
"* Compression\n",
"* Terminal Syntax Highlighting"
"* Terminal Syntax Highlighting\n",
"* Vim"
]
},
{
@ -279,6 +280,65 @@
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Vim"
]
},
{
"cell_type": "raw",
"metadata": {},
"source": [
"Normal mode: esc\n",
"\n",
"Basic movement: h, j, k, l\n",
"Word movement: w, W, e, E, b, B\n",
"\n",
"Go to matching parenthesis: %\n",
"Go to start of the line: 0\n",
"Go to end of the line: $\n",
"\n",
"Find character: f\n",
"\n",
"Insert mode: i\n",
"Append to line: A\n",
"\n",
"Delete character: x\n",
"Delete command: d\n",
"Delete line: dd\n",
"\n",
"Replace command: r\n",
"Change command: c\n",
"\n",
"Undo: u (U for all changes on a line)\n",
"Redo: CTRL-R\n",
"\n",
"Copy the current line: yy\n",
"Paste the current line: p (P for paste above cursor)\n",
"\n",
"Quit without saving changes: q!\n",
"Write the current file and quit: :wq\n",
"\n",
"# Run the following command to enable the tutorial\n",
"vimtutor\n",
"\n",
"# Run the following commands to enable syntax colors\n",
"cd ~\n",
"vim .vimrc\n",
"syntax on\n",
":wq"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}