I'm trying to write a vim syntax file, one problem I'm dealing with is that the syntax of the vim syntax is different from most other languages (I think the one called "perl compatible regex", Python, JavaScript, etc., uses basically the same regex syntax), and therefore I cannot use regex testers like regexpal.
What is the easiest way to try vym regexes? Ideally, I want it twice, in one I will write vim regex, and the other will have text, and the corresponding parts should be highlighted.
Thanks in advance.
EDIT: I added a modified version of Ingo Karkat to my .vimrc :
nnoremap <F5> mryi":let @/ = @"<CR>`r
This version also returns the cursor to where F5 was pressed, with the loss of the r mark.
sinan source share