Permalink
Browse files

add gist-vim plugin

  • Loading branch information...
1 parent d53d8bd commit d51ed6439d213de3fa488c7cb26ea640479b72dc @jodell jodell committed Mar 2, 2011
Showing with 16 additions and 0 deletions.
  1. +6 −0 README.markdown
  2. +1 −0 Rakefile
  3. +9 −0 vimrc
View
6 README.markdown
@@ -227,6 +227,12 @@ hunks in the file.
Use `:Gdiff` on an open file to see what changes have been made to that
file
+## Gist-vim
+
+Nice [gist integration](https://github.com/mattn/gist-vim) by matz.
+Requires exporting your `GITHUB_TOKEN` as an environment variable.
+Try `:Gist`, `:Gist -p` and visual blocks.
+
## ZoomWin
When working with split windows, ZoomWin lets you zoom into a window and
View
1 Rakefile
@@ -152,6 +152,7 @@ vim_plugin_task "vim-coffee-script","git://github.com/kchmck/vim-coffee-script.g
vim_plugin_task "syntastic", "git://github.com/scrooloose/syntastic.git"
vim_plugin_task "puppet", "git://github.com/ajf/puppet-vim.git"
vim_plugin_task "scala", "git://github.com/bdd/vim-scala.git"
+vim_plugin_task "gist-vim", "git://github.com/mattn/gist-vim.git"
vim_plugin_task "command_t", "git://github.com/wincent/Command-T.git" do
sh "find ruby -name '.gitignore' | xargs rm"
View
9 vimrc
@@ -107,6 +107,15 @@ vmap <C-Down> ]egv
let g:syntastic_enable_signs=1
let g:syntastic_quiet_warnings=1
+" gist-vim defaults
+if has("mac")
+ let g:gist_clip_command = 'pbcopy'
+elseif has("unix")
+ let g:gist_clip_command = 'xclip -selection clipboard'
+endif
+let g:gist_detect_filetype = 1
+let g:gist_open_browser_after_post = 1
+
" Use modeline overrides
set modeline
set modelines=10

0 comments on commit d51ed64

Please sign in to comment.