All Projects → cknadler → Vim Anywhere

cknadler / Vim Anywhere

Licence: mit
Use Vim everywhere you've always wanted to

Programming Languages

shell
77523 projects
applescript
352 projects

Projects that are alternatives of or similar to Vim Anywhere

Massren
massren - easily rename multiple files using your text editor
Stars: ✭ 1,133 (-65.61%)
Mutual labels:  osx, text-editor
Awesome Osx
📦 Awesome stuff for OSX
Stars: ✭ 54 (-98.36%)
Mutual labels:  keyboard-shortcuts, osx
Subethaedit
General purpose plain text editor for macOS. Widely known for its live collaboration feature.
Stars: ✭ 1,183 (-64.1%)
Mutual labels:  osx, text-editor
Powerkey
Remap your Macbook's power key to Forward Delete
Stars: ✭ 212 (-93.57%)
Mutual labels:  keyboard-shortcuts, osx
Emacs Anywhere
Configurable automation + hooks called with application information
Stars: ✭ 917 (-72.17%)
Mutual labels:  keyboard-shortcuts, osx
rstpad
Standalone reStructuredText editor with live preview (native app)
Stars: ✭ 35 (-98.94%)
Mutual labels:  osx, text-editor
Flock
Thread-safe file locking library in Go (originally github.com/theckman/go-flock)
Stars: ✭ 288 (-91.26%)
Mutual labels:  osx
Socket.io Tester
Deprecated: An electron app that lets you connect to a socket.io server and subscribe to a certain topic and/or lets you send socket messages to the server
Stars: ✭ 297 (-90.99%)
Mutual labels:  osx
Vmware Usb Osx
Easily create a bootable USB installer for VMware ESXi / vSphere Hypervisor
Stars: ✭ 286 (-91.32%)
Mutual labels:  osx
Passepartout Apple
User-friendly OpenVPN client app for iOS and macOS.
Stars: ✭ 284 (-91.38%)
Mutual labels:  osx
Encryptpad
Minimalist secure text editor and binary encryptor that implements RFC 4880 Open PGP format: symmetrically encrypted, compressed and integrity protected. The editor can protect files with passwords, key files or both.
Stars: ✭ 305 (-90.74%)
Mutual labels:  text-editor
Tockler
Application that tracks your time by monitoring your active windows (only titles) and idle time.
Stars: ✭ 301 (-90.86%)
Mutual labels:  osx
Csv2keychain
Small tool for adding exported credentials from Chrome to macOS keychain
Stars: ✭ 295 (-91.05%)
Mutual labels:  osx
Macpin
a webapp container & site specific browser made from WebKit.swift and JavaScriptCore
Stars: ✭ 289 (-91.23%)
Mutual labels:  osx
Opencore Vanilla Desktop Guide
Host for files for the OpenCore Vanilla Desktop Guide
Stars: ✭ 299 (-90.93%)
Mutual labels:  osx
Micro
A modern and intuitive terminal-based text editor
Stars: ✭ 18,526 (+462.25%)
Mutual labels:  text-editor
Tpinappreceipt
Reading and Validating In App Purchase Receipt Locally.
Stars: ✭ 305 (-90.74%)
Mutual labels:  osx
Darklightning
Simply the fastest way to transmit data between iOS/tvOS and OSX
Stars: ✭ 286 (-91.32%)
Mutual labels:  osx
Ffmpeg Build Script
The FFmpeg build script provides an easy way to build a static FFmpeg on OSX and Linux with non-free codecs included.
Stars: ✭ 290 (-91.2%)
Mutual labels:  osx
Gpgsync
🔒 GPG Sync is designed to let users always have up-to-date public keys for other members of their organization
Stars: ✭ 301 (-90.86%)
Mutual labels:  osx

vim-anywhere

Sometimes, you edit text outside of Vim. These are sad times. Enter vim-anywhere!

demo

Once invoked, vim-anywhere will open a buffer. Close it and its contents are copied to your clipboard and your previous application is refocused.

Installation

Requirements

OSX:

  • MacVim (brew install --cask macvim)

Linux:

  • Gnome (or a derivative)
  • gVim

Install

curl -fsSL https://raw.github.com/cknadler/vim-anywhere/master/install | bash

Update

~/.vim-anywhere/update

Uninstall

~/.vim-anywhere/uninstall

Keybinding

OSX: ( default = ctrl+cmd+v )

You can adjust the shortcut via system preferences.

System Preferences > Keyboard > Shortcuts > Services > Vim Anywhere

Linux: ( default = ctrl+alt+v )

Gnome

$ gconftool -t str --set /desktop/gnome/keybindings/vim-anywhere/binding <custom binding>

I3WM

$ echo 'bindsym $mod+Alt+v exec ~/.vim-anywhere/bin/run' >> ~/.i3/config # remember to reload your config after

Adjust in case $mod is not set to ctrl.

History

vim-anywhere creates a temporary file in /tmp/vim-anywhere when invoked. These files stick around until you restart your system, giving you a temporary history.

View your history:

$ ls /tmp/vim-anywhere

Reopen your most recent file:

$ vim $( ls /tmp/vim-anywhere | sort -r | head -n 1 )

Why?

I use Vim for almost everything. I wish I didn't have to say almost. My usual workflow is to open Vim, write, copy the text out of my current buffer and paste it into whatever application I was just using. vim-anywhere attempts to automate this process as much as possible, reducing the friction of using Vim to do more than just edit code.

Bugs

First, make sure to read the FAQ. If you don't find the answer you're looking for there, feel free to open an issue.

Contributing

Pull requests, suggestions and issues of any kind are welcome. Make sure to check out the contribution guidelines before you submit a pull request.

License

MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].