[gnome-builder/wip/libide] libide: add p and P paste for vim using paste-selection-extended



commit be88a24bf1dec78ee63e5437f64c83e5917045ed
Author: Christian Hergert <christian hergert me>
Date:   Thu Mar 5 14:32:31 2015 -0800

    libide: add p and P paste for vim using paste-selection-extended

 data/keybindings/vim.css |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 1933681..b3df2d2 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -103,11 +103,8 @@
   /* redo */
   bind "<ctrl>r" { "redo" () };
 
-  bind "p" { "save-insert-mark" ()
-             "paste-clipboard" ()
-             "restore-insert-mark" ()
-             "movement" (next-line, 0)
-             "movement" (first-nonspace-char, 0) };
+  bind "p" { "paste-clipboard-extended" (1, 1, 0) };
+  bind "<shift>p" { "paste-clipboard-extended" (1, 0, 0) };
 
   /* overwrite */
   bind "<shift>r" { "set-mode" ("vim-insert", permanent)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]