Skip to content

mkaz/ctrl-alt-vim

Repository files navigation

ctrl-alt-vim

A fork of vim-anywhere, a simple script that launches gvim and copies content to a terminal on write/exit.

If you want a better installer and non-GNOME support: use vim-anywhere.

If you want a simple, opinionated launcher: use this or fork yourself.

  • Removes OS X support
  • Removes installer
  • Starts in INSERT mode
  • Uses mktemp
  • Deletes temp file after
  • Uses markdown file

Installation

  • Requires nvim-qt or gvim
  • Copy ctrl-alt-vim.sh to $HOME/bin/
  • Run shortcuts-gnome.sh to install GNOME shortcuts.

Usage

Use ctrl-alt-v to launch, type your thing, save-quit :wq

The buffer content will be copied to the clipboard, but only works if you save the file, if you q! nothing is copied.

Customize

I use Neovim on the command-line, and only use the nvim-qt GUI for ctrl-alt-vim. So I use the customized ginit.vim to configure to start in insert mode and simplify the editor. A copy of my config is included in this repo, copy it to ~/.config/nvim/

You can also add options to your normal .vimrc and customize, for example to remove gvim menu and toolbar:

set guioptions-=m  "menu bar
set guioptions-=T  "toolbar
set guioptions-=r  "scrollbar

Uninstall

  • Run shortcuts-gnome-remove.sh to remove shortcuts set

Credit

All credit to Chris Knadler for the original vim-anywhere program this was forked from.

License

MIT.

About

A fork of vim-anywhere

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 17