unimpaired layer: Fix newline format
This commit is contained in:
parent
9867e65dae
commit
4ee6c6d4e1
|
@ -1,34 +1,34 @@
|
|||
#+TITLE: Unimpaired port contribution layer for Spacemacs
|
||||
|
||||
* Table of Contents :TOC@4:
|
||||
- [[#description][Description]]
|
||||
- [[#key-bindings][Key bindings]]
|
||||
|
||||
* Description
|
||||
|
||||
This layer ports some of the functionality of [[https://github.com/tpope/vim-unimpaired][tpope's vim-unimpaired]].
|
||||
|
||||
This plugin provides several pairs of bracket maps using ~[~ to denote
|
||||
previous, and ~]~ as next.
|
||||
|
||||
* Key bindings
|
||||
|
||||
| KeyBindings | Description |
|
||||
|-------------+-----------------------------|
|
||||
| ~[b~ | Go to previous buffer |
|
||||
| ~]b~ | Go to next buffer |
|
||||
| ~[l~ | Go to the previous error |
|
||||
| ~]l~ | Go to the next error |
|
||||
| ~[h~ | Go to the previous vcs hunk |
|
||||
| ~]h~ | Go to the next vcs hunk |
|
||||
| ~[t~ | Go to the previous frame |
|
||||
| ~]t~ | Go to the next frame |
|
||||
| ~[w~ | Go to the previous window |
|
||||
| ~]w~ | Go to the next window |
|
||||
| ~[e~ | Move line up |
|
||||
| ~]e~ | Move line down |
|
||||
| ~[SPACE~ | Insert space above |
|
||||
| ~]SPACE~ | Insert space below |
|
||||
| ~[p~ | Paste above current line |
|
||||
| ~]p~ | Paste below current line |
|
||||
| ~gp~ | Select pasted text |
|
||||
#+TITLE: Unimpaired port contribution layer for Spacemacs
|
||||
|
||||
* Table of Contents :TOC@4:
|
||||
- [[#description][Description]]
|
||||
- [[#key-bindings][Key bindings]]
|
||||
|
||||
* Description
|
||||
|
||||
This layer ports some of the functionality of [[https://github.com/tpope/vim-unimpaired][tpope's vim-unimpaired]].
|
||||
|
||||
This plugin provides several pairs of bracket maps using ~[~ to denote
|
||||
previous, and ~]~ as next.
|
||||
|
||||
* Key bindings
|
||||
|
||||
| KeyBindings | Description |
|
||||
|-------------+-----------------------------|
|
||||
| ~[b~ | Go to previous buffer |
|
||||
| ~]b~ | Go to next buffer |
|
||||
| ~[l~ | Go to the previous error |
|
||||
| ~]l~ | Go to the next error |
|
||||
| ~[h~ | Go to the previous vcs hunk |
|
||||
| ~]h~ | Go to the next vcs hunk |
|
||||
| ~[t~ | Go to the previous frame |
|
||||
| ~]t~ | Go to the next frame |
|
||||
| ~[w~ | Go to the previous window |
|
||||
| ~]w~ | Go to the next window |
|
||||
| ~[e~ | Move line up |
|
||||
| ~]e~ | Move line down |
|
||||
| ~[SPACE~ | Insert space above |
|
||||
| ~]SPACE~ | Insert space below |
|
||||
| ~[p~ | Paste above current line |
|
||||
| ~]p~ | Paste below current line |
|
||||
| ~gp~ | Select pasted text |
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
;; funcs.el file for unimpaired contribution layer
|
||||
|
||||
(defun unimpaired/paste-above ()
|
||||
(interactive)
|
||||
(evil-insert-newline-above)
|
||||
(evil-paste-after 1))
|
||||
|
||||
(defun unimpaired/paste-below ()
|
||||
(interactive)
|
||||
(evil-insert-newline-below)
|
||||
(evil-paste-after 1))
|
||||
;; funcs.el file for unimpaired contribution layer
|
||||
|
||||
(defun unimpaired/paste-above ()
|
||||
(interactive)
|
||||
(evil-insert-newline-above)
|
||||
(evil-paste-after 1))
|
||||
|
||||
(defun unimpaired/paste-below ()
|
||||
(interactive)
|
||||
(evil-insert-newline-below)
|
||||
(evil-paste-after 1))
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
;;; packages.el --- unimpaired Layer packages File for Spacemacs
|
||||
;;
|
||||
;; Copyright (c) 2012-2014 Sylvain Benner
|
||||
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
||||
;;
|
||||
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
||||
;; URL: https://github.com/syl20bnr/spacemacs
|
||||
;;
|
||||
;; This file is not part of GNU Emacs.
|
||||
;;
|
||||
;;; License: GPLv3
|
||||
|
||||
(setq unimpaired-packages
|
||||
'(
|
||||
;; package unimpaireds go here
|
||||
))
|
||||
|
||||
(setq unimpaired-excluded-packages '())
|
||||
|
||||
;; For each package, define a function unimpaired/init-<package-unimpaired>
|
||||
;;
|
||||
;; (defun unimpaired/init-my-package ()
|
||||
;; "Initialize my package"
|
||||
;; )
|
||||
;;
|
||||
;; Often the body of an initialize function uses `use-package'
|
||||
;; For more info on `use-package', see readme:
|
||||
;; https://github.com/jwiegley/use-package
|
Loading…
Reference in a new issue