Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
replace comma with tab in vi?
Name: stant Date: February 12, 2004 at 15:04:39 Pacific OS: Sun Solaris 5.8 CPU/Ram: 16GB
Comment:
Hello,
I have a comma-delimited file open in vi. How do I replace , with tab?
This :g/,/s//' '/g seems to work, but I'm not 100% sure.
Summary: Good choice - zsh is way better than csh and deserves to be used more (though bash and tcsh also provide cursor key navigation and tab expansion, as does ksh93 which you can download free from http://...
Summary: A neat capability of vi is to send a specified set of lines to some host command and replace those lines with the output of that host command (stdout or stderr). Create the following one-liner script ...
Summary: Your best bet in vi is to use Ctrl-V to capture the literal code, i.e. :map ^V[F1] :set no^M (that's an actual Ctrl-V, F1 not caret + v etc) This captures things like Home, End, PgUp etc. However what...