10 Commits

Author SHA1 Message Date
Ingo Karkat 1d72dbaf06 Add ingo#text#frompattern#GetAroundHere()
inspired by http://stackoverflow.com/questions/30073662/vim-copy-match-with-cursor-position-atom-to-local-variable
2017-05-26 17:36:56 +02:00
Ingo Karkat 339b42440e Also set the change marks to the replaced area
Make col argument 1-based for consistency.
2017-05-26 17:36:54 +02:00
Ingo Karkat fcd45e05e7 ingo#text#frompattern#GetHere(): Do not move the cursor (to the end of the matched pattern); this is unexpected and can be easily avoided 2017-05-26 17:34:17 +02:00
Ingo Karkat abb4dce7eb 2017-05-26 17:33:59 +02:00
Ingo Karkat bd836e6c04 2017-05-26 17:32:37 +02:00
Ingo Karkat f140991e6c Factor out and expose ingo#text#Replace#Area()
Allow a:Text Funcref in ingo#text#replace#PatternWithText().
CHG: When replacing at the cursor position, also jump to the beginning of the replacement. This is more consistent with Vim's default behavior.
2017-05-26 17:29:21 +02:00
Ingo Karkat bc29842c16 2017-05-26 17:29:21 +02:00
Ingo Karkat 969d1decb4 file creation 2017-05-26 17:29:21 +02:00
Ingo Karkat 3616879748 Add ingo#text#frompattern#GetHere() 2017-05-26 17:27:30 +02:00
Ingo Karkat 18e0cec4fc file creation 2017-05-26 17:26:30 +02:00