summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2015-01-13Cleanup nn| implementationMarc André Tanner
This command does not really do what it advertises because it operates on bytes not columns.
2015-01-13Add new logical linewise movementsMarc André Tanner
The column position is currently not correctly preserved when there are lines with multibyte characters involved spanning multiple screen lines. In general this might still be a bit fragile.
2015-01-13Rename window_line_* functionsMarc André Tanner
2015-01-12Change ledger syntax regex to work with BSD regexPhilip Linde
2015-01-11Print prettier status bar when given no file nameMarc André Tanner
2015-01-11More useful error message when opening non regular filesMarc André Tanner
2015-01-11Merge branch 'ledger-syntax' of https://github.com/clehner/visMarc André Tanner
2015-01-10Add syntax rules for Ledger journalsCharles Lehner
2015-01-09Add rudimentary markdown syntax supportjvoisin
The spec is here: http://daringfireball.net/projects/markdown/syntax Currently, it doesn't support Setext headers and hard-wrapped quotes.
2015-01-06Update README to reflect current stateMarc André Tanner
2015-01-06Rudimentary change list (accessible via g; and g,)Marc André Tanner
2015-01-06Change :open to create a new window if no argument is givenMarc André Tanner
Use it for the creation of a new window without changing the layout as split and vsplit do. Map it to CTRL+w n.
2015-01-06Add default settings for editor startupMarc André Tanner
2015-01-06Support per file type settingsMarc André Tanner
This adds yet another layer of indirection. exec_cmdline_command should take a const char pointer and not modify its argument.
2015-01-06Fix some compiler warningsMarc André Tanner
2015-01-05define underscores to be part of a wordMatthias Braun
2015-01-04no need to allocate len+1 if we're not appending '\0'Matthias Braun
2015-01-04implement rudimentary autoindentMatthias Braun
2015-01-04Support relative line jumps :+nn / :-nnMarc André Tanner
2015-01-04Simplify jump to line :nnnMarc André Tanner
As a side effect this also allows to jump to marks via :'m
2015-01-04Change window_cursor_getxy APIMarc André Tanner