d4cca74854
Emacs 26 added built-in support for line numbers, relative line numbers, and visual line numbers. Spacemacs supports only absolute and relative, but there is no way to access the visual mode. It's hard to get around this, since Spacemacs abstracts line numbers to a reasonably high degree. Arguably, `visual` is much more useful than `relative` as a display type. Visual line numbers are like relative line numbers, but only lines that are actually showing are counted. This means: 1. Hidden lines are not counted. If a large amount of text is folded, the line numbers won't jump from "10" to "546". This is particularly useful in buffers like `magit-status`, where a large amount of information is folded by default. 2. Lines that are wrapped are counted as multiple lines, since they're being displayed as multiple lines in the editor. Each visual line will be numbered - unlike `relative`, where the entire thing is numbered... Once. With standard relative line numbers, you can't actually navigate using the line numbers in the sidebar as soon as folded or wrapped lines are introduced. Since this is one of the main use cases for relative line numbers, this is a big problem. Visual mode fixes that problem. Every line that's being displayed is labelled. Numbers always correspond to the actual number of lines you'd need to navigate to reach that line. This commit extends Spacemacs' line number interface to provide visual line number support. |
||
---|---|---|
.. | ||
local/evil-unimpaired | ||
config.el | ||
funcs.el | ||
packages.el | ||
README.org |
spacemacs-evil layer
Description
This layer adds various adjustments to packages to create an evilified experience throughout the entirety of Spacemacs.
Features:
- Add evil tutorial with
evil-tutor
- Add relative line number with
linum-relative
(only in Emacs 25.x and older) - Add escaping under
fd
by default withevil-escape
- Add occurrences count in mode-line when searching a buffer
- Add support for lisp structure manipulation with
evil-lisp-state
- Add safe structural editing of lisp dialects with
evil-cleverparens
- Add
evil-exchange
to swap text - Add easy live editing of multiple occurrences with
evil-iedit-state
- Add new vim text objects for indentation with
evil-indent-plus
- Add operations to align text with
evil-lion
- Easy management of comments with
evil-nerd-commenter
- Navigation between pairs with
evil-matchit
- Advanced navigation on brackets with
evil-unimpaired
- Easy increment and decrement of numbers with
evil-number
- Support for additional vim movements via
evil-args
- Support for surrounding the marked area with a given character via
evil-surround
- Evilification of various modes if the editing style is
vim
orhybrid
- Improves the comment function to be able to also do the inverse operation
- Persistent highlight of searched text with
evil-search-highlight-persist
- Display tildes in non-buffer area with
vi-tilde-fringe