Got some problems executing this command in vi:
:s/dapper/edgy/c
which I expect to search and replace text with confirmation when I have edited my ubuntu sources.list
The problem is solve using the command:
:%s/dapper/edgy/c
or
:.,$s/dapper/edgy/c
Conclusion:
Commands in vi generally starts with what range of line numbers are to be searched/processed.
. represents the current line of file
$ last line of file
^ first line of file (never tried it though you can 1 to be sure)
% represents all lines of the current file.
Enjoy