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

Neovim

2178 readers
2 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 3 points 10 months ago* (last edited 10 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.~~