Welcome and Thank you for your support!
Support this website by leaving Comments
1.VIM – As I prefer Vim always! 🙂
ami@amios:~$ which vim
ami@amios:~$ export EDITOR=/usr/bin/vim
OR do it by .bashrc
ami@amios:~$ echo “export EDITOR=vim” >> ~/.bashrc
ami@amios:~$ cat .bashrc | grep vim
check your env (environment variables)
root@amios:/home/ami# env | grep EDITOR
2. Nano editor
3. Other options
update-alternatives –config editor
filed in Uncategorized on Jun.27, 2009
Matt Wozniski wrote an awesome little Vim plugin called CSApprox that lets Vim transparently apply GVim colorschemes in the terminal. CSApprox works by approximating the color in the GVim colorscheme to the closest availble color in your terminal, provided that your terminal supports either 88 or 256 colors.
After downloading the plugin zip and extracting it to the ~/.vim directory, I was met with a rather disappointing message:
CSApprox skipped; terminal only has 8 colors, not 88/256
Try checking :help csapprox-terminal for workarounds
Don’t worry, GNOME Terminal isn’t actually limited to 8 colors, it just evades detection. We can easily force 256 color support by setting the t_Co option in ~/.vimrc .
Installation easily installed on *nix, os x and windows
Easy Installation *nix and os x
The easiest way to install spf13-vim is to use our automatic installer by simply copying and pasting the following line into a terminal. This will install spf13-vim and backup your existing vim configuration.
If you are upgrading from a prior version (before 3.0) this is also the recommended installation.
curl http://j.mp/spf13-vim3 -L -o - | sh
Updating to the latest version
vim +BundleInstall! +BundleClean +q
Installing on Windows
On Windows and *nix Git and Curl are required.
After installation try running
git --version within command prompt (press Win-R, type
cmd, press Enter) to make sure all good:
C:\> git --version
git version 1.7.4.msysgit.0
Instructions blatently copied from vundle readme Installing Curl on Windows is easy as Curl is bundled with msysgit! But before it can be used with Vundle it’s required make
curl run in command prompt. The easiest way is to create
curl.cmd with this content
@rem Do not use "echo off" to not affect any child calls.
@rem Get the abolute path to the parent directory, which is assumed to be the
@rem Git installation root.
@for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
And copy it to
C:\Program Files\Git\cmd\curl.cmd, assuming msysgit was installed to
to verify all good, run:
C:\> curl --version
curl 7.21.1 (i686-pc-mingw32) libcurl/7.21.1 OpenSSL/0.9.8k zlib/1.2.3
Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: Largefile NTLM SSL SSPI libz
Installing spf13-vim on Windows
The easiest way is to download and run the spf13-vim-windows-install.cmd file.
Excellent Configuration A highly optimized .vimrc config file
The .vimrc file is suited to programming. It is extremely well organized and folds in sections. Each section is labeled and each option is commented.
It fixes many of the inconveniences of vanilla vim including
- A single config can be used across Windows, Mac and linux
- Eliminates swap and backup files from littering directories, preferring to store in a central location.
- Fixes common typos like :W, :Q, etc
- Setup a solid set of settings for Formatting (change to meet your needs)
- Setup the interface to take advantage of vim’s features including
- line numbers
- syntax highlighting
- A better ruler & status line
- & more
- Configuring included plugins
~/.gvimrc.local for any local customizations.
For example, to override the default color schemes:
echo colorscheme ir_black >> ~/.vimrc.local