regex - How to search for all uppercase words in vim? -
i search uppercase words in file have no idea how (or if it's possible). found solution here on stackoverflow, doesn't work on vim.
from command mode, assuming not have option ignorecase set:
/\<[a-z]\+\> or
/\v<[a-z]+> finds string of capital letters greater length 1 surrounded word boundaries. second form uses 'very-magic'. :help magic details
Comments
Post a Comment