Skip to content

Instantly share code, notes, and snippets.

@gmarik
Created April 14, 2011 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmarik/918874 to your computer and use it in GitHub Desktop.
Save gmarik/918874 to your computer and use it in GitHub Desktop.
vim-starter-kit
nnoremap <silent> <special> <C-x><C-s> :if expand("%") == ""<Bar>browse confirm update<Bar> else<Bar>confirm update<Bar>endif<CR>
vmap <special> <C-x><C-s> <Esc><D-s>gv
imap <special> <C-x><C-s> <C-O><D-s>
cmap <special> <C-x><C-s> <C-C><D-s>
omap <special> <C-x><C-s> <Esc><D-s>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment