VIM from novice to professional by: Derek Wyatt #Part 1
-
description
This is a Vim Introduction to be watched by those looking to start using Vim or are curious about what it can do, or whatever.
-
Basic Movement (Screencast 1)
description
Slow movement – Character-wise movements with the home keys:
h,j,kandl. The lesson here: DON'T use the arrow keys.Line terminus – Beginning of line and end of line movements:
0and$.The different types of "words"
words – represent a sequence of characters in the'iskeyword'class.WORDs – represent a sequence of characters separated by whitespace.- Run
:help wordand:help WORD
Forward word movement – We learn to move foward to the next
WORDandwordboth to the beginning of words and the end of words. Commands arew,W,eandE.Backward word movement – And we learn to move backward to the previous
WORDandwordboth to the beginning of words and the end of words. Commands areb,B,geandgE."To the Character" movement – The great, super great commands
f,F,t,Tand;that let you move to specific characters within a line. -
Basic Movement (Screencast 2)
description
Paging – Moving the page up and down by full pages with
CTRL-fandCTRL-band by half pages withCTRL-uandCTRL-d.Cursor jumping to screen parts – Moving to the head, middle and last line of a screen with
H,MandLrespectively.Top and Bottom of the buffer – Jumping to the top line of the entire buffer with
ggand the bottom of the entire buffer withG.Jumping to a particular line – Get to a specific line number with
<number>G.Easy regular expression searching – The famous ‘
*‘ and ‘#‘ keys for jumping by bounded regular expression.Manual regular expression searching – Using ‘
/‘ and ‘?‘ to manually search. -
Basic Movement (Screencast 3)
description
The last in the BASIC Movement series. Here we cover some bigger movements - jumps. This is the end of the videos on this series but it's not the end of motion in Vim.
Start of Function or Class Jumping – Moving to the beginning of functions and classes backwards through the buffer with
[[and the beginning of functions and classes forwards through the buffer with]](assuming you code properly and put braces for these things in column 0 (hanging brace?? Come on! :D).End of Function or Class Jumping – Forwards to the end of a function or class definition with
][and backwards to the end of a function or class definition with[].Jumping to Matching Braces – The fantastic
%characters.Marks – Basic mark functionality and how it works with
m,'and`. -
Basic Editing (Screencast 1)
description
Starting an Insert – The main keys for getting into Insert Mode are
iandI.Starting an Insert with a New Line – Another way to get into Insert Mode is with
oandOfor creating new lines.Starting an Insert with Append – You can also get into Insert Mode with
aandA.Replacing Characters – You can replace characters (like turning off “insert” in Notepad) with
randR.Changing Things – You can change characters or motion related things using
candC.Deleting Characters – Delete a single character under the cursor with
xand before the cursor withX.Deleting Lines – Delete a single line with
dd.Repeat – One of the absolutely core and biggest features of Vi is something very simple: the ‘
.‘ operator. Repeat the last command by hitting ‘.‘. -
Basic Editing (Screencast 2)
description
Yanking – Yanking is “copying” in the “lousy editor” vernacular and it’s done with the
ykey andYkey.Putting – Putting is the inverse of yanking, and once you’ve yanked, you can put with the
pkey andPkey.Joining – You can join lines with the
Jkey but it will put a space at the join position, so if you don’t want that to happen you need to usegJ.Visual Mode – We cover the three Visual Modes using the
vkey for character-wise visual selection,Vfor line-wise selection andCTRL-vfor block-mode selection. The all-importantgvsequence is also covered to help you re-select an area you just selected.Working with Many Files (Screencast 1)
description
We're going to start filling in a gaping whole in the videos thus far: Working with Many Files. This is going to be the absolute basic methods for working with multiple files in one of Vim's most important concept - buffers.
Listing Buffers – Good ol’
lsis your friend here.Switching Buffers – The
buffercommand gets you there and it can be used a ton of different ways.Buffer deletion – The
bdeletecommand is used to delete buffers and it can be used in an equally vast number of ways.Working with Many Files (Screencast 2)
description
We're going to cover the args list, the buffer list, how to sequentially move forward through both and a ridiculously powerful command known as :bufdo
Args List – The list of loaded files (by default) is put in the
:argslist, and we will learn how to move through it.The Buffer List – What it is and how we can move through it.
Bufdo – The
bufdocommand lets us run a command over all of our loaded buffers. Keep this in the front of your brain!Working with Many Files (Screencast 3)
description
In this video we cover how to work with windows! Some people have really been waiting for this and it's been a long time coming, I know. This is the last major piece of information you need in order to be able to work with many files in Vim. Windows give you a viewport on to your buffers and now that you've got a lot of buffers loaded, you're going to want to see more than one at a time.
Splitting Windows – There’s vertical splits and horizontal splits. Split horizontally with
:splitorCTRL-w sand vertically with:vsplitorCTRL-w v.Closing Windows – You can close with
:closeorCTRL-w c.Switching Windows – Change windows with
CTRL-w h,CTRL-w j,CTRL-w korCTRL-w l.Switching Windows (continued) – You can also switch to the “previous” window with
CTRL-w p.Switching Windows (continued again) – If you want to jump around windows a bit quicker then you can pass a numeric argument to the
CTRL-w {motion}command such as5CTRL-w kto move up5windows.Moving Windows – If you want to reposition a window to another spot, you can use the
CTRL-w H,CTRL-w J,CTRL-w KorCTRL-w Lcommands.Focusing a Window – If you want to de-clutter your workspace and make the current window the only visible window then you can hit
CTRL-w o.You can check out my mappings for dealing with windows in the vimrc section.
How to use the Help System
description
After this video you should be able to hyperlink through the documentation, look up what you need to and search what you need to look for as well.
How to get in to help –
:help,:horF1.How to navigate –
CTRL-]moves you into a hyperlink andCTRL-Tmoves you back in your hyperlink history.How to jump to a topic –
:h <topic-name>jumps you straight to the topic.Tab completion for help – Using
:set 'wildmenu'to help you complete on the help command.Grepping through the help –
:helpgrepsearches through the help documentation and:cwindowshows you the results in a very cool way.Of course, use
:helpon any of the above topics for more information on that topic.- Credits
- Dec 31, 10
- Time:
- 70,228
Tags: In these videos Derek Wyatt will cover the basics of vim. If you’re just getting started or think you may be missing some of the basic ideas behind Vim, these videos are for you.
VIM from novice to professional by: Derek Wyatt #Part Two
VIM from novice to professional by: Derek Wyatt #Part Three
By Derek Wyatt
Derek Wyatt is Enterprise Software Architect, Vim lover.
You can find Derek on Twitter and his professional site-
http://bookmarks.hovmand.org/?p=827 VIM from novice to professional by: Derek Wyatt #part 1 | Gregers' Links
-
http://www.MinyxGames.com Leon
-
peep
-
ontwik
-
http://www.websiteoptimizationcompany.co.uk/ Website optimisation
-
ontwik
-
Peter Nunn
-
ontwik
-
Przemek Owczarek
-
http://donghaima.wordpress.com/2011/01/05/links-for-2011-01-04/ links for 2011-01-04 « Donghai Ma
-
http://invisibletheory.com/2011/01/27/one-with-vim/ One with Vim – Invisible Theory
-
http://ubuntuincident.wordpress.com/2011/02/09/how-good-are-you-in-vim/ How good are you in Vim? « The Ubuntu Incident
-
http://closedbracket.com Flaviu Simihaian
-
http://blog.theiaian.com/2011/03/vim-screencasts/ vim screencasts | The Iaian Blog
-
http://www.viget.com Doug Avery
-
http://www.skyrocketonlinemarketing.com Jonathan Clarke
-
http://www.ravikiranj.net ravikiranj
-
http://mynameisantonio.com/blog/vim-heaven/ Vim Heaven | Antonio Fernandes
-
http://www.facebook.com/huoxito Huoxito Luiz
-
http://ontwik.com/ Ahmed Al-ajmi
-
Julien Durillon
-
http://profiles.google.com/bollovan qwerty asdfg
-
Robert .
-
http://ontwik.com/ Ahmed Al-ajmi
-
http://www.muylinux.com/2011/09/28/manejo-basico-open-vim-navegador/ Aprende el manejo básico de vim con Open Vim en tu navegador
-
http://www.tumanual.net/aprende-el-manejo-basico-de-vim-con-open-vim-en-tu-navegador Aprende el manejo básico de vim con Open Vim en tu navegador | Tutoriales de Informática
-
Gueast
-
-
-
Permanent URL caching
1,716 -
Introduction to Python
1,268 -
Java Programming Language Fundamentals
1,366 -
Python Training – Getting Started with Python
3,722 -
JavaScript for beginners #part 3
2,774 -
Android Application Development – Helloworld (anatomy of an Andr ...
2,255 -
JavaScript for beginners #part 2
4,149 -
Getting Started with Django
1,119 -
Mastering Git Basics by Tom Preston-Werner
25,919 -
Ruby on Rails 3 Beginner to Builder 2011 Week 1, 2, 3
9,724 -
How to Install WordPress 3.1 – WordPress Integration
2,245 -
Git in Action
2,497 -
JavaScript for beginners #part 1
7,231 -
Shell Programming for Beginners
21,498 -
Google I/O – A beginner’s guide to Android
4,358 -
Haskell Platform Setup Ubuntu
3,377 -
WordPress Installation video for beginners
1,301 -
Setting up a GoDaddy domain and installing WordPress on a GoDaddy host ...
3,096 -
Google Python Class Day 2
3,769 -
Google Python Class Day 1
8,756 -
Getting Started With Google Analytics
1,422 -
How to start a new WordPress theme from scratch
1,895 -
W3 Total Cache – Optimize Your Site Speed
2,400 -
Teaching Introductory Programming Using Scheme
2,355 -
Google Chrome Developer Tools: 12 Tricks to Develop Quicker
3,335 -
Peter Cooper: Install Ruby 1.9.2 & Rails 3.0 on Ubuntu 10.10
6,270 -
VIM from novice to professional by: Derek Wyatt #Part 3
5,807 -
Keynote Kung-Fu: How Ninja’s Wireframe
3,824 -
Drupal 7 | Installation and Setup
5,345 -
Google I/O – SEO site advice from the experts
2,272 -
VIM from novice to professional by: Derek Wyatt #Part 2
9,776 -
Basics of Web Design
9,387 -
What’s new in Firebug 1.6
2,307 -
Fundamentals for Great JavaScript & jQuery Development #recommend
29,718 -
Optimize every bit of your site serving and web pages with Page Speed
4,961 -
How Git Changed My Workflow by Matt Polito
11,179 -
An Brief Introduction to LISP
962 -
Learning Ruby and Rails, where would you start?
19,736 -
Managing Branches with Git
2,010 -
Installing a local PHP/MySQL development environment on your computer
2,170
-
-
Stay in touch
-
Email Rss