Suppose I have the following data: 4702103 BLOB: 1.dat 4702103 BLOB: 3.dat 4702104 BLOB: 4.dat 4702104 BLOB: 5.dat 4702106 BLOB: 6.dat And I want to remove duplicate item against the first column. The dedup data should like: 4702103 BLOB: 1.dat 4702104 BLOB: 4.dat 4702106 BLOB: 6.dat
Then I write the following command: :g/\%(^\1.*$\n\)\@<=\(\d\+\).*$/d But it doesn't work if the regex engine is NFA. On the other hand, if I choose use the old regex engine by: :set re=1 Then I can get the expected results. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.