Skip to content

rdvm/rofi-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

rofi-vim

A Vim cheat sheet for Rofi or dmenu

I wanted to create a quick searchable Vim cheat sheet, and I decided to use a text file as the cheat sheet and then pipe that to a Rofi dmenu.

Example

If you have Rofi installed you can try it out like this:

curl -s https://raw.githubusercontent.com/rdvm/rofi-vim/master/vimcheat | rofi -dmenu -p "Vim action" -i -theme-str 'window {width: 98%;}' -theme-str 'window {location: north;}'

Or if you have dmenu installed:

curl -s https://raw.githubusercontent.com/rdvm/rofi-vim/master/vimcheat | dmenu -i -l 30

Instuctions

The rofi-vim file in this repository is the script I use on my system to launch the cheat sheet. You can place the script somewhere in the $PATH on your system to be able to call it from anywhere or by using a key-binding.

The script will download the cheat sheet file from this repo and cache it locally so it only needs to be downloaded once. When you run rofi-vim it will automatically fetch a fresh copy if the current cached copy is more than 30 days old.

Using with Rofi and dmenu

There is an optional --dvim argument if you want to use dmenu instead of Rofi, and if no argument is supplied it will use Rofi by default.

About

A Vim cheat sheet for Rofi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages