aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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
2015-04-07Set '< and '> marksMarc André Tanner6-38/+57
2015-04-07Add basic Lua syntax highlighting supportMarcel Rodrigues1-0/+45
2015-04-07Prevent black flicker on loadJohn W. Trengrove1-0/+1
2015-04-05Remove unused struct memberMarc André Tanner1-1/+0
2015-04-05Remove useless duplication of argument to exec_cmdline_commandMarc André Tanner1-6/+2
2015-04-05Fix clang static analyzer warningsMarc André Tanner2-2/+3
2015-04-05Introduce new struct VisTextMarc André Tanner7-170/+178
This adds yet another layer of indirection and stores vi related stuff which is associated with a given text but shared among all windows displaying it (e.g. marks). This will also help if one wants to keep texts arround which aren't currently displayed.
2015-04-04Fix drawing of selectionMarc André Tanner1-10/+7
2015-04-04Cleanup :set implementationMarc André Tanner1-27/+33
Unique prefixes of options should now be recognized.
2015-04-04Move more curses related stuff to ui-curses.cMarc André Tanner2-7/+7
2015-04-04Change behaviour of 'cw' and 'cW'Matias Linares1-0/+8
from vim's help: cw cW Special case: When the cursor is in a word, "cw" and "cW" do not include the white space after a word, they only change up to the end of the word. This is because Vim interprets "cw" as change-word, and a word does not include the following white space.
2015-04-04Mark some pointers in struct Action as constMarc André Tanner1-3/+3
2015-04-03Add option to display relative line numbersMarc André Tanner6-8/+33
:set rnu Based on a patch by Sebastian Götte.
2015-04-03Preliminary user interface separationMarc André Tanner9-637/+839
In theory only ui-curses.[hc] should depend on curses, however in practice keyboard input is still handled in vis.c. Furthermore the syntax definitions as well as keyboard bindings and selection code in window.c still depends on some curses constants. There is also a slight regression in that the window status bar does not show the current mode name. This and related global state should be eliminated in the future.
2015-04-03Fixed multiline comment regexp.noname1-4/+4
Comments like "/***/" with odd number of asterisks are handled like normal comments now. Previously they were handled like unfinished comments.
2015-03-31Do not modify the argument to exec_commandMarc André Tanner1-5/+11
This fixes a segfault when using the ZQ key binding as reported by Silvan Jegen.
2015-03-31Check return value of reallocMarc André Tanner1-5/+3
2015-03-31Add hack to make CTRL-w CTRL-h workMarc André Tanner1-1/+2
2015-03-30Add additional key mappings for window switchingOdin Dutton1-0/+4
2015-03-24Implement 'o' in visual mode: go to other end of selection.Marcel Rodrigues2-0/+17
2015-03-20Add additional key mappings for window switchingMarc André Tanner1-0/+3
This closes #35 and closes #36.
2015-03-18Cleanup :-command implementationMarc André Tanner2-108/+129
Everything that is a unique prefix should now be allowed for a given command.
2015-03-18Crit-bit tree based mapMarc André Tanner2-0/+332
It supports lookups based on unique prefixes as well as ordered iteration. More information about the data structure can be found at: http://cr.yp.to/critbit.htm http://github.com/agl/critbit http://ccodearchive.net/info/strmap.html It will be used to implement ":"-commands which means any unique prefix will be recognized as a command. It could also be used to implement (runtime) key bindings.
2015-02-06Delete key in visual mode should delete selectionMarc André Tanner1-0/+1
This might or might not work depending on terminfo entries etc.
2015-02-03Do not lump together replace actionsWolfgang Corcoran-Mathe1-0/+1
Currently, the replace operator in vis gets lumped with following actions in the {un,re}do tree. Using the 'r' key several times then attempting to undo the last replacement undoes the entire series.
2015-02-03Fix :nnn where nnn > maximal number of linesMarc André Tanner1-5/+9
2015-01-19OpenBSD links against ncursesJames Turner1-0/+1
2015-01-18Fix coverity issue 12388jvoisin1-1/+2
close(fd) can't have a negative fd parameter
2015-01-18Do not leak memory in repeated text_filename_set callsMarc André Tanner1-3/+4
2015-01-18Fix :saveas command definitionMarc André Tanner1-1/+1
2015-01-17Merge branch 'hardening' of https://github.com/jvoisin/visMarc André Tanner1-0/+9
2015-01-17Introduce basic PHP syntax highlighting supportJörg Alberto1-0/+43
2015-01-16Print debug output to stdoutMarc André Tanner1-4/+4
Stderr is used for the editor output to make usage as a filter possible.
2015-01-16Avoid possible double close when savingMarc André Tanner1-0/+1
We want close(2) to happen before rename(2). At some point the save implementation will have to be overhauled.
2015-01-16Always close file descriptor after :read commandMarc André Tanner1-2/+1
2015-01-16Reorder if/else clause in order to avoid dead codeMarc André Tanner1-4/+4
2015-01-16In vim, "syntax" can be abbreviated as "syn".jvoisin1-1/+1
2015-01-15add C source and header file to dependsChristian Hesse1-1/+1
This fixes make to rebuild when files change. Signed-off-by: Christian Hesse <mail@eworm.de>
2015-01-15remove vis from .PHONYChristian Hesse1-1/+1
vis is a real file, so remove it from .PHONY in Makefile. This fixes make to not rebuild on every invocation. Signed-off-by: Christian Hesse <mail@eworm.de>