aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-01-18vis: simplify code by using text_bytes_alloc0Marc André Tanner1-4/+1
2016-01-18Fix default $VIS_PATH in man pageMarc André Tanner1-5/+10
2016-01-17ui: display current line number instead of relative 0Marc André Tanner1-3/+5
2016-01-17vis: make Y only yank from the current position to the end of lineMarc André Tanner1-1/+1
2016-01-17theme: change solarized theme to use the 256 degenerated colorsMarc André Tanner1-16/+16
2016-01-17ui: support color definitions in terms of the 256 color paletteMarc André Tanner1-0/+3
2016-01-17vis: make :e an alias for :editMarc 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-16view: remove special cursor handling at end of visible areaMarc André Tanner1-2/+0
Close #148
2016-01-16vis: move selected prompt entry to end of the fileMarc André Tanner2-2/+8
Close #70
2016-01-16vis: make o and O work in promptMarc André Tanner1-2/+2
2016-01-15vis: sentence motions are not linewiseMarc André Tanner1-2/+2
Close #141
2016-01-14vis: use different default register when editing a prompt fileMarc André Tanner1-3/+3
2016-01-14vis: move prompt handling to separate fileMarc André Tanner4-175/+183
2016-01-14vis: more cleanupsMarc André Tanner3-8/+6
2016-01-14vis: s/moves/vis_motions/gMarc André Tanner3-7/+4
2016-01-14vis: s/ops/vis_operators/gMarc André Tanner5-14/+14
2016-01-14vis: move motion releated functions to corresponding fileMarc André Tanner2-90/+91
2016-01-14vis: s/VIS_MODE_LAST/VIS_MODE_INVALID/gMarc André Tanner4-7/+7
2016-01-14vis: move vis_operator(..) to corresponding fileMarc André Tanner2-63/+63
2016-01-14vis: move text object definitions to separate fileMarc André Tanner4-38/+44
2016-01-14vis: inline expand_tabMarc André Tanner2-13/+4
2016-01-14vis: focus correct window when closing promptMarc André Tanner1-21/+29
2016-01-14vis-cmds: resolve conflict with BSD getmode(3)Marc André Tanner1-3/+3
Closes #147
2016-01-14build: cleanup $LIBS variableMarc André Tanner2-3/+3
2016-01-13Implement command/search prompt history as a regular fileMarc André Tanner9-267/+263
2016-01-13view: introduce view_selection_getMarc André Tanner2-0/+6
It returns the range covered by the selection of the primary cursor.
2016-01-13ui: make statusbar configurableMarc André Tanner3-11/+17
2016-01-13vis: reindent :-command definitionsMarc André Tanner1-26/+26
2016-01-13vis: implement :map-window and :unmap-windowMarc André Tanner1-5/+24
They allow per window run time configurable key bindings.
2016-01-13vis: allow :-commands containing a hyphenMarc André Tanner1-1/+1
2016-01-13vis: add infrastructure to support per window key bindingsMarc André Tanner4-16/+52
2016-01-13map: implement map_copyMarc André Tanner2-0/+24
Copies all entries from one map to another, overwriting existing entries.
2016-01-13map: fix return value of map_deleteMarc André Tanner1-1/+1
2016-01-13vis: implement :map and :unmapMarc André Tanner1-0/+77
Remember that vis' bindings are always recursive. Hence if you do stupid things you will get yourself into an endless loop.
2016-01-13vis: cleanup key binding definitionsMarc André Tanner6-163/+96
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é Tanner6-17/+21
2016-01-13vis: fix tab expansion if enabledMarc André Tanner1-2/+17
Closes #144
2016-01-10gitignore: Fix patternMichael Reed1-3/+3
From `man gitignore': o A leading slash matches the beginning of the pathname. For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
2016-01-10Simplify code by using text_bytes_alloc0Marc André Tanner3-19/+4
2016-01-10text: introduce text_bytes_alloc0 utility functionMarc André Tanner2-0/+15
Heap allocates a zero terminated string of the given range. Freeing is the caller's responsibility. Checks for unsigned integer overflow i.e. passing SIZE_MAX as len will always fail because there is no room for the terminating NUL byte. This is important as EPOS is defined to be SIZE_MAX.
2016-01-10text-motion: fix integer overflow in text_search_{forward,backward}Marc André Tanner1-6/+6
2016-01-09vis-open: Fix indentationMichael Reed1-3/+3
It was hard to read with everything on the same indentation level.
2016-01-09Merge branch 'vis-open' of https://github.com/Pyrohh/vis into masterMarc André Tanner1-2/+2
2016-01-09vis-open: Print error message to stderrMichael Reed1-1/+1
2016-01-09vis-open: Use basename of $0 in usage messageMichael Reed1-1/+1
If vis-open is placed in a user's PATH and executed then $0 will be vis-open's absolute path: $ vis-open -h usage: /usr/local/bin/vis-open [-h] [-p prompt] [file-pattern] This isn't very pretty, so use basename(1) on $0: $ vis-open -h usage: vis-open [-h] [-p prompt] [file-pattern]
2016-01-09Makefile: Use $(MAKE) instead of directly calling `make`Michael Reed1-11/+11
This is basically the same as b18acc1.
2016-01-06vis: make <C-v> also available at :-command promptMarc André Tanner1-1/+1
2016-01-06vis: apply <C-v> to all cursors not only primary oneMarc André Tanner1-5/+2
2016-01-06vis: enhance <C-v> to recognize a few special keysMarc André Tanner1-28/+58
Up until now <C-v> in insert/replace mode would only recognize numeric codes in various formats. This commits adds support for a few special keys such as <Enter> or <Tab>.