[gnome-builder/gnome-builder-3-20] vim: Add :open as an alias for :edit.



commit d27aa6087465156ba52e293ec55c675151ec9f00
Author: Matthew Leeds <mleeds redhat com>
Date:   Tue May 31 11:48:12 2016 -0400

    vim: Add :open as an alias for :edit.
    
    In vim, :open <file> works like :edit <file>. This commit makes Builder
    mimic that behavior.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767080

 plugins/command-bar/gb-vim.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/command-bar/gb-vim.c b/plugins/command-bar/gb-vim.c
index 62772a7..10bd514 100644
--- a/plugins/command-bar/gb-vim.c
+++ b/plugins/command-bar/gb-vim.c
@@ -1054,6 +1054,7 @@ static const GbVimCommand vim_commands[] = {
   { "ls",          gb_vim_command_buffers, NULL },
   { "make",        gb_vim_command_make, NULL },
   { "nohl",        gb_vim_command_nohl, NULL },
+  { "open",        gb_vim_command_edit, NULL },
   { "quit",        gb_vim_command_quit, NULL },
   { "set",         gb_vim_command_set, NULL },
   { "sort",        gb_vim_command_sort, NULL },


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