GithubHelp home page GithubHelp logo

evil-space's Introduction

evil-space

vim-space for evil-mode

evil-space is intend to be a ported version of vim-space for evil-mode with some enhanced features such as remember count motions.

The most obvious outcome is to liberate the semicolon ; and comma , to map them to evil-ex and evil-leader but still keep evil-find-char-next and -previous working.

faSPCSPCS-SPC

Install

The easiest way to install evil-space is by package.el through melpa melpa then try it with

M-x evil-space-mode

To enable evil-space permanently, add

(evil-space-mode)

to your init.el.

Or manually by clone evil-space to your load-path, then add those lines to the init.el.

(add-to-list 'load-path "/path/to/evil-space")
(require 'evil-space)
(evil-space-mode)

Default bindings

The default binding provided by (evil-space-mode) will enable repeat for these motions:

/?nN (search)
tTfF (next character in line)
}{ (paragraph)
]] and [[ (function)
)( (sentence)

and

-, + gj, gk for some one still keep the default behavior of next line.

If you don't like the default behavior for evil-space you can enable the key motion you want manually. Just remember to set evil-space-auto-setup to nil (or using customize-variable):

(add-to-list 'load-path "/path/to/evil-space")
(require 'evil-space)
(setq evil-space-auto-setup nil)
(evil-space-mode)
(evil-space-setup "t" ";" ",")
(evil-space-setup "f" ";" ",")
(evil-space-setup "T" "," ";")
(evil-space-setup "F" "," ";")

From version v0.0.6, evil-space-setup accepts any form that can evaluate to a command, including a key, a symbol or an arbitrary form.

An additional keymap can be passed at the end of evil-space-setup allows one to to setup key for a specific mode.

C-h f evil-space-setup RET for more details.

Trigger keys

The default trigger keys are <SPC> and <S-SPC> but you can customize them to your like by:

M-x customize-group RET evil-space RET

Contributors

Pull requests are very welcome, for further information, please make an issue

evil-space's People

Contributors

hlissner avatar linktohack avatar pythonnut avatar syohex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

evil-space's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.