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