A sample vim colorscheme
Vim colorscheme is used to give different colors to background, foreground text. A sample color scheme will look something like this You can check the .vim files of the various available colorscheme. You can experiment with some of them by editing some of their values. Preferably create a new one copying some of the values [...]
How to set a colorscheme in VIM?
After finding out the available colorscheme of VIM in your machine, the next step is to set a colorscheme. Let’s assume that you have the following colorschemes available darkblue blue dessert Now to set the colorscheme to blue Enter the following in Normal mode As you can see the syntax for setting a colorscheme is [...]
How to find the available vim colorschemes?
Vim comes bundled with various colorschemes. And you can use any of these colorschemes to be set for your day to day work or to create new colorschemes. But before that you must find where are the definitions for the colorschmes Let’s take a look in the following directory You can see a directory called [...]
Autocomplete (Suggestions) feature in Vim
While writing programs, you will be using the function names, variable names and keywords (language specific like in C/C++ , int, void, floatĀ are commonly used keywords) again and again. The best feature for any editor is to have an auto-complete option. If you wonder what is an auto-complete option, it is the option to [...]
Case Insensitive Search in Vim
By default, the search in Vim editor is case sensitive. But you can also perform case insensitive searches. Suppose you are searching for the pattern Vim or vim or vIm. Go to the ESCAPE mode (by pressing ESC key) Enter :set ic (Note that the semicolon in the beginning is must), ic corresponds to ignore [...]
Case Sensitive Search in Vi/Vim
By default, the search in Vim editor is case sensitive. But in cases, where the search is turned to case insensitive using the vim settings file: .vimrc, it can be overridden by the following way Suppose you are searching for the pattern Vim Go to the ESCAPE mode (by pressing ESC key) Enter :set noic [...]
Vim Tips: How to scroll half a screen?
To scroll a text page by page in the escape mode, we can make use of CTRL+F and CTRL+B. But for better and easier navigation, we would to move half a screen at a time. Make use of the following shortcuts CTRL+D : Scroll Down half a Page/Screen CTRL+U: Scroll Up half a page/Screen Tips [...]