LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 12-24-2003, 04:22 PM   #1
alexLinux
LQ Newbie
 
Registered: Dec 2003
Location: usa - md
Distribution: slackware, debian, knoppix, redhat
Posts: 10

Rep: Reputation: 0
vim - comments formatting


hi!
being new to linux, my immediate goal is to learn, firsthand, about the different distros
availble. So having moved from redhat to debian, and now to slackware, i was faced
with a minor config prob, that was related to the VIM editor.

i included everything, since im not sure if any other than what was bolded were related
to my question.
alert question inc: since i can't seem to find an answer
that works in any included or googled manuals/references.
How do i get vim editor to autoformat my comments like it does defaultly with the debian
pakaged version?
if i understand correctly. it supposed to do so automatically, with a default scheme ( comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:- ),
as long as +comments was included in the configurations.

I've tried changing and messing around w/ different settings while editing a *.cpp file
(ex: test.cpp) to see if it depended on any other commands, but so far no luck .


Code:
:set nocompatible      
:set compatible
:set comments
:set all
:set auto
:set comments=s1:/*,mb:*,ex:*/
Nothing that i've tried worked on vim nor elvis. So im not sure what im missing. Please
clue me in if someone knows this
.exrc
Code:
set smd ruler ai backspace=indent,eol,start
STATS:
Code:
Slackware-9.1
VIM - Vi IMproved 6.2 (2003 Jun 1, compiled Sep 18 2003 13:09:52)
Included patches: 1-98
Compiled by root@midas
Big version with GTK GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments

+cryptv +cscope +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval
+ex_extra +extra_search +farsi +file_in_path +find_in_path +folding -footer
+fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap
 +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession
+modify_fname +mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm
+mouse_netterm +mouse_xterm +multi_byte +multi_lang +netbeans_intg -osfiletype
+path_extra -perl +postscript +printer -python +quickfix +rightleft -ruby
+scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax
+tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse
+textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual
+visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup
+X11 +xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"

Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include 
  -O2 -march=i486 -mcpu=i686  -I/usr/X11R6/include
Linking: gcc  -L/usr/X11R6/lib  -L/usr/local/lib -o vim   -L/usr/lib -L/usr/X11R6/lib -lgtk
 -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lm -lXt -lncurses -lgpm -ldl
edited: to reduce side-scroll

Last edited by alexLinux; 12-24-2003 at 04:26 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"HOWTO Change Colour of Comments in VIM editor" manikantha Linux - General 2 04-12-2009 05:41 AM
encryption with Vim (vim -x) mikshaw Linux - Software 2 03-07-2007 09:00 AM
2.6.12 out, comments in :) xushi Slackware 107 07-12-2005 07:16 AM
I need your comments! gcclinux Linux - Games 1 11-02-2004 05:23 PM
Comments Please bigjohn General 9 11-16-2002 10:32 AM


All times are GMT -5. The time now is 06:03 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration