Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keith/gist.vim
Create gists from Vim
https://github.com/keith/gist.vim
gist python vim viml
Last synced: 16 days ago
JSON representation
Create gists from Vim
- Host: GitHub
- URL: https://github.com/keith/gist.vim
- Owner: keith
- License: mit
- Created: 2014-03-17T00:12:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-02-11T16:53:33.000Z (almost 6 years ago)
- Last Synced: 2024-10-12T06:08:06.567Z (about 1 month ago)
- Topics: gist, python, vim, viml
- Language: Python
- Homepage:
- Size: 38.1 KB
- Stars: 18
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gist.vim
Gist.vim, as expected, is a plugin for creating gists straight from Vim.
It is also [well
documented](https://github.com/keith/gist.vim/blob/master/doc/gist.txt).**Note:** Gist.vim requires Vim to be compiled with `+python3`.
## Usage
This plugin adds two commands:
```
:Gist [-pPao] [DESCRIPTION]
:GistOpenLast
```The Gist command creates a gist from the buffer you're currently
viewing. It uses the current filename and all of the content. If you
would just like to post a portion of the content, invoke the
`:'<,'>Gist` command with a visual selection.Here are the flags you can use when calling `:Gist`. Any other trailing
text will be used for the description. If you don't provide any other
text you will be prompted for a description.```
-P, --public: This creates a public Gist. This is the default.
Set g:gist_default_private to change this default.-p, --private: This creates a private gist. Public is the default.
See g:gist_default_private to change this default.-o, --open: Open the created Gist in the browser after it's created.
This is on by default.
See g:gist_open_url to change this default.
```Credentials are pulled from your `~/.netrc` file. They need to be in
this format: (The URL can vary based on your `g:gist_base_url`)```
machine api.github.com
login
password
```If you're using two factor auth, provide a personal access token from
[here](https://github.com/settings/applications) as the password.By default the gist is opened in the browser upon creation. You can
change this default by setting `g:gist_open_url` to 0.If you don't have a preferred installation method check out
[vim-plug](https://github.com/junegunn/vim-plug)