LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Vim (https://www.linuxquestions.org/questions/slackware-14/vim-154087/)

cxtech 03-06-2004 02:07 AM

Vim
 
In Redhat 9, when I would work with .c files in VIM it would color code them but not so in the VIM that was installed when I put Slackware on the machine instead. Is it possible to active these or do I need to download a different version of VIM for this? Thanks in advance.

melinda_sayang 03-06-2004 02:21 AM

vim ~/.vimrc
or
vim ~/.gvimrc

Make the file like mine. Feel free to edit:
:set number
:syntax enable -------> This is what you want
:set shiftwidth=4
:set smartindent
:set browsedir=/home/knight/work/cpp/

OdieQ 03-06-2004 08:30 AM

indent
 
Another cool alternative to smartindent is
:filetype indent on

This will choose an appropriate indentation method based on the current filetype (which is autodected but can be changed with :set filetype=<whatever>). This lets you indent e.g. HTML files automatically.

/Odie

cxtech 03-06-2004 04:19 PM

Awsome. Thanks for the help :)


All times are GMT -5. The time now is 10:32 PM.