Closed vi closed 11 years ago
^
is start of file, not line. To add //
to the start of lines, replace \n
with \n//
This behavior is necessary to allow to search/replace multiline patterns.How to do range replace in Enki?
Even with special command for [un]commenting blocks (in all languages? really?) substitude with a range can be useful.
Can be in form of
Also maybe incremental search highlighting should start searching for matches from the current cursor position (wrapping around EOF up until current position), not from the beginning? That way regex with high number of matches will be closer to current position...
When search or replace shortcut is used, selection is copied to search input. If selection is also used for range replace, behavior will be to o complicated 08.09.2013 13:57 пользователь "Vitaly Shukela" notifications@github.com написал:
How to do range replace in Enki?
Even with special command for [un]commenting blocks (in all languages? really?) substitude with a range can be useful.
Can be in form of
- Select some text;
- "Open selected text as a separate buffer";
- Apply global search&replace in the mapped buffer.
— Reply to this email directly or view it on GitHubhttps://github.com/hlamer/enki/issues/118#issuecomment-24018827 .
I do the following:
Expected: like
'<,'>s!^!//!
in VimActual: the first line gains "//".