Quantcast
Channel: eTechtips » vi
Browsing all 4 articles
Browse latest View live

Vi: toggle syntax highlighting

If you have ever used vi to edit source code, there are occasions where you get on a system that has a very difficult to read color mode. At these times you want the colors to just go away. You can use...

View Article


VI: Paste code without formatting

I happened to be creating a script and found myself trying to copy and past some functions between them. Well my functions had some comments and this caused the paste operation into vi to add comments...

View Article


VI: Reload Current file

When I am editing and having a “clumsy fingers” day, I find that I have to reload the file that I am editing from disk repeatedly. I usually just do a quick “:q!” and re-run the vi command that opened...

View Article

VI: Indent lines

The other day I was editing some code and as usual I was in Vi. It was python code and I had refactored some code and needed to indent a section of code. I did not relish the idea of trying to make...

View Article
Browsing all 4 articles
Browse latest View live