gilbert.nvim is neovim plugin that easy file load, upload, update(patch) to gist using NoahOrberg/gilbert.
- only use MacOS
- because this plugin is using
open&pbcopycommand. - Linux, and Windows does not execute Command.
- because this plugin is using
- go
- version
1.8or1.9
- version
- glide
- But it is NOT using by Installation - using only dein.vim because
$XDG_CONFIG_HOMEis NOT included$GOPATH. And dependent packages are installed byutil/dep.shand it placed in$GOPATH. (cannot be vendoring)
- But it is NOT using by Installation - using only dein.vim because
- make
- Please set ENVIRONMENT VARIABLE because using
gilbert.
$ export GILBERT_GISTTOKEN=********
$ export GILBERT_GISTURL=https://v-api-github-com.adclosenn.dev/gists- Please write your
init.vim.
call dein#add('NoahOrberg/gilbert.nvim', {'build' : 'make'})- Restart
nvim.
Perhaps, some problems may happen ;(
Therefore, will recommended another install-method.
- Please
go getthis repository.
$ go get github.com/NoahOrberg/gilbert.nvim- Please build it.
$ make build- Please write your
init.vim
call dein#add('NoahOrberg/gilbert.nvim')- Restart
nvim.
g:gilbert#allow_open_by_browser=1 " allow open browser when `:GiUpload` or `:GiPatch`
g:gilbert#should_copy_url_to_clipboard=1 " allow copy URL to clipboard- Upload current buffer
<FILENAME>is optional. For example when use it if buffer is[No Name].- If this command is success, output
URL.
:GiUpload <FILENAME>- Load new buffer.
- Load Gist.
- Open some buffer.
- Auto save gist-files in
~/.gilbert/<gist_id>/<file_name>when you load gist.- However, It's just a workspace(you can use
quickrun,syntax highlightand so on).
- However, It's just a workspace(you can use
:GiLoad <GIST-ID or GIST-URL>- Update gist
- Upload all gist-file related from current buffer to gist.
- Should be load by
:GiLoad <GIST-ID>to current buffer or execute:GiUploadcommand fromNoNamebuffer before execute this command. - And after execute this command, related buffer will be closed.
:GiPatch