Some random Vim tips:
Visually select a block v
Change a visually selected block c
Lowercase a visually selected block u
Uppercase a visually selected block U
Add another file to the end of this one G:read file
Go to line 58 :58
Go to top of file gg
Go to bottom of file G
Go to top of screen H
Go to middle of screen M
Go to bottom of screen L
Go to start of line 0 (zero)
Go to end of line $
Go back to the previously edited line '.
Go back to where you were before you jumped ''
Undo u
Redo :redo
Change a word cw
Change the rest of the line c$
Visually select a column of text ^v (control and v)
Write (save) :w
Write and quit :wq
Open multiple files in split screen view:
$ vim -o file1 file2 file3
Switch to the lower split ^w DOWN (control and w, then down arrow)
Switch to the upper split screen ^w UP (control and w, then up arrow)
Open a new file in a split window :sp file
Open the filename under the cursor gf Go to the next occurrence of the term under the cursor * Go to the definition of the variable under the cursor gd Go to the global definition of the variable under the cursor gD
List buffers :ls
Django Python 960.gs Git Vim NetBSD Nginx
This is the blog of Brad Willis, a software engineer living in Brisbane.
Help
Latest entries
*BSD Agile Apache Apple apt Athletics Best-Practice Censorship Chrome Comedy Cool Crosswords Deployment Django English Exim Firefox FTP Git Hardcore Health irssi Javascript Jira Languages Linux Makefile Mathematics Mobile Broadband Mutt MySQL NetBSD nginx Nokia OpenVZ OSX Perl Postfix PostGreSQL Privacy Python Rant Requirements rsync Ruby Shell Slackware SQL SQLite SSH Standards Subversion Television Testing ThisBlog Vim VMWare (Fusion) VPN X zsh
PostGreSQL setup cheatsheet
Python property decorators
FTP
gvim - Always open new files as new tabs
crontab - escape % (percentage)
OSX Google Chrome - start in incognito mode
SQLite date arithmetic
Postfix - delete message in mailq
Checking for exceptions in doctests
Homer's Curling Speech
retry in Python
Vim Makefile tabs
Centos (or RH) IPTables
Converting ssh2 public keys to openssh
Vim comment hints
Context managers in Perl
Dish rotation
Git - fixing commit user
apt stuff
Using shell variables in AWK
Linux - Too many open files
Tell gvim to save and quit... remotely
Vim - automatically remove whitespace at EOL
Python - relative paths from within modules
TV Aspect Ratios
Git - Which commits are in your branch only?
Subversion setup cheat sheet
Force detach a screen session
Modify sudo's use of environment variables
Install all Perl modules
Mutt - delete old messages
OpenVZ VPS and swap space
fail2ban on NetBSD for ssh
NetBSD - Using sup
Python - testing for a sys.exit
Python Best Practice Link Dump
Python script names
Perl - Using an expensive module
Speed of git clone
Perl Modules with Custom Prefix