aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-09-24'r' should not move the cursorMarc André Tanner1-0/+2
2014-09-24Implement :new and :vnewMarc André Tanner3-0/+17
2014-09-24Change split/vsplit APIMarc André Tanner3-29/+27
2014-09-24Change semantics of text_line_endMarc André Tanner3-7/+7
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é Tanner2-7/+16
2014-09-24Implement 'g0', 'gm', 'g$'Marc André Tanner4-2/+31
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é Tanner2-17/+17
No functional change
2014-09-24Implement 'gU' and 'gu'Marc André Tanner2-0/+35
This obviously only works for ascii characters.
2014-09-24Handle filenames with spacesMarc André Tanner2-14/+27
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-24Update README to reflect current ':'-command statusMarc André Tanner1-0/+16
2014-09-24Implement :saveas commandMarc André Tanner2-1/+20
2014-09-23Implement 'P', fix 'p'Marc André Tanner2-13/+33
This should also make 'xp' work as expected i.e. to swap characters.
2014-09-23Implement append in insert mode 'a'Marc André Tanner1-0/+1
2014-09-23'o' should switch to insert modeMarc André Tanner1-0/+1
2014-09-23Implement linewise visual modeMarc André Tanner5-17/+63
2014-09-22Add support for the '<', '>' marksMarc André Tanner5-5/+21
2014-09-22Fix display of selection in visual modeMarc André Tanner1-4/+5
2014-09-22Make idle timeout configurable per modeMarc André Tanner2-1/+4
2014-09-22Make syntax highlighting run time configurableMarc André Tanner1-0/+9
:set syntax name
2014-09-20Revert some multiline syntax definitionsMarc André Tanner1-5/+5
Since we do not color content before the visible area, these rules work better for now.
2014-09-19Improve syntax highlightingMarc André Tanner3-108/+122
2014-09-19This fixes warning with latest glibc (>= 2.19.90), which deprecated _BSD_SOURCEChristian Hesse2-0/+2
warning: _BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE Commit 4f537d8e4bd9707a0048289f296510b76ce6d642 just fixed one of three cases. Fix the remaining.
2014-09-19Remove some TODO itemsMarc André Tanner3-7/+1
2014-09-19Support files with Windows style newlines \r\nMarc André Tanner3-2/+19
2014-09-19Windows style newlines are actually \r\n not \n\rMarc André Tanner5-22/+23
This is fiddely stuff, hopefully it doesn't break too much
2014-09-19Implement expand tab functionality, make tabwidth configurableMarc André Tanner6-4/+68
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é Tanner2-1/+3
2014-09-18Do only open an empty buffer if the file does not existMarc André Tanner1-1/+1
Opening a file without having read permissions should fail.
2014-09-18Display error messages when loading a file failsMarc André Tanner1-15/+18
2014-09-18Clean up window splitting APIMarc André Tanner3-54/+75
2014-09-17Update README with current operator supportMarc André Tanner1-3/+1
2014-09-17Implement left shift operatorMarc André Tanner2-0/+30
2014-09-17Implement right shift operatorMarc André Tanner2-0/+26
2014-09-17Simplify text_object_line implementationMarc André Tanner1-7/+1
2014-09-16Fix scrolling direction of CTRL-{F,B}Marc André Tanner1-2/+2
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-16Fix editing of files with length 0Gregor Best1-3/+5
Signed-off-by: Gregor Best <gbe@unobtanium.de>
2014-09-16Implement CTRL-{U,D,E,Y} in normal modeMarc André Tanner4-40/+72
2014-09-16Clean up cursor handling in window.[ch]Marc André Tanner2-68/+107
2014-09-16Import syntax rules from sandyMarc André Tanner3-25/+184
2014-09-15More efficient syntax highlighting, first match winsMarc André Tanner5-34/+51
2014-09-14Display current mode in window statusbarMarc André Tanner2-11/+14
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-14Fix save to absolute pathsMarc André Tanner1-9/+14
The save logic still needs changes to restore file permissions, ownership (if run as root) etc.
2014-09-14Add a dummy man page inorder to fix make installMarc André Tanner1-0/+16
2014-09-14Make byte based iterator API handle the whole range [0, size]Marc André Tanner2-6/+34
Before this commit the valid range was [0, size) which represents the file content. For the position at EOF (=size) a NUL byte is returned which is not actually part of the underlying file. This should fix various movements / editing operations at the end of the file. For example Ctrl+w at the end of the command prompt.
2014-09-14Use EPOS where appropriateMarc André Tanner1-4/+4