Vim On Slackware.

color vim


In RedHat , their vim looks very cool. When we started to use some other OS or distro, we will find out that their vim looks like lack of feature. So, to make it looks our vim looks more cooler, These are the two things we can do.

Create a filename call /usr/share/vim/vimrc , and add in these lines

# cat /usr/share/vim/vimrc
" FIlename /usr/share/vim/vimrc
"Basic Settings
set nocompatible
syntax on
color desert
filetype on

set history=50
set showcmd
set incsearch
set hlsearch


"Key Mapping
set backspace=indent,eol,start
map Q gq

" UI Settings
set wildmenu " turn on wild menu
set ruler " Always show current positions along the bottom
set nolz " do not redraw while running macros (much faster)
set hid " you can change buffer without saving
set backspace=2 " make backspace work normal
set whichwrap+=,h,l " backspace and cursor keys wrap to
"set mouse=a " use mouse everywhere

" Folding Setting
set fdm=marker

# cd /usr/bin
# rm vi
# ln -s vi vim

Done.



source: http://kerneltrap.org/node/view/2577

Q8linux



This page comes from
Kuwait Linux User Group
http://www.q8linux.net

The URL for this page is:
http://www.q8linux.net/modules.php?name=Content&pa=showpage&pid=17