The following code should echo the same result, but it does not unless file contains no combining acute accents. :echo search('\%u0301') " will echo number of line with acute accent :echo search('[\u0301]') " will always echo 0 The following works just fine (both echoes 0): :echo match("\u0301", '\%u0301') :echo match("\u0301", '[\u0301]') Tested both on vim-7.3 from gentoo repos and vim-7.3/2577:073ff46fe397.
signature.asc
Description: This is a digitally signed message part.