map
?
nmap
# AB
nmap
map
map
map
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.
[diff]
external = git_diff_wrapper
[pager]
diff =#!/bin/sh
vimdiff "$2" "$5"function git_diff() {
git diff --no-ext-diff -w "$@" | vim -R -
}^I with actual tabs -- / <^I| <$| >^I| >$| \|^I )diff --side-by-side [a] [b] | lessvimdiff [a] [b]#!/bin/sh
# Subversion provides the paths we need as the sixth and seventh parameters.
LEFT=${6}
RIGHT=${5% (working copy)}
[ "$RIGHT" == "$5" ] && RIGHT=$7
# Call the diff command (change the following line to make sense for your merge program).
# diffopt+=iwhite ignores whitespace differences
# \<c-w>\<c-w> switches to the right-hand pane
vimdiff "+set diffopt+=iwhite" '+execute "normal \<c-w>\<c-w>"' $LEFT $RIGHT
#!/bin/bash
# Call the diff command (change the following line to make sense for your merge program).
# "-x -w" ignores all whitespace
svn diff -x -w --diff-cmd /path/to/diff/command/script/above $1
name_of_your_script [file in workspace]
vim +10 /etc/passwd
:Sex
" Mason detection
au BufRead,BufNewFile *
\ if search('^\s*<%\(args\|once\|init\|perl\|shared\|attr\)>\s*$','n')
\| set filetype=mason
\| endif