aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-05-16Cleanup general purpose buffer APIMarc André Tanner6-21/+30
Introduce buffer_init to initialize a stack allocated buffer. Rename buffer_{alloc,free} functions because they do something different than the usual convention. They operate on the underlying buffer data but do not allocate/free an actual Buffer struct.
2015-05-16Let each :-command decide what to do if no range is specifiedMarc André Tanner1-1/+2
2015-05-16Improve parsing of :-command name and parametersSilvan Jegen1-8/+16
2015-05-14In command mode make the '.' range specifier match the current lineMarc André Tanner1-1/+5
2015-05-07Add '--' as end of optionsMatias Linares2-1/+8
Now it works properly, `vis -- -v` edit a file named `-v`. Also added the proper info to the man page.
2015-05-06Use the command name without the Filerange in argvSilvan Jegen1-1/+1
Signed-off-by: Silvan Jegen <s.jegen@gmail.com>
2015-04-29Move redrawing out of operator implementationsMarc André Tanner1-13/+15
Note that currently all windows are redrawn, this could be further optimized to only redraw the affected windows.
2015-04-29Make operators return new cursor positionMarc André Tanner2-37/+42
2015-04-23Update header include guard to match file nameMarc André Tanner1-2/+2
2015-04-22Cleanup line ending type detection and insertionMarc André Tanner3-11/+33
2015-04-22Fix echo foo | vis -Marc André Tanner1-6/+8
A single '-' indicates read from stdin. Also adjust coding style.
2015-04-22for editor command compare string, not just first characterChristian Hesse1-1/+1
Signed-off-by: Christian Hesse <mail@eworm.de>
2015-04-22make vis print version with command option -vChristian Hesse1-3/+6
The man page states this is possible, so add the code. Signed-off-by: Christian Hesse <mail@eworm.de>
2015-04-22get version from gitChristian Hesse1-1/+8
Signed-off-by: Christian Hesse <mail@eworm.de>
2015-04-22Rename window.[ch] to view.[ch]Marc André Tanner6-7/+7
2015-04-22Yet more renames (EditorWin -> Win)Marc André Tanner3-52/+52
2015-04-22More renames, no functional changesMarc André Tanner8-530/+530
Win -> View, window_* -> view_*
2015-04-22More renaming vis->win->view instead of vis->win->winMarc André Tanner4-78/+77
2015-04-22Better variable naming (VisText -> File)Marc André Tanner4-143/+143
Therefore vis->win->text->data becomes vis->win->file->text.
2015-04-21Remove redundant RegexMatch definitionMarc André Tanner1-5/+1
2015-04-21Improve loading of filesMarc André Tanner1-1/+6
This fixes a segmentation fault when opening a directory. Also, opening a file you are not permitted to read, will now give an error, instead of showing the file as empty. Based on a patch by Willem van de Krol.
2015-04-21Make '.' respect countMarc André Tanner1-0/+3
2015-04-21Mark some movements as idempotentMarc André Tanner1-3/+3
2015-04-21Make 'n', 'N', '*', '#' respect countMarc André Tanner1-25/+21
2015-04-21Handle failure of a movement gracefullyMarc André Tanner1-0/+1
This for example fixes movements to unset marks.
2015-04-21Cleanup implementation of movements to marksMarc André Tanner2-12/+12
2015-04-21Further clean up to/till movementsMarc André Tanner1-22/+16
This makes them respect count i.e. something like 3f{char} should work.
2015-04-21Cleanup implmentation of line and column movementsMarc André Tanner1-9/+8
2015-04-21Implement ';' and ','Marc André Tanner4-0/+37
This fixes #45
2015-04-21Clean up to/till movementsMarc André Tanner4-18/+40
2015-04-15Highlight null directive.noname1-1/+1
2015-04-15Try to remember column position when moving across linesMarc André Tanner1-2/+15
This currently only works for non-wrapped lines.
2015-04-12Add javascript syntax highlightingJohn W. Trengrove1-0/+27
2015-04-11Rename README -> README.mdMarc André Tanner1-0/+0
2015-04-11Update README, convert to MarkdownMarc André Tanner1-154/+188
2015-04-11Recognize g~ as case swap operatorMarc André Tanner1-0/+1
2015-04-11Eliminate global running variableMarc André Tanner2-5/+5
2015-04-11Remove global mode stateMarc André Tanner4-33/+34
Once again show mode in window status bar.
2015-04-11Move structs to editor.h remove global action{,_prev}Marc André Tanner3-168/+172
2015-04-11Further ui separation, eliminate global stateMarc André Tanner2-36/+33
2015-04-11Eliminate global state for repetition of last modificationMarc André Tanner4-14/+16
2015-04-11Eliminate global state for :set optionsMarc André Tanner3-7/+7
2015-04-11Lazy initialization of :-commandsMarc André Tanner3-19/+18
2015-04-10Fix crit-bit tree URL referenceMarc André Tanner1-1/+1
2015-04-10Make ":set syntax" without any argument display the currently active oneMarc André Tanner1-2/+12
2015-04-10Highlight matching cursor symbolMarc André Tanner3-16/+41
2015-04-10Travis CI: disable clang build for nowMarc André Tanner1-1/+0
2015-04-07Fix cell attributes for tabsMarc André Tanner1-0/+2
This should fix some selection artifacts.
2015-04-07Show cursor in visual modeMarc André Tanner2-3/+8
2015-04-07Add Travis CI integration in preparation for Coverity Scan automationMarc André Tanner1-0/+8