My favourite VIM-editor profile

We need syntax highlighting to help our work, i mean if we’e work with script code and another script as you need. It’s no problem if we have text-editor who’s support syntax highlighting (ie:bluefish editor, quanta, scite, kate, kwrite, and /etc.), We’re work in linux environment, and anytime need to live editing in server, login to server then make any change in your code. VIM editor is more than just text editor, it’s powerfull editor text based on unix environmnet, This is the information about VI-editor from wikipedia:

vi is a screen-oriented text editor written by Bill Joy in 1976 for an early BSD Unix release.
The name vi is derived from the shortest unambiguous abbreviation for the command visual in ex; the command in question switches the line editor ex to visual mode. The name vi is pronounced.

The syntax highlighting is not installed by default on VI-editor, if we need to more featured on our VI-editor, it’s recomended we upgrade or install the vim-full packages, i’m using ubuntu studio 8.10 (intrepid ibex), i’m type on my terminal :

andrew@wider:~$ sudo apt-get install vim-full

and the next step, we make profile setting to auto and we start our editing. someday we browsing on internet and finded this site(http://clog.ammar.web.id), i’m apreciate with the VI-profile, i used this profile to my default vi setting, thanks to Mr.y3dips for this vi-profile :D

add the profile

andrew@wider:~$ vim .vimrc

and then add this profile:

syntax enable
set number
set ruler
filetype on
filetype plugin on
set tabstop=4
set softtabstop=4
set shiftwidth=4
set noexpandtab
set smarttab
set noerrorbells
set nocompatible
set ai
set si
set cindent
set mouse=a
set nowrap
set incsearch
set showmatch
set mat=5
set hls
set cul
set wrapscan
set sol
set textwidth=100

Related Posts

    No related posts found

Facebook Comments

comments

Powered by Facebook Comments

Tags: , , ,