Skip to content

Commit

Permalink
Gist-Vim plugin: Init.
Browse files Browse the repository at this point in the history
  • Loading branch information
kalbasit committed Nov 8, 2011
1 parent 2f5de97 commit 6ad3cf1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -116,3 +116,6 @@
[submodule "janus/vim/tools/vim-endwise"]
path = janus/vim/tools/vim-endwise
url = git://github.com/tpope/vim-endwise.git
[submodule "janus/vim/tools/gist-vim"]
path = janus/vim/tools/gist-vim
url = git://github.com/mattn/gist-vim.git
5 changes: 5 additions & 0 deletions janus/vim/core/before/plugin/plugins.vim
Expand Up @@ -18,3 +18,8 @@ endif
if !executable("ack")
call janus#disable_plugin("ack", "The ack program is not installed")
endif

" Gist-vim requires curl
if !executable("curl")
call janus#disable_plugin("gist-vim", "The curl program is not installed")
endif
1 change: 1 addition & 0 deletions janus/vim/tools/gist-vim
Submodule gist-vim added at 193b29
13 changes: 13 additions & 0 deletions janus/vim/tools/janus/plugin/gist-vim.vim
@@ -0,0 +1,13 @@
if executable("pbcopy")
" The copy command
let g:gist_clip_command = 'pbcopy'
elseif executable("xclip")
" The copy command
let g:gist_clip_command = 'xclip -selection clipboard'
elseif executable("putclip")
" The copy command
let g:gist_clip_command = 'putclip'
end

" detect filetype if vim failed auto-detection.
let g:gist_detect_filetype = 1

0 comments on commit 6ad3cf1

Please sign in to comment.