this post was submitted on 29 Dec 2023
3 points (100.0% liked)

Neovim

2106 readers
7 users here now

founded 1 year ago
MODERATORS
 

Hi people,

I use vim to write and edit text files written in common ASCII-Languages mixed with some words written in old greek letters (α, Σ, η, ...). I want to find a way to search for every word written in old greek letters, so I can use / nN to cycle through them. Any ideas how to do this in the most elegant way?

I tried the regex pattern [α-ω]+ but I kinda already expected that this won't work...

top 1 comments
sorted by: hot top controversial new old
[–] autokludge@programming.dev 2 points 8 months ago* (last edited 8 months ago)

EDIT: does /[α-ω]\+ work?

~~Are the words wholly comprised of given characters? Could you supply an excerpt?~~

~~I gave it a shot and pattern [/w]*[α-ω][/w]* seemed to work.~~