aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
AgeCommit message (Collapse)AuthorFilesLines
2017-02-08vis: improve <C-d> and <C-t> implementation in insert modeMarc André Tanner1-2/+2
Fix #487
2017-01-19vis: remove <C-o> mapping in insert modeMarc André Tanner1-1/+0
This was never really implemented properly and is not really needed anyway. Close #345
2017-01-16vis: allow macro recording/replay in visual modeMarc André Tanner1-0/+2
Fix #461
2016-12-21vis: implement `gh` and `gl` to move by relative byte offsetsMarc André Tanner1-0/+2
2016-12-21vis: implement `go` to move to absolute byte positionMarc André Tanner1-0/+1
2016-12-21vis: implement g8Marc André Tanner1-0/+1
Shows hex values up to the next UTF-8 encoded character.
2016-11-09vis: improve `r` in normal and replace modeMarc André Tanner1-1/+1
In normal mode `r<key>` was previously implemented as `R<key><Escape>`. However this does not work when the replacement key is `<Enter>` to insert a new line, because in replace mode new lines are not overwritten. The count is now also respected. Also properly support `r` in visual mode where before it was aliased to `c`. Fix #190
2016-08-24vis: implement gJ like behaviorMarc André Tanner1-1/+3
The behavior is not exactly the same because vim preserves any existing white spaces wihle we remove existing ones but do not insert additional ones. The vim behavior (essentially only deleating new lines) can be achived using something like: :x/\n/d Close #374
2016-05-18vis: add completion for file names in current directory via <C-x><C-f>Silvan Jegen1-0/+1
2016-05-18vis: add completion for current file contents via <C-n> in insert modeMarc André Tanner1-0/+1
Based on a patch by Silvan Jegen. Close #128, close #277
2016-04-27vis: change behavior of $ to never move to the leftMarc André Tanner1-2/+1
2016-04-14vis: allow mapping of <Space>Marc André Tanner1-1/+2
One should generally use <Space> in mappings: :map! normal <Space> h except for insert/replace mode where a literal space has to be used: :map! insert " " foo
2016-04-13vis: make = operator an alias for gq, both currently use fmt(1)Marc André Tanner1-1/+2
2016-04-12Add "[(" and "])" motions for jumping to a parenthese pair's start/endRob Pilling1-0/+2
2016-04-12Add "[{" and "]}" motions to jump to a block's start/endRob Pilling1-0/+2
2016-04-07Sort keybinding alphabetically.Joshua Haase1-189/+189
This makes easy both: - to find out what a key does, and - to discover new key movements. Also improves documentation when using `:help` command.
2016-04-05vis: let <C-l> remove all but the count cursor columnMarc André Tanner1-1/+2
2016-04-04vis: let <C-c> remove the count cursor columnMarc André Tanner1-2/+2
2016-04-04vis: in visual mode allow navigation among cursors using <C-j> and <C-k>Marc André Tanner1-0/+2
2016-04-03sam: unify vi(m) and sam command lineMarc André Tanner1-1/+1
The following vi commands have been dropped: - saveas - xit - ! The following commands are only recognized in their short form: - e (edit) - q (quit) - s (substitute) - w (write) - r (read)
2016-04-03vis: in visual mode let \ trim selectionsMarc André Tanner1-0/+1
2016-03-30vis: implement selection rotationMarc André Tanner1-2/+4
In visual mode + and - will rotate the selection count times to the right or left respectively. If there exists a line containing multiple selections then the rotation happens within each line. Otherwise if each line contains at most one selection the rotation is performed among all existing selections.
2016-03-28vis: support right alignment of selections in visual mode with <S-Tab>Marc André Tanner1-2/+3
2016-03-28vis: let Meta-Ctrl-{j,k} create new cursorMarc André Tanner1-0/+2
on the line above/below the first/last existing cursor.
2016-03-28vis: align selections with <Tab> in visual modeMarc André Tanner1-0/+1
2016-03-10vis: let <C-u> and <C-d> in visual mode move to prev/next cursorMarc André Tanner1-4/+4
We do currently not enforce a strict ordering among cursors. Hence these key bindings can move you to an arbitray position. In practice it somewhat works because most of the time cursors are created in "top-down" i.e from the start of the file towards the end.
2016-03-08Add missing angle brackets around broken C-p key bindingMarc André Tanner1-1/+1
2016-03-08Added page up and down keys for visual modeErlend Fagerheim1-0/+4
2016-02-22Added + and - motionsRichard Burke1-0/+2
2016-02-20vis: move cursor to next char after ~ in normal modeMarc André Tanner1-1/+1
This will not work as expected when given a count. Close #181
2016-02-20recursive ib fixErlend Fagerheim1-1/+1
2016-02-18vis: make put commands p, P, gp, gP available in visual modesMarc André Tanner1-4/+4
Close #167
2016-02-18vis: enable number increment <C-a> and decrement <C-x> in normal modeMarc André Tanner1-0/+2
2016-02-18vis: use <Tab> to align multiple cursors in normal modeMarc André Tanner1-1/+1
2016-02-18vis: add insfrastructure to support global key mappingsMarc André Tanner1-0/+4
Except for insert/replace mode keys get translated before any key bindings are evaluated. This is useful for non-english/latin keyboard layouts.
2016-02-15Add text object to cover lines with same indentation levelMarc André Tanner1-0/+2
By default it is mapped to i<Tab> and a<Tab> however there is currently no difference between the inner and regular version.
2016-02-15vis: add <C-c> as an alias for <Escape> in normal modeMarc André Tanner1-2/+2
Based on a patch by Erlend Fagerheim.
2016-02-13vis: in insert mode <S-Tab> aligns all cursors by inserting spacesMarc André Tanner1-0/+1
2016-02-11vis: implement gn and gN text objectsMarc André Tanner1-0/+4
The behaviour when no match is found is not yet optimal.
2016-02-10vis: simplify modes implementationMarc André Tanner1-8/+0
Make replace mode a child of insert mode and visual line a child of visual mode. This means any key binding for the former is automatically available in the latter. Also keys can not be unmapped solely from the child modes.
2016-02-10vis: implement gf and <C-w>gf to open filename under cursorMarc André Tanner1-0/+2
Based on a patch by Silvan Jegen.
2016-01-28vis: implement nn%Marc André Tanner1-1/+1
Moves to the given percentage of the file in bytes (not lines). This is useful when dealing with huge files because it is a constant time operation. Performance could still be improved by adapting the display code not to rely on line numbers at all.
2016-01-20vis: make <End> in insert/replace mode move to the end of lineMarc André Tanner1-1/+2
The behaviour of <End> vs $ in various modes may still be inconsistent, but at least it can now be configured via key bindings.
2016-01-19vis: keep selection in visual mode after shift operatorsMarc André Tanner1-0/+2
2016-01-17vis: make Y only yank from the current position to the end of lineMarc André Tanner1-1/+1
2016-01-17vis: let ~ have an immediate effect in normal modeMarc André Tanner1-0/+1
Similar to vim with the notildeop setting.
2016-01-13Implement command/search prompt history as a regular fileMarc André Tanner1-15/+0
2016-01-13vis: cleanup key binding definitionsMarc André Tanner1-54/+73
This removes the tree based mode structures and instead merges all keybindings in flat modes which uses some more memory but will allow (per mode) run-time configurable key bindings. Make sure to update/remove config.h.
2016-01-13Add -pedantic to debug CFLAGS and fix resulting warningsMarc André Tanner1-12/+12
2016-01-06vis: make <C-v> also available at :-command promptMarc André Tanner1-1/+1