I am editing a file and i want to change only a specific word with another word, but only for first N occurrences. I tried multiple commands
N :s/word/newword/
My PatternsOnText plugin provides (among many others) a command that takes answers in the form of either yyynyn or 1-5:
yyynyn
1-5
:%SubstituteSelected/word/newword/g 1-5