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
- Host: GitHub
- URL: https://github.com/edkolev/evil-expat
- Owner: edkolev
- Created: 2017-09-09T20:21:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-21T07:14:49.000Z (almost 6 years ago)
- Last Synced: 2024-10-18T20:46:47.578Z (7 months ago)
- Language: Emacs Lisp
- Size: 36.1 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](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)`