:
nnoremap H mal??e+1<Enter>mb
.
.vimrc , .
:
, / /, .
:
nnoremap H mal??e+1<Enter>mb
- nnoremap H map H in normal mode, ignoring other mappings
- ma place a mark (named a) at the current cursor location
- l move the cursor one char to the right
- ??e+1<Enter> move to 1 character after END of prev occurrence of last search pattern
- mb place a mark (named b) at the current cursor location
-
- y`b yank to the location of the mark named x (note: ` = "back tick")
- `a go to the mark named `a`
:
This is a *funky* string
funky yank.
!
:
<br>
Capture all this text.
<br>
!
:
<p>
Capture this paragraph.
</p>
<.\?p> ( <\/\{,1}p>).- H , (
<p>)
...
, / . , / \ <\?p> .