[gnome-builder/wip/vim] vim: implement `p` command for paste clipboard.



commit a92055e5b4a42519611928ad2e0aae07cd8c4bee
Author: Christian Hergert <christian hergert me>
Date:   Mon Sep 29 22:39:49 2014 -0700

    vim: implement `p` command for paste clipboard.

 src/editor/gb-editor-vim.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-editor-vim.c b/src/editor/gb-editor-vim.c
index 2aa9039..7b23622 100644
--- a/src/editor/gb-editor-vim.c
+++ b/src/editor/gb-editor-vim.c
@@ -896,6 +896,13 @@ gb_editor_vim_handle_normal (GbEditorVim *vim,
       gb_editor_vim_insert_nl_after (vim);
       return TRUE;
 
+    case GDK_KEY_p:
+      /*
+       * Paste the current clipboard selection.
+       */
+      g_signal_emit_by_name (vim->priv->text_view, "paste-clipboard");
+      return TRUE;
+
     case GDK_KEY_r:
       /*
        * Try to redo a previously undone operation if we can.


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