From 5f1a69a38ee5cccfdb9005a2f4ef68bda9835c3b Mon Sep 17 00:00:00 2001 From: Tenor Biel Date: Mon, 17 Jun 2013 23:11:05 -0500 Subject: [PATCH] Add vim commands for folding --- lib/ace/keyboard/vim/commands.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/ace/keyboard/vim/commands.js b/lib/ace/keyboard/vim/commands.js index b3c12049..795eafc8 100644 --- a/lib/ace/keyboard/vim/commands.js +++ b/lib/ace/keyboard/vim/commands.js @@ -83,6 +83,18 @@ var actions = exports.actions = { case "b": editor.renderer.alignCursor(null, 1); break; + case "c": + coreCommands.fold(); + break; + case "o": + coreCommands.unfold(); + break; + case "C": + coreCommands.foldall(); + break; + case "O": + coreCommands.unfoldall(); + break; } } },