Hello Linux Geeksters. I have previously made this tutorial on how to install Vim 7.4 on Ubuntu 13.10 Saucy Salamander, Ubuntu 13.04 Raring Ringtail, Ubuntu 12.04 Precise Pangolin, Linux Mint 16 Petra, Linux Mint 15 Olivia and Linux Mint 13…
Hello Linux Geeksters. I have previously made this tutorial on how to install Vim 7.4 on Ubuntu 13.10 Saucy Salamander, Ubuntu 13.04 Raring Ringtail, Ubuntu 12.04 Precise Pangolin, Linux Mint 16 Petra, Linux Mint 15 Olivia and Linux Mint 13…
Hello Linux Geeksters. As you may know, Vim 7.4 has been released. It brings many features and improvements to the previous version, Vim 7.3. As you may know, Vim is one of the most popular text editor on Unix and…
The Windows text editors place ^M at the end of each line, which is the visual representation for 0x0D, while Unix based systems place 0x0A, in text files. 1. To remove the ^M character, in ViM, write the following in…
Hello Linux Geeksters. In this article I will show you what you have to do to make Vim remove the trailing spaces when you save changes in a file. This oneliner should do the trick. Paste this oneliner in your…
In this article I will show you how to use the search option in the Vim text editor and some settings for syntax highlighting. To use the Vim search, press ESC, type /string . (replace string with the keyword you…
I have a huuuuuuuge .vimrc configuration file. When I need to edit an /etc file, for example, I use sudo. like: sudo vim /etc/passwd But, using sudo I loose my user’s ~/.vimrc file, as vim uses it’s default. I have…
As I have mentioned here, Vim creates backups for the files edited everywhere. To avoid this, you can set the backupdir or bdir variable to tell Vim where to put its backups. The default path for the backupdir is the…
The default editor in Debian/Ubuntu/Linux Mint is Nano. I will change it to ViM, for bash, zsh and ksh. Both, the EDITOR and VISUAL environment variables are used for setting the default editor. Set them to the same value, in…