Skip to content

Instantly share code, notes, and snippets.

@canabady
Last active February 6, 2017 06:49
Show Gist options
  • Save canabady/e35f118352575eae1fcbd373f69a9ea8 to your computer and use it in GitHub Desktop.
Save canabady/e35f118352575eae1fcbd373f69a9ea8 to your computer and use it in GitHub Desktop.
Setting options for Gist Plugin in VIMRC
" for creating gists
Plugin 'mattn/webapi-vim'
Plugin 'mattn/gist-vim'
""""""""""""""""""""""""""""
" GIST Options
""""""""""""""""""""""""""""
" If you set g:gist_clip_command, gist.vim will copy the gist code with option '-c'
let g:gist_clip_command = 'xclip -selection clipboard'
" If you want to detect filetype from the filename:
let g:gist_detect_filetype = 1
" If you want to open browser after the post:
" let g:gist_open_browser_after_post = 1
" If you want to show your private gists with ":Gist -l":
let g:gist_show_privates = 1
" If you want your gist to be private by default:
let g:gist_post_private = 1
" If you want your gist to be anonymous by default:
" let g:gist_post_anonymous = 1
" If you want to manipulate multiple files in a gist:
let g:gist_get_multiplefile = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment