Software recommendation: GVIM notepad to change the face of speed

Windows operating system has been updated to 10, but unfortunately, the system comes with the notepad tool is still nothing substantial innovation, so many friends hope to find some other alternative tools, now the popular notepad tool GVIM has become the choice of many people. The following author will use their own GVIM a few experiences to share with you.

External image, enhance the “value” of GVIM

First of all, from下载压缩包 “GVIM.RAR” (with the configuration file prepared by the author). After installing and running, you will find that its interface is a bit low in “value”, and can even be described as “ugly” (Figure 1). However, we can make GVIM more beautiful with some modifications.


Open the URL, you will find many beautiful theme files on this page, choose the one you like (e.g. “cherryblossom”), click on the corresponding theme image, and then Click on “View in GitHub→Clone or download→Download zip” to download the zip file.

Unzip the zip archive to any location on your hard drive and you will get a file named Cherryblossom.vim. Change the file name to MyColors.vim and copy it to the GVIM installation directory, such as the Colors folder under the D:Program Files (x86)Vimvim81 directory. Next, open the “_vimrc” file provided by the author in the GVIM.RAR archive with Notepad (Figure 2) and add the following at the end.


colorscheme MyColors” to set the color scheme

Finally, save the changes made to the file “_vimrc” and replace the file with the same name in the D:Program Files (x86)Vim directory. At this time, run GVIM again, you can see its beautiful interface (Figure 3).



★ The personal configuration parameters of GVIM Notepad are saved to the “_vimrc” file, although the file has no extension, it is essentially a text file, by modifying the “_vimrc” file, you can create a GVIM Notepad tool that meets your By modifying the “_vimrc” file, you can create a GVIM notepad tool that meets your needs.

After GVIM is installed, there will be three shortcuts on the desktop: gVim, gVim Read only and gVim Easy, which correspond to the normal mode, read only mode and edit mode of GVIM respectively. Among them, the most frequently used is the edit mode.

Internal strong quality to improve the efficiency of GVIM input

In the process of using GVIM notepad, sometimes we often need to input some text repeatedly, and the intelligent complementary function that GVIM has will undoubtedly improve the efficiency of inputting repeated text.

Create a new Notepad file named Dic.txt in the root directory of D drive, then copy some repetitive text into it (one line for each repetitive text, Figure 4) and save it, then open the “_vimrc” file with Notepad and add the following contents at the end.


set dictionary=D:dic.txt “Enable dictionary

set complete-=k complete+=k

Once you have finished typing, save the changes you have made to it.

After finishing the above operation, run the edit mode of GVIM, open some notepad file, when you need to enter some repetitive data, such as “Chen Shuoran”, just type the first word “Chen”, and then press ” Ctrl+N” shortcut key, in the pop-up intelligent reminder menu, select the relevant text by “↑” or “↑” (Figure 5), and press enter to complete the intelligent complementary input. Of course, if there is only one duplicate data starting with a certain Chinese character in the Dic.txt file, type the first Chinese character and press Ctrl+N shortcut key to complete the input directly.


Remove all blank lines with one click

Sometimes we need to download some text materials on the Internet, but the relevant text is often mixed with many blank lines, if manually deleted, it is undoubtedly very troublesome. At this time, it may be worthwhile to GVIM to achieve a key to delete all blank lines.


Open the file “_vimrc” again with Notepad, add “nnoremap <F2> :g/^s*$/d<CR>” at the end (excluding the outer quotes) and save it, then run GVIM in normal mode, and Copy in the text from the page you need to edit and press the F2 shortcut key to delete all the empty lines in the text with one click (Figure 6).

Leave a Comment