vazic

Find duplicates in VIM

May 4th, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.17 KB | None | 0 0
  1. :syn clear Repeat | g/^\(.*\)\n\ze\%(.*\n\)*\1$/exe 'syn match Repeat "^' . escape(getline('.'), '".\^$*[]') . '$"' | nohlsearch
  2. ===
  3. Vim command to mark duplicate lines
Advertisement
Add Comment
Please, Sign In to add comment