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); } },