Kuwait Linux User Group

Welcome to the Kuwait Linux User Group, thats dedicated to talk about Linux, BSD, and the use of open source
specially for Kuwait community & others as well -- beside encouraging them to use it.
Follow Us:

October 28, 2004 04:13 AM EDT

Vim On Slackware.

color vim

Author: . 4365 Reads
  Print this page   Export to PDF format   Mail to a friend


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

Copyright © by Kuwait Linux User Group
All rights reserved.


Category: Hints & Tips
Tags: None
Bookmark: Share/Save/Bookmark

[ Go Back ]
Content ©

Survey

What's your Favorite Mail Server(smtp)?

Sendmail
Qmail
Postfix
Exchange
Lotus Notes



Results
Polls

Votes: 102
Comments: 67