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 ArticleVI: 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 ArticleVI: 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 ArticleVI: 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