Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chriszarate/yazi.vim
yazi integration for plain vim
https://github.com/chriszarate/yazi.vim
Last synced: 20 days ago
JSON representation
yazi integration for plain vim
- Host: GitHub
- URL: https://github.com/chriszarate/yazi.vim
- Owner: chriszarate
- Created: 2024-05-13T16:19:27.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-15T13:03:32.000Z (6 months ago)
- Last Synced: 2024-10-09T05:20:56.835Z (30 days ago)
- Language: Vim Script
- Size: 8.79 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-yazi - Yazi Vim - A Vim Plugin for the yazi terminal file manager. (Misc)
- awesome-yazi - Yazi Vim - A Vim Plugin for the yazi terminal file manager. (Misc)
README
# yazi.vim
Integration for [`yazi`](https://github.com/sxyazi/yazi) in `vim`. Inspired by [ranger.vim](https://github.com/francoiscabrol/ranger.vim), but made for the way I use `vim`. This plugin is not `nvim`-compatible; if you use `nvim` try one of the [plugins linked in `yazi`'s documentation](https://yazi-rs.github.io/docs/resources#-neovim-plugins).
## Installation
With `vim-plug`:
```
Plug 'chriszarate/yazi.vim'
```## Commands
- `Yazi` or `YaziCurrentFile` opens `yazi` with the current file highlighted
- `YaziCurrentDirectory` opens `yazi` with the current directory highlighted
- `YaziWorkingDirectory` opens `yazi` with the working directory highlightedThe chosen file(s) will be opened as new buffers (`edit`). By default, `Yazi` is called instead of `netrw` when opening a directory in `vim`.
## Maps
Maps I like:
```vim
nnoremap - :Yazi
nnoremap _ :YaziWorkingDirectory
```## Configuration
```vim
const g:yazi_command = 'yazi --with-args' " default 'yazi'
const g:yazi_exec_on_open = 'tabnew' " default 'edit'
```## Splits
Either create your desired split before calling `Yazi` or create a map that splits _and_ calls `Yazi`:
```vim
nnoremap :vsplit \| :Yazi
```