aboutsummaryrefslogtreecommitdiff
path: root/vis.c
AgeCommit message (Collapse)AuthorFilesLines
2014-09-25Realign a few code blocks, no functional changesMarc André Tanner1-39/+39
2014-09-25Add infrastructure for word (lowercase) motionsMarc André Tanner1-0/+8
This unfortunately doesn't work as is which is why it is not actually hooked up to key bindings.
2014-09-25Perform some renames in preparation for different word typesMarc André Tanner1-11/+11
2014-09-25Exit command prompt if last character is deletedMarc André Tanner1-0/+11
2014-09-25Do not warn if no command is givenMarc André Tanner1-1/+1
2014-09-25Implement '*'Marc André Tanner1-0/+25
This still has a couple of problems: - it uses the regular expression search (because 'n' and 'N' should operate on the same search term) - the word should be deliminited not only by spaces but also by special symbols. this should be fixed once the word/WORD distinction gets implemented
2014-09-25Make '$' move to the last character of a lineMarc André Tanner1-0/+2
It is an inclusive movement, thus 'd$' works as expected.
2014-09-25Revert "Change semantics of text_line_end"Marc André Tanner1-3/+3
This reverts commit 3a24e6a5562e4b1ea456fbe36607bd8a9c92744d.
2014-09-24Fix cursor position after 'p'Marc André Tanner1-2/+2
2014-09-24Implement window related keys (CTRL-W ...) in terms of ':'-commandsMarc André Tanner1-14/+5
2014-09-24'f' and 't' should be inclusiveMarc André Tanner1-2/+2
2014-09-24'r' should not move the cursorMarc André Tanner1-0/+2
2014-09-24Implement :new and :vnewMarc André Tanner1-0/+13
2014-09-24Change split/vsplit APIMarc André Tanner1-3/+6
2014-09-24Change semantics of text_line_endMarc André Tanner1-3/+3
Also make movement to end of line inclusive. This has the effect that $ moves to the last character on a line but d$ still deletes said character.
2014-09-24<num>gg should go to <num> lineMarc André Tanner1-5/+14
2014-09-24Implement 'g0', 'gm', 'g$'Marc André Tanner1-0/+6
2014-09-24Rename a few functions to avoid conflictsMarc André Tanner1-9/+9
2014-09-24Rename MOVE_LINE_{UP,DOWN} to MOVE_SCREEN_LINE_{UP,DOWN}Marc André Tanner1-7/+7
No functional change
2014-09-24Implement 'gU' and 'gu'Marc André Tanner1-0/+33
This obviously only works for ascii characters.
2014-09-24Handle filenames with spacesMarc André Tanner1-0/+13
Before :w foo bar would create 2 files whereas now 1 file named "foo bar" will be created. Longterm such ambigious command arguments should be given surrounded with quotes.
2014-09-24Implement :saveas commandMarc André Tanner1-1/+19
2014-09-23Implement 'P', fix 'p'Marc André Tanner1-12/+31
This should also make 'xp' work as expected i.e. to swap characters.
2014-09-23'o' should switch to insert modeMarc André Tanner1-0/+1
2014-09-23Implement linewise visual modeMarc André Tanner1-3/+19
2014-09-22Make idle timeout configurable per modeMarc André Tanner1-1/+2
2014-09-22Make syntax highlighting run time configurableMarc André Tanner1-0/+9
:set syntax name
2014-09-19Remove some TODO itemsMarc André Tanner1-3/+0
2014-09-19Support files with Windows style newlines \r\nMarc André Tanner1-2/+2
2014-09-19Windows style newlines are actually \r\n not \n\rMarc André Tanner1-2/+2
This is fiddely stuff, hopefully it doesn't break too much
2014-09-19Implement expand tab functionality, make tabwidth configurableMarc André Tanner1-3/+39
If expandtab is enabled then inserted tabs are replaced by tabwidth amount of spaces. Both settings apply to all windows files and can be changed via: :set tabwidth n # where 1 <= n <= 8 :set expandtab (1|yes|true)|(0|no|false)
2014-09-18Fix :0 on command prompt to move to begin of fileMarc André Tanner1-1/+1
2014-09-18Cleanup handling of action.countMarc André Tanner1-12/+11
If no multiplier is given action.count is zero. This fixes 1G vs G.
2014-09-18Ignore tab key in command prompt for nowMarc André Tanner1-1/+2
2014-09-18Display error messages when loading a file failsMarc André Tanner1-15/+18
2014-09-18Clean up window splitting APIMarc André Tanner1-11/+23
2014-09-17Implement left shift operatorMarc André Tanner1-0/+29
2014-09-17Implement right shift operatorMarc André Tanner1-0/+25
2014-09-16This fixes warning with latest glibc (>= 2.19.90), which deprecated _BSD_SOURCEChristian Hesse1-0/+1
warning: _BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE
2014-09-16Fix compilation on OpenBSDGregor Best1-0/+2
Signed-off-by: Gregor Best <gbe@unobtanium.de>
2014-09-16Implement CTRL-{U,D,E,Y} in normal modeMarc André Tanner1-6/+38
2014-09-14Display current mode in window statusbarMarc André Tanner1-4/+2
For now just display the modes which start with '-'. I want to keep the descriptive names of the other modes available for debugging purposes.
2014-09-13Rename OP_PASTE to OP_PUTMarc André Tanner1-4/+4
2014-09-13Introduce some helper functions dealing with FilerangeMarc André Tanner1-6/+5
2014-09-13Rename text_insert_raw to text_insertMarc André Tanner1-1/+1
2014-09-13Introduce and use EPOS instead of (size_t)-1Marc André Tanner1-6/+6
2014-09-13Fix 'G' movement to end of fileMarc André Tanner1-1/+1
action.count is 1 by default. notice that this breaks 1G which should move to the first line / start of file.
2014-09-13Add movements 'H', 'M', 'L'Marc André Tanner1-0/+24
H moves to the n-th window line from top M moves to the middle window line L moves to the n-th window line from bottom
2014-09-13In normal mode 'r' should also replace new linesMarc André Tanner1-1/+2
2014-09-12Display a few error messages where appropriateMarc André Tanner1-5/+19