Timeline for How to jump to a next or previous specific character ignoring linebreaks and not destroying highlight or overwriting my registry?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 4, 2017 at 18:17 | history | edited | Tumbler41 | CC BY-SA 3.0 |
Added new response after edit.
|
May 4, 2017 at 18:04 | comment | added | Tumbler41 |
I see. I recommend editing your question as it's really not clear that you want to search for just ( . nnoremap ( :call search('(')<CR> should work for you for next. 'b' is for searching backwards.
|
|
May 4, 2017 at 17:53 | comment | added | Anon |
nnoremap ( :call search('(', 'b')<CR> " Next instance I tried adapting your code, because I do not want yank a character under my cursor. I just want to jump to that bracket. Can not seem to make it work though, because the cursor most of the time does not land on the actual character, just the line. Could not get reliable results with the find command appended either.
|
|
May 4, 2017 at 15:04 | history | edited | Tumbler41 | CC BY-SA 3.0 |
Fixed typo
|
May 4, 2017 at 14:56 | history | answered | Tumbler41 | CC BY-SA 3.0 |