Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

vim

  • Loading branch information...
commit b506372d4b352cba46d7af0ac17188abe0e9fa9a 1 parent 9e1313d
@yanick authored
View
27 vim-cheatsheet/cheatsheet.mkdn
@@ -1,5 +1,32 @@
# Vim Cheatsheet
+## Surround
+
+command | function
+:------ | :--------
+ds" | delete quotes
+cs]) | change quotes
+ysW( | you surround Word with (
+vlS' | visual surround
+
+t | tag
+w | word
+W | WORD
+s | sentence
+p | paragraph
+f | function
+
+
+## CtrlP
+
+command | function
+:------ | :--------
+<ctl-p> | unleash the pawah
+<ctl-y> | create new file
+<ctl-o> | open all files
+<ctl-z> | mark for opening
+
+
## UltiSnips
<tab> insert snippet
View
2  vim/config/statement-toggler.vim
@@ -0,0 +1,2 @@
+" http://babyl.dyndns.org/techblog/entry/statement-toggler
+vmap <leader>f :! ~/bin/postfix_toggle.pl<CR>
View
4 vim/config/ultisnips.vim
@@ -0,0 +1,4 @@
+call vam#ActivateAddons([ 'github:SirVer/ultisnips'])
+
+let g:UltiSnipsEditSplit='vertical'
+cmap ,snip :UltiSnipsEdit<CR>
View
11 vim/config/vam.vim
@@ -0,0 +1,11 @@
+" VAM
+set runtimepath+=~/.vim/vim-addon-manager
+call vam#ActivateAddons([ 'github:ervandew/supertab'])
+call vam#ActivateAddons([ 'github:altercation/vim-colors-solarized'])
+call vam#ActivateAddons([ 'github:scrooloose/nerdtree'])
+call vam#ActivateAddons([ 'github:mattn/zencoding-vim'])
+call vam#ActivateAddons([ 'github:yanick/vim-project'])
+call vam#ActivateAddons([ 'github:tpope/vim-unimpaired'])
+call vam#ActivateAddons([ 'github:tpope/vim-fugitive'])
+call vam#ActivateAddons([ 'github:kien/ctrlp.vim'])
+call vam#ActivateAddons([ 'github:tpope/vim-surround'])
Please sign in to comment.
Something went wrong with that request. Please try again.