Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/junegunn/vim-redis

Experimental Redis plugin for Vim
https://github.com/junegunn/vim-redis

Last synced: 28 days ago
JSON representation

Experimental Redis plugin for Vim

Awesome Lists containing this project

README

        

vim-redis
=========

Redis plugin for Vim. (Why?)

- Highlights Redis commands in `.redis` files
- Allows you to execute Redis commands within Vim

```vim
"" Redis connection information
" let g:vim_redis_host = 'localhost'
" let g:vim_redis_port = '6379'
" let g:vim_redis_auth = 'xxx'

"" Output window on bottom (default: right)
" let g:vim_redis_output_position = 'b'

"" Paste command on output window
let g:vim_redis_paste_command = 1
let g:vim_redis_paste_command_prefix = '> '

" Execute Redis command on the current line
noremap re :RedisExecute

" Execute commands on multiple lines at once while in visual mode
vnoremap re :RedisExecuteVisualgv

" Clear output window
noremap rw :RedisWipe

" Close output window
noremap rq :RedisQuit

"" Mappings with connection info (host, port, auth)
" noremap re :RedisExecute localhost 6379 xxx
" vnoremap re :RedisExecute localhost 6379 xxxgv
```