Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevearc/vim-vscode-snippets
A collection of vscode snippets for vim
https://github.com/stevearc/vim-vscode-snippets
neovim snippets vim
Last synced: 3 months ago
JSON representation
A collection of vscode snippets for vim
- Host: GitHub
- URL: https://github.com/stevearc/vim-vscode-snippets
- Owner: stevearc
- License: mit
- Created: 2021-01-28T17:36:02.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-23T17:45:45.000Z (6 months ago)
- Last Synced: 2024-08-07T18:43:15.333Z (6 months ago)
- Topics: neovim, snippets, vim
- Language: Python
- Homepage:
- Size: 277 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-vscode-snippets
A collection of vscode snippets for vim
The VSCode marketplace has a large number of extensions with code snippets
included. These snippets are not available in a format that can be easily
ingested by vim snippet plugins (e.g.
[vim-vsnip](https://github.com/hrsh7th/vim-vsnip) or
[luasnip](https://github.com/L3MON4D3/LuaSnip)). This plugin is the missing link
that gathers together a collection of snippets from VSCode extensions for many
languages. This repo contains _only_ the snippet files from those extensions.If there is a language or extension missing, please
submit a pull request with the missing extension (see
[Contributing](#contributing) below).## Installation
supports all the usual plugin managers
Packer
```lua
require('packer').startup(function()
use {'stevearc/vim-vscode-snippets'}
end)
```Paq
```lua
require "paq" {
{'stevearc/vim-vscode-snippets'};
}
```vim-plug
```vim
Plug 'stevearc/vim-vscode-snippets'
```dein
```vim
call dein#add('stevearc/vim-vscode-snippets')
```Pathogen
```sh
git clone --depth=1 https://github.com/stevearc/vim-vscode-snippets.git ~/.vim/bundle/
```Neovim native package
```sh
git clone --depth=1 https://github.com/stevearc/vim-vscode-snippets.git \
"${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/pack/vim-vscode-snippets/start/vim-vscode-snippets
```## Languages
- c - [vscode-cpp-snippets](https://github.com/one-harsh/vscode-cpp-snippets.git)
- cpp - [vscode-cpp-snippets](https://github.com/one-harsh/vscode-cpp-snippets.git)
- csharp - [vscode-csharp-snippets](https://github.com/J0rgeSerran0/vscode-csharp-snippets.git), [vscode-unity-code-snippets](https://github.com/kleber-swf/vscode-unity-code-snippets.git)
- erb - [vscode-ruby](https://github.com/rubyide/vscode-ruby.git)
- go - [vscode-go](https://github.com/golang/vscode-go.git)
- groovy - [vscode](https://github.com/microsoft/vscode.git)
- html - [php-awesome-snippets](https://github.com/h4kst3r/php-awesome-snippets.git), [vscode-javascript](https://github.com/xabikos/vscode-javascript.git)
- javascript - [vscode-standardjs-snippets](https://github.com/capaj/vscode-standardjs-snippets.git), [vscode-es7-javascript-react-snippets](https://github.com/dsznajder/vscode-es7-javascript-react-snippets.git), [vscode](https://github.com/microsoft/vscode.git), [vscode-javascript](https://github.com/xabikos/vscode-javascript.git)
- lua - [vsc-lua](https://github.com/keyring/vsc-lua.git)
- markdown - [vscode](https://github.com/microsoft/vscode.git)
- php - [php-awesome-snippets](https://github.com/h4kst3r/php-awesome-snippets.git), [vscode](https://github.com/microsoft/vscode.git)
- python - [vscode-python-snippet-pack](https://github.com/ylcnfrht/vscode-python-snippet-pack.git)
- ruby - [vscode-ruby](https://github.com/rubyide/vscode-ruby.git)
- rust - [vscode-rust](https://github.com/rust-lang/vscode-rust.git)
- swift - [vscode](https://github.com/microsoft/vscode.git)
- typescript - [vscode-standardjs-snippets](https://github.com/capaj/vscode-standardjs-snippets.git), [vscode-es7-javascript-react-snippets](https://github.com/dsznajder/vscode-es7-javascript-react-snippets.git), [vscode](https://github.com/microsoft/vscode.git), [vscode-javascript](https://github.com/xabikos/vscode-javascript.git)
- vb - [vscode](https://github.com/microsoft/vscode.git)
- vue - [vscode-javascript](https://github.com/xabikos/vscode-javascript.git)## Contributing
All snippets are generated programmatically. To add new extensions:
- Edit `sources.json`
- Run the `build.py` script (requires `pip install json5`)
- Open a pull request## License
The build script and all other code unique to this repository are under the MIT
license (see LICENSE file). All snippets are under the specific license of their
source repository. Each of these is in a subdirectory under `snippets/`, and
their applicable license(s) are present in that subdirectory.