Remove C-p and C-P in paste micro-state, use . instead

This commit is contained in:
syl20bnr 2015-03-08 22:10:15 -04:00
parent a9aa68fff3
commit 29ecf79c2e
2 changed files with 3 additions and 9 deletions

View file

@ -1662,12 +1662,9 @@ Key Binding | Description
<kbd>p</kbd> or <kbd>P</kbd> | paste the text before or after point and initiate the `paste` micro-state
<kbd>p</kbd> | in micro-state: replace paste text with the previously copied one
<kbd>P</kbd> | in micro-state: replace paste text with the next copied one
<kbd>C-p</kbd> | in micro-state: paste the last paste text after point
<kbd>C-P</kbd> | in micro-state: paste the last paste text before point
<kbd>.</kbd> | paste the same text and leave the micro-state
Any other key | leave the micro-state
**Tips** If you want to paste several the same text you can use <kbd>.</kbd>
### Text manipulation commands
Text related commands (start with `x`):

View file

@ -682,17 +682,14 @@ which require an initialization must be listed explicitly in the list.")
(defun spacemacs//paste-ms-doc ()
"The documentation for the paste micro-state."
(format (concat "[%s/%s] Type [p] or [P] to paste the previous or "
"next copied text, [C-p] or [C-P] to paste the same "
"text before of after the point.")
"next copied text, [.] to paste the same text")
(length kill-ring-yank-pointer) (length kill-ring)))
(spacemacs|define-micro-state paste
:doc (spacemacs//paste-ms-doc)
:use-minibuffer t
:bindings
("p" evil-paste-pop)
("P" evil-paste-pop-next)
("C-p" evil-paste-after)
("C-P" evil-paste-before))
("P" evil-paste-pop-next))
;; define text objects
(defmacro spacemacs|define-and-bind-text-object (key name start-regex end-regex)