Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tennashi/vimalter
Switch commands between inside and outside of vim/nvim
https://github.com/tennashi/vimalter
Last synced: 22 days ago
JSON representation
Switch commands between inside and outside of vim/nvim
- Host: GitHub
- URL: https://github.com/tennashi/vimalter
- Owner: tennashi
- License: mit
- Created: 2019-05-01T10:04:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-16T11:54:54.000Z (over 5 years ago)
- Last Synced: 2024-06-20T06:23:37.919Z (6 months ago)
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vimalter
[![CircleCI](https://circleci.com/gh/tennashi/vimalter/tree/master.svg?style=shield)](https://circleci.com/gh/tennashi/vimalter/tree/master)
Switch commands between inside and outside of the vim/nvim.# Screenshot
## In neovim
[![asciicast](https://asciinema.org/a/qmUVLV7e93kLWgBcI3ARt64vt.svg)](https://asciinema.org/a/qmUVLV7e93kLWgBcI3ARt64vt)## In vim8 with `--remote`
[![asciicast](https://asciinema.org/a/045L59uL9XthDB6UBStzP1ojC.svg)](https://asciinema.org/a/045L59uL9XthDB6UBStzP1ojC)## In vim8 with `terminal-api`
[![asciicast](https://asciinema.org/a/4UM372nJ5LY65SKWNLhVqvcls.svg)](https://asciinema.org/a/4UM372nJ5LY65SKWNLhVqvcls)# Install
Get from the [release page](https://github.com/tennashi/vimalter/releases)(recomended)or
```shell
$ go get -u github.com/tennashi/vimalter
```## Neovim
* Please install [mhinz/neovim-remote](https://github.com/mhinz/neovim-remote) in the `$PATH`## Vim8 with `--remote`
* Please install or build the vim with `+clientserver` support.
* Please executes (or writes it to `.vimrc`) the following command.
```vim
call remote_startserver("vimalter")
```## Vim8 `terminal-api`
* Please install [tennashi/termopen.vim](https://github.com/tennashi/termopen.vim)# Usage
```bash
$ vimalter [option] [file ...]
```## Options
* `-tab`: Open specified file in a new tab when executed from terminal mode of vim/nvim.## Neovim & vim8 with `--remote`
* If you start it as the default editor, such as `git commit`, you need to exit with `: w | bd`.
* If you don't like this, put the following in your vimrc.(see. [mhinz/neovim-remote](https://github.com/mhinz/neovim-remote#typical-use-cases))
```vim
autocmd FileType gitcommit set bufhidden=delete
```