- Official encrypted wallet generator
- Ars gratia artis
- How to transfer balance from Geth account to an actual place?
- How do I spend ether from an internal transaction?
- Truffle deploy via Infura : does it work?
- web3 solidity variable can't set value
- Trading an etheruem based token
- Promissory Note
- Текст после P.S. пишется с большой буквы?
- Treatment for pain and depression
- Is a double aura unusual?
- What type of food (herb, root) helps with sleep?
- Why do deep-friction treatments stimulate fibroblast activity and collagen production?
- What are the symptoms of depression/ OCD / suicidal depression? How we can identify a person by his behavior?
- Air Nails or Staples?
- vim: count how many buffers been modified?
- Question about bounday layer thickness?
- How to make “shell-command-on-region” display output as a message on a non-zero exit code?
- Org agenda - edit the headline itself
- The World of Floating Islands
Jumping to one character past the search
I understand that f jumps to the first matching character, and t jumps to one character just before the first matching character
For example, given the string VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, I would like to change it to VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL. with the caret on V I should press 4f_lct_SRC to achieve that
But I'm wondering if there is a key that allows me to jump to one character just after the first matching character, so I can omit the l offset, (which frankly trips me up sometimes) and turn the sequence into 4 %SOMETHING% _ct_SRC
I understand that this can be accomplished by macros (or in this specific example circumvented by a substitution), but I'm wondering if this functionality exists out of the box
You can use search, e.g. /_DST/s+ to move the cursor to the D of the DST part. The part after the search pattern is the offset, so s+ moves the cursor 1 character to the right of the start of the pattern, while, e.g. e-2 would move the curs
You can use search, e.g. /_DST/s+ to move the cursor to the D of the DST part. The part after the search pattern is the offset, so s+ moves the cursor 1 character to the right of the start of the pattern, while, e.g. e-2 would move the cursor 2 character to the left of the end of the pattern.
See the help at :h search-offset2017-04-21 12:34:11