summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-07Fix cell attributes for tabsMarc André Tanner
This should fix some selection artifacts.
2015-04-07Show cursor in visual modeMarc André Tanner
2015-04-07Add Travis CI integration in preparation for Coverity Scan automationMarc André Tanner
2015-04-07Set '< and '> marksMarc André Tanner
2015-04-07Add basic Lua syntax highlighting supportMarcel Rodrigues
2015-04-07Prevent black flicker on loadJohn W. Trengrove
2015-04-05Remove unused struct memberMarc André Tanner
2015-04-05Remove useless duplication of argument to exec_cmdline_commandMarc André Tanner
2015-04-05Fix clang static analyzer warningsMarc André Tanner
2015-04-05Introduce new struct VisTextMarc André Tanner
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é Tanner
2015-04-04Cleanup :set implementationMarc André Tanner
Unique prefixes of options should now be recognized.
2015-04-04Move more curses related stuff to ui-curses.cMarc André Tanner
2015-04-04Change behaviour of 'cw' and 'cW'Matias Linares
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é Tanner
2015-04-03Add option to display relative line numbersMarc André Tanner
:set rnu Based on a patch by Sebastian Götte.
2015-04-03Preliminary user interface separationMarc André Tanner
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.noname
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é Tanner
This fixes a segfault when using the ZQ key binding as reported by Silvan Jegen.
2015-03-31Check return value of reallocMarc André Tanner
2015-03-31Add hack to make CTRL-w CTRL-h workMarc André Tanner
2015-03-30Add additional key mappings for window switchingOdin Dutton
2015-03-24Implement 'o' in visual mode: go to other end of selection.Marcel Rodrigues
2015-03-20Add additional key mappings for window switchingMarc André Tanner
This closes #35 and closes #36.
2015-03-18Cleanup :-command implementationMarc André Tanner
Everything that is a unique prefix should now be allowed for a given command.
2015-03-18Crit-bit tree based mapMarc André Tanner
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é Tanner
This might or might not work depending on terminfo entries etc.
2015-02-03Do not lump together replace actionsWolfgang Corcoran-Mathe
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é Tanner
2015-01-19OpenBSD links against ncursesJames Turner
2015-01-18Fix coverity issue 12388jvoisin
close(fd) can't have a negative fd parameter
2015-01-18Do not leak memory in repeated text_filename_set callsMarc André Tanner
2015-01-18Fix :saveas command definitionMarc André Tanner
2015-01-17Merge branch 'hardening' of https://github.com/jvoisin/visMarc André Tanner
2015-01-17Introduce basic PHP syntax highlighting supportJörg Alberto
2015-01-16Print debug output to stdoutMarc André Tanner
Stderr is used for the editor output to make usage as a filter possible.
2015-01-16Avoid possible double close when savingMarc André Tanner
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é Tanner
2015-01-16Reorder if/else clause in order to avoid dead codeMarc André Tanner
2015-01-16In vim, "syntax" can be abbreviated as "syn".jvoisin
2015-01-15add C source and header file to dependsChristian Hesse
This fixes make to rebuild when files change. Signed-off-by: Christian Hesse <mail@eworm.de>
2015-01-15remove vis from .PHONYChristian Hesse
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>
2015-01-15Pass $LDFLAGS after source filesMarc André Tanner
This should fix compilation with: LDFLAGS=-Wl,--as-needed make
2015-01-14Remove nano like frontend for nowMarc André Tanner
If time permits I still want to experiment with different editing paradigms and write a proper nano/sandy/sam frontend but at the moment it is just bitrotting and not very useful.
2015-01-14Simplify MakefileMarc André Tanner
Use $CC *.c -o vis to enable global link time optimization. This also fixes issues with parallel builds. config.h is no longer symlinked to config.def.h which allows local modifications.
2015-01-14Accept unique prefixes as :commandsMarc André Tanner
The proper way to do this would be to use a trie, however the ugly regexes do the trick for now.
2015-01-14Fix segfault when using arrow keys in promptMarc André Tanner
2015-01-14Add hardening flags for gcc and clangjvoisin
2015-01-13Make J also join lines spanning multiple screen linesMarc André Tanner
2015-01-13Change default line up/down movements to match vimMarc André Tanner