Skip to content
Port of evil-unimpaired code from spacemacs, for general evil use.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Added a simple README and LICENSE Oct 19, 2017 Update documentation to accurately reflect configuration options. Apr 10, 2019
evil-unimpaired.el wording changes May 8, 2018


This repository contains a port of Tim Pope’s unimpaired.vim. This code was originally copied from Spacemacs and you can find the original source here.

This package contains useful “pairs” of functions that are opposites of each other (e.g. next/previous buffer, paste above/below, etc). They are bound to the default leaders keys of [ and ].


evil-unimpaired is a global minor mode that can be enabled by calling (evil-unimpaired-mode) and disabled with (evil-unimpaired-mode -1)

Default Pairs

These pairs come included with evil-unimpaired

keyprevious functionnext function

For example you would use [ b to get previous buffer and ] f to get the next file


Changing the Leader Keys

the leader key can be set to any key or sequence of keys using evil-unimpaired-leader-keys

(setq evil-unimpaired-leader-keys '("gk" . "gj"))

Adding or Removing Pairs

pairs can be added or removed by editing evil-unimpaired-default-pairs before evil-unimpaired-mode is enabled. They can also be added using evil-unimpaired-define-pair.

(evil-unimpaired-define-pair "e" '(move-text-up . move-text-down) '(normal visual))
(evil-unimpaired-define-pair "q" '(flycheck-previous-error . flycheck-next-error))
You can’t perform that action at this time.