Installing VIM on ReadyNas
The ReadyNAS comes with a built in text editor called vi. I don't find this editor particularly friendly and prefer to use an alternative text editor called vim (vi iMproved).
To install vim on the ReadyNAS run the following commands: apt-get install vim vim-doc vim-scripts
You will be prompted the install will take additional disk space. Just press y
and hit the Enter
key.
This will install vim and all the necessary packages. Once everything is installed, navigate to your home folder by issuing a cd ~
command and hitting Enter
. Now display the contents of your home directory ls -la
and check if a file called .vimrc
exists.
If the file doesn't exist (it usually doesn't) create one by running the following command: touch .vimrc
We need this file to contain the "syntax on" text therefore run this command: echo "syntax on" >> .vimrc
This command appends the text "syntax on" to the end of the file .vimrc
.