Blog Archives

How To Install Vim 7.4 On Debian Based Systems (From Source)

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

Tagged with: , , , , , , , , , , , ,
Posted in The Linux and Unix Articles!

How To Install Vim 7.4 On Ubuntu 13.10, 13.04, 12.04, Linux Mint 16, 15, 13 And Debian Sid

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

Tagged with: , , , , , , , , , , , , , , ,
Posted in The Linux and Unix Articles!

5 Ways To Remove The ^M Character At The End Of Text Files

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

Tagged with: , , , , , ,
Posted in The Linux and Unix Articles!

Strip Trailing Spaces When Saving in ViM

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

Tagged with: , , , , ,
Posted in The Linux and Unix Articles!

Search for Strings and Highlight Syntax in the Vim Text Editor

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

Tagged with: , , , , , ,
Posted in The Linux and Unix Articles!

Vim Trick: Use your user’s .vimrc even when you sudo

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

Tagged with: , , , , , ,
Posted in The Linux and Unix Articles!

Set A Backup Folder For Vim

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

Tagged with: , , , , , ,
Posted in The Linux and Unix Articles!

How to change the default text editor in bash, zsh and ksh

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

Tagged with: , , , , , , ,
Posted in The Linux and Unix Articles!
Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!