aboutsummaryrefslogtreecommitdiff
path: root/vis.c
AgeCommit message (Collapse)AuthorFilesLines
2015-03-18Cleanup :-command implementationMarc André Tanner1-90/+107
Everything that is a unique prefix should now be allowed for a given command.
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-01-18Fix coverity issue 12388jvoisin1-1/+2
close(fd) can't have a negative fd parameter
2015-01-16Always close file descriptor after :read commandMarc André Tanner1-2/+1
2015-01-16In vim, "syntax" can be abbreviated as "syn".jvoisin1-1/+1
2015-01-13Cleanup nn| implementationMarc André Tanner1-8/+2
This command does not really do what it advertises because it operates on bytes not columns.
2015-01-13Add new logical linewise movementsMarc André Tanner1-0/+6
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é Tanner1-8/+8
2015-01-06Rudimentary change list (accessible via g; and g,)Marc André Tanner1-1/+13
2015-01-06Change :open to create a new window if no argument is givenMarc André Tanner1-6/+2
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é Tanner1-0/+1
2015-01-06Support per file type settingsMarc André Tanner1-10/+49
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é Tanner1-2/+2
2015-01-04no need to allocate len+1 if we're not appending '\0'Matthias Braun1-2/+2
2015-01-04implement rudimentary autoindentMatthias Braun1-4/+28
2015-01-04Support relative line jumps :+nn / :-nnMarc André Tanner1-0/+10
2015-01-04Simplify jump to line :nnnMarc André Tanner1-14/+11
As a side effect this also allows to jump to marks via :'m
2015-01-04Fix openline command on the first lineMichal Bohuslávek1-3/+8
When on the first line, openline command wouldn't move the cursor to the newly created line above the current line.
2015-01-04Make :set option parsing more robustMarc André Tanner1-21/+115
Among other things boolean options can now be prefixed with "no". For example ":set nonu" disables line numbers etc. Based on a patch from Sebastian Götte.
2015-01-03Add the :x(it)? commandMatthias Braun1-0/+11
2015-01-03Make single character replacement repeatableMarc André Tanner1-0/+3
2015-01-02Make last insertion/replacement repeatable with '.'Marc André Tanner1-0/+31
2015-01-02Rip out insertion repeating infrastructureMarc André Tanner1-10/+0
2015-01-02Make getkey read one UTF-8 character at a timeMarc André Tanner1-7/+15
2015-01-01Add rudimentary support for jump list (CTRL+{O,I})Marc André Tanner1-16/+32
2015-01-01Rename mark related functionsMarc André Tanner1-8/+8
2014-12-23Fix compiler warningsMarc André Tanner1-1/+1
2014-12-23Simplify # and * commands by using inner text objectsMarc André Tanner1-13/+3
2014-12-23Distinct between inner and outer word text objectsMarc André Tanner1-4/+8
2014-12-23Optionally display line numbers alongside fileMarc André Tanner1-0/+2
Enable/disable with :set number [0|1]
2014-12-23Move kepress hook to record all keysMarc André Tanner1-3/+4
2014-12-18Macro supportMarc André Tanner1-30/+68
At some point this should be optimized further at the moment there is some 20 byte overhead for each entered key.
2014-12-18Support longer key bindingsMarc André Tanner1-26/+42
2014-11-01Improve usage as a filterMarc André Tanner1-2/+6
When used as in echo Hello World | vis | cat prevent intermediate writes to stdout, only save to stdout when also quiting the editor.
2014-10-27Also join lines if cursor is at beginning of a lineMarc André Tanner1-2/+3
2014-10-27Also join lines if cursor is on newline (after text)Marc André Tanner1-1/+1
2014-10-27Fix segfault when joining linesMarc André Tanner1-1/+1
2014-10-25Accept spaces between range and commandMarc André Tanner1-0/+1
2014-10-25Set correct default range for commandsMarc André Tanner1-3/+6
2014-10-25Support partial writesMarc André Tanner1-1/+1
2014-10-25Support partial savesMarc André Tanner1-1/+1
2014-10-25Change return type of text_saveMarc André Tanner1-1/+1
2014-10-25Fix mode switching bugsMarc André Tanner1-4/+7
2014-10-25Recognize some basic file rangesMarc André Tanner1-7/+88
2014-10-25Add Filerange argument to all commandsMarc André Tanner1-37/+38
2014-10-24Make command prompt available in visual modesMarc André Tanner1-9/+17
2014-10-24Add option to execute commands on startup via +{cmd}Marc André Tanner1-23/+39
The following should work: vis +10 vis +/pattern vis +?pattern vis +'set tabwidth 2'
2014-10-23Use pselect instead of selectMarc André Tanner1-2/+7
2014-10-23Move feature test macros to config.mkMarc André Tanner1-4/+0
2014-10-21Read text to edit from stdin if it isn't a terminalMarc André Tanner1-10/+15
This allows usage as a filter without specifying "-" as file name.