Commit graph

12 commits

Author SHA1 Message Date
dragonxlwang
384581c92c Test for PR #133
A follow up test for PR #133
2016-04-24 14:59:17 -05:00
Ryan Mitchell
2a5fe2c382 Feature/yanking (#138)
* Support yanking

* Remove unneeded code from yank spec
2016-04-24 13:56:22 -05:00
Ryan Mitchell
f8396fb4e4 Copy to text to clipboard on delete 2016-04-23 21:33:04 -04:00
jazzpi
e17a6e5533 Add specs for :wall, :quitall and :wqall 2016-01-03 13:15:14 +01:00
jazzpi
31875cff79 Add specs for aliases 2015-12-28 13:01:56 +01:00
jazzpi
19f1a74812 Merge pull request #118 from jazzpi/rework-commands
Rework command calling, improve :substitute
2015-12-08 13:13:11 +01:00
Thomas David Baker
3c78f9c985 :saveas command and spec test. 2015-12-07 11:20:57 -08:00
jazzpi
ddbdb861fb Improve :substitute
Rework the parsing algorithm so that it works (mostly)
without using RegEx's. This allows for replacing with an
empty string and escape sequences (\t, \n, \r).

Fixes #71, #93, #117
2015-11-21 15:51:42 +01:00
jazzpi
af0ba7c01c Improve format for calling commands
Commands (from the Ex class) are now called with an object
containing the range, arguments, vim state, ex state and
editor instead of a long list of arguments.
2015-11-21 14:48:13 +01:00
Jacob Wahlgren
77d3fa46d5 Refactor illegal delimiters specs 2015-09-22 00:50:21 +02:00
Jacob Wahlgren
e2841dc26c Don't allow :s delimiters not allowed by vim
"Instead of the '/' which surrounds the pattern and replacement string,
you can use any other single-byte character, but not an alphanumeric
character, '\', '"'' or '|'."
- http://vimdoc.sourceforge.net/htmldoc/change.html#:substitute
2015-09-22 00:35:36 +02:00
jazzpi
42a44ee9e1 Add specs; minor changes to some commands
`:tabedit` now works as an alias to `:edit` with a path and
  as an alias to `:tabnew` without.
`:tabnew` is a new command that opens a new tab with a new file if used
 without a path and works as an alias to `:tabedit` with one.
`:tabclose` now works as a proper alias to `:quit` (i.e. passes the arguments)
`:edit` now works more like before - it opens a given path in a new tab.
 It also doesn't do anything if the file was modified since the last commit,
 unless forced by using `:edit!`
`:write` works properly again and doesn't overwrite files, unless forced by
 using `:write!`
`:xit` is now called `:xit` and not just `:x`
`:substitute` now properly replaces multiple groups (`:s/(a)b(c)/X\1\2X\0`)
2015-07-29 19:13:13 +02:00