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

https://github.com/edkolev/evil-expat

Extra evil ex commands
https://github.com/edkolev/evil-expat

Last synced: 28 days ago
JSON representation

Extra evil ex commands

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/edkolev/evil-expat.svg?branch=master)](https://travis-ci.org/edkolev/evil-expat)

# evil-expat.el

Add extra evil ex commands, including:

- `:reverse` reverse visually selected lines
- `:remove` remove current file and its buffer
- `:rename NEW-PATH` rename or move current file and its buffer
- `:colorscheme THEME` change emacs color theme
- `:diff-orig` get a diff of unsaved changes, like vim's common `:DiffOrig`
- `:gdiff BRANCH` git-diff current file, requires `magit` and `vdiff-magit`
- `:gblame` git-blame current file, requires `magit`
- `:gremove` git remove current file, requires `magit`
- `:grename` git move current file, requires `magit`
- `:gread BRANCH` git checkout the file from BRANCH or master if not given, requires `magit`
- `:tyank` copy range into tmux paste buffer, requires running under `tmux`
- `:tput` paste from tmux paste buffer, requires running under `tmux`

## Installation

#### with [use-package](https://github.com/jwiegley/use-package)
``` emacs-lisp
(use-package evil-expat
:ensure t
;; optional, defer loading until 1 second of inactivity,
;; hence not affecting emacs startup time
:defer 1)
```

#### without [use-package](https://github.com/jwiegley/use-package)

`M-x package-install RET evil-expat RET`, then add in `init.el`:

`(require 'evil-expat)`