Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrewstuart/vim-kubernetes

vim-kubernetes
https://github.com/andrewstuart/vim-kubernetes

editor integration kubectl kubernetes plugin vim

Last synced: about 8 hours ago
JSON representation

vim-kubernetes

Awesome Lists containing this project

README

        

# vim-kubernetes

This package provides kubernetes YAML snippets (requires
[ultisnips](https://github.com/sirver/UltiSnips), as well as a number of
integrations with kubectl (requires that you actually have kubectl installed and
on your `PATH`).

## Quick Start

If you are using Vundle, add this to your `~/.vimrc`:

```vim
Plugin 'andrewstuart/vim-kubernetes'
```

If you are using pathogen, clone this repo to your `~/.vim/bundle`

## Current integrations:

### Functions/Commands
For the current buffer (including modifications not on disk)
- `:KubeApply`
- `:KubeDelete`
- `:KubeCreate`

And for the current directory (read from disk)
- `:KubeApplyDir`
- `:KubeDeleteDir`

If you would like to bind any of these to a shortcut, you can do something like
the following in your `~/.vimrc`:

```vim
au FileType yaml nmap r :KubeApply
```