From dc54e7f09c8cacffe3ebe4a960397ffc85313117 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 24 Sep 2011 13:45:25 +0000 Subject: [PATCH] % key selects whole buffer --- src/main.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cc b/src/main.cc index 7bcf340ca..dd955acc2 100644 --- a/src/main.cc +++ b/src/main.cc @@ -417,6 +417,9 @@ std::unordered_map> keymap { 'y', do_yank }, { 'p', do_paste }, + { '%', [](Window& window, int count) { window.select(false, [](const BufferIterator& cursor) + { return Selection(cursor.buffer().begin(), cursor.buffer().end()-1); }); } }, + { ':', [](Window& window, int count) { do_command(); } }, { ' ', [](Window& window, int count) { window.empty_selections(); } }, { 'w', [](Window& window, int count) { do { window.select(false, select_to_next_word); } while(--count > 0); } },