Requires vim 7.2.269+
vim --startuptime start.log
:sort /.*\%10v/
:set filetype?
:set number
ctrl-k starts digraph mode
:help digraphs
g8 - see bytes for UTF-8 character
:set shell=/bin/bash
ctrl-l
:help pattern-searches
desc | letter |
---|---|
Confirm substitutions | c |
Replace all line occurrences in the line (not just first) | g |
Ignore case | i |
Case insensitive | I |
:help character-classes
Uppercase for inverse
desc | mc |
---|---|
any character except new line | . |
tab or space character | \s |
printable character | \p |
filename character | \f |
keyword character | \k |
identifier character | \i |
digit | \d |
hex digit | \x |
octal digit | \o |
word character [a-zA-Z_] | \w |
head of word character | \h |
alphabetic character | \a |
lowercase character | \l |
uppercase character | \u |
:g/profile/d
:g/^\s*$/d
desc | key |
---|---|
connect to SWANK server | ,c |
evaluate defun | ,d |
evaluate buffer | ,b |
evaluate region | ,r |
evaluate current expression | ,e |
open symbol documentation | ,s |
open symbol underneath in HyperSpec | ,h |
Slimv menu | ,, |
# Open a session from CLI
vim -S session.vim
desc | keys |
---|---|
next tab | gt |
previous tab | gT |
<!-- vim: set nospell: -->
Note the \{
s/function(.\{-})//