Thread: vim

  1. #1
    Registered User falconetti's Avatar
    Join Date
    Nov 2001


    Hello all.

    I have installed a new distro on my comp and I just wonder how I can configure vim editor so colours and tabs show when writing code. Any help appreciated.

  2. #2
    Registered User
    Join Date
    Sep 2001
    You might want to create a .vimrc file in your root (there are other ways to do this, this is just how I do it...), which contains settings. After that, you'll just have to wade through the help files. Here is an example .vimrc file
    syn on
    set esckeys autoindent
    The syn on enables syntax highlighting. You'll also want to look into xterm. I use this command...
    export TERM=xterm
    to enable color. I am not especially knowledgable in this area by any means, I just know how to make my code nice colors.

    That said, you need to look into the set flags to figure out all the other settings, which means going through the manual. It's a tough manual, personally, but still worth the journey.
    Callou collei we'll code the way
    Of prime numbers and pings!

  3. #3
    to add color you must launch vim -g. then go to syntax and set to automatic. THen edit drop down menu to the color scheme and choose the one you like most. This will get you started with colors. As suggested, create a .vimrc file when you understand more how they work.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. VIM: The (un)official thread
    By MK27 in forum Programming Book and Product Reviews
    Replies: 32
    Last Post: 04-20-2011, 06:43 PM
  2. quick vim use question
    By MK27 in forum C Programming
    Replies: 4
    Last Post: 02-20-2009, 11:59 PM
  3. vim question - linux
    By Stonehambey in forum Tech Board
    Replies: 9
    Last Post: 10-18-2008, 04:05 AM
  4. vim smart-indenting for filetypes other than C
    By s_siouris in forum Tech Board
    Replies: 10
    Last Post: 11-25-2004, 11:05 AM
  5. off VIM beep..
    By hermit in forum Tech Board
    Replies: 3
    Last Post: 06-17-2003, 10:39 PM