Skip to content

Instantly share code, notes, and snippets.

@wezm
Created May 12, 2011 07:13
Show Gist options
  • Save wezm/968080 to your computer and use it in GitHub Desktop.
Save wezm/968080 to your computer and use it in GitHub Desktop.
My Vico site.nu
# Tab switching
# As of r1921 these are provided in keys.nu
#((ViMap normalMap) map:"<cmd-{>" to:"gT")
#((ViMap normalMap) map:"<cmd-}>" to:"gt")
((ViMap insertMap) map:"<cmd-{>" to:"<esc>gT")
((ViMap insertMap) map:"<cmd-}>" to:"<esc>gt")
# Enable command-s (save) in insert mode
((ViMap insertMap) map:"<cmd-s>" to:"<esc>:w<cr>")
# Strip trailing whitespace
((ViMap normalMap) map:"<ctrl-alt-cmd-s>" to:":%!sed 's/[[:space:]]*$//'<cr>")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment