Loading ...
Sorry, an error occurred while loading the content.
 

Re: cindent

Expand Messages
  • vipin aravind
    Is there any way to specify in the comman mode with line no,s I meant as in a searching string the formating to be done on block of lines. I underatand the =G
    Message 1 of 7 , Mar 1, 2001
      Is there any way to specify in the comman mode with line no,s
      I meant as in a searching string
      the formating to be done on block of lines.
      I underatand the =G in command mode and gq in visual mode.
      thanks
      vipin

      ----- Original Message -----
      From: Coen Engelbarts <Coen.Engelbarts@...>
      To: Ross A. Osborn <rosborn@...>; VIM Mailing list <vim-dev@...>;
      <vim@...>
      Sent: Friday, March 02, 2001 4:41 PM
      Subject: RE: cindent


      > > > Personally, I can't get <g><q> to work though, and <=>
      > > ignores my "comments"
      > > > settings.
      > >
      > > Do you have "equalprg" set to something?
      >
      > Nope, I checked:
      > equalprg=
      >
      > Other people seem to have the same problem with <=> ignoring the
      "comments"
      > string.
      > That might be a VIM bug.
      >
      > gq does not work on my C comments and formats C-code pretty strange:
      >
      > int test(int a, int B) { int c;
      >
      > return c; }
      >
      > Does anybody have any idea why vim behaves like this?
      > Thanks for any help
      >
      > Coen
      >
      >
      > I use Vim 5.7 on VMS with the following settings and version:
      >
      >
      > :set all
      > --- Options ---
      > aleph=224 nohidden previewheight=12 tagstack
      > noallowrevins history=50 noreadonly
      > term=builtin_gui
      > noaltkeymap nohkmap remap noterse
      > autoindent nohkmapp report=2 textauto
      > noautowrite hlsearch norevins notextmode
      > background=light icon norightleft textwidth=78
      > backspace=2 iconstring= ruler notildeop
      > nobackup ignorecase rulerformat= timeout
      > backupext=_ incsearch scroll=24
      > timeoutlen=1000
      > nobinary noinfercase noscrollbind title
      > browsedir=last noinsertmode scrolljump=1 titlelen=85
      > nocindent isprint=@,161-255 scrolloff=4 titlestring=
      > cinoptions= joinspaces nosecure nottimeout
      > clipboard= key= selectmode=
      ttimeoutlen=-1
      > cmdheight=2 keymodel= shell= ttybuiltin
      > columns=80 keywordprg=help shellcmdflag=-c ttyfast
      > nocompatible langmap= shellpipe=> ttymouse=dec
      > noconfirm laststatus=1 shellquote=
      ttyscroll=999
      > cpoptions=aABceFs nolazyredraw shellredir=>
      > undolevels=1000
      > dictionary= nolinebreak shellxquote=
      > updatecount=200
      > nodigraph lines=50 noshiftround
      > updatetime=4000
      > display= nolisp shiftwidth=8 verbose=0
      > noedcompatible nolist noshortname
      > viminfo='20,"50
      > endofline listchars=eol:$ showbreak= visualbell
      > equalalways magic showcmd warn
      > equalprg= makeprg=make noshowfulltag noweirdinvert
      > noerrorbells matchtime=5 showmatch
      whichwrap=b,s
      > esckeys maxfuncdepth=100 showmode
      wildchar=<Tab>
      > eventignore= maxmapdepth=1000 sidescroll=0 wildcharm=^@
      > expandtab maxmem=512 smartcase wildignore=
      > noexrc maxmemtot=2048 nosmartindent nowildmenu
      > fileencoding=ansi modeline smarttab
      wildmode=full
      > fileformat=unix modelines=5 softtabstop=4
      > winaltkeys=menu
      > filetype=vim nomodified nosplitbelow winheight=1
      > nofkmap more startofline
      winminheight=1
      > formatprg= mouse=a statusline= wrap
      > nogdefault nomousefocus swapfile wrapmargin=0
      > grepprg=grep -n mousehide swapsync=fsync nowrapscan
      > guifont= mousemodel=extend switchbuf= write
      > guifontset= mousetime=500 syntax=vim nowriteany
      > guiheadroom=50 nonumber tabstop=8 nowritebackup
      > guioptions=agimrt nopaste notagbsearch writedelay=0
      > guipty pastetoggle= taglength=0
      > helpheight=20 patchmode= tagrelative
      > backupdir=./,sys$login:,tmp:
      > breakat= ^I!@*-+_;:,./?
      > cinkeys=0{,0},:,0#,!^F,o,O,e
      > -- More --
      > nofkmap more startofline
      winminheight=1
      > formatprg= mouse=a statusline= wrap
      > nogdefault nomousefocus swapfile wrapmargin=0
      > grepprg=grep -n mousehide swapsync=fsync nowrapscan
      > guifont= mousemodel=extend switchbuf= write
      > guifontset= mousetime=500 syntax=vim nowriteany
      > guiheadroom=50 nonumber tabstop=8 nowritebackup
      > guioptions=agimrt nopaste notagbsearch writedelay=0
      > guipty pastetoggle= taglength=0
      > helpheight=20 patchmode= tagrelative
      > backupdir=./,sys$login:,tmp:
      > breakat= ^I!@*-+_;:,./?
      > cinkeys=0{,0},:,0#,!^F,o,O,e
      > cinwords=if,else,while,do,for,switch
      > comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
      > complete=.,w,b,u,t,i
      > define=^#\s*define
      > directory=./,sys$login:,tmp:
      > errorfile=errors.err
      > errorformat=%*[^"]"%f"%*\D%l: %m,"%f"%*\D%l: %m,%f:%l:%m,"%f"\, line
      > %l%*\D%c%
      > *[^ ] %m,%D%*\a[%*\d]: Entering directory `%f',%X%*\a[%*\d]: Leaving
      > directory `
      > %f',%DMaking %*\a in %f
      > fileformats=unix,dos
      > formatoptions=tcql
      > grepformat=%f:%l%m,%f %l%m
      >
      >
      guicursor=n-v-c:block-Cursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Curso
      > r,
      > r-cr:hor20-Cursor,sm:block-Cursor-blinkwait175-blinkoff150-blinkon175
      > helpfile=USER_DISK:[USER.ENGELBARTS.BIN.VIM]doc/help.txt
      >
      >
      highlight=8:SpecialKey,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search
      > ,m
      >
      :MoreMsg,M:ModeMsg,n:LineNr,r:Question,s:StatusLine,S:StatusLineNC,t:Title,v
      > :Vis
      > ual,V:VisualNOS,w:WarningMsg,W:WildMenu
      > include=^#\s*include
      > isfname=@,48-57,/,.,-,_,+,,,$,~
      > isident=@,48-57,_,192-255
      > iskeyword=@,48-57,_,192-255
      > makeef=tmp:vim##.err
      > matchpairs=(:),{:},[:]
      > nrformats=octal,hex
      > paragraphs=IPLPPPQPP LIpplpipbp
      > path=.,/usr/include,,
      > scrollopt=ver,jump
      > sections=SHNHH HUnhsh
      > selection=inclusive
      > sessionoptions=buffers,winsize,options,help,blank
      > shortmess=filnxtToO
      > suffixes=.bak,~,.o,.h,.info,.swp,.obj
      > tags=tags,TMP:tags,SYS$LOGIN:tags
      > titleold=Thanks for flying Vim
      > ttytype=builtin_gui
      > Press RETURN or enter command to continue
      >
      >
      > :version
      > VIM - Vi IMproved 5.7 (2000 Jun 24, compiled Jun 27 2000 09:11:09)
      > OpenVMS version
      > Compiled by ZAY@PLUTO (pluto.essnet.se), with (+) or without (-):
      > +autocmd +browse ++builtin_terms +byte_offset +cindent +cmdline_compl
      > +cmdline_info +comments +cryptv -cscope +dialog_con_gui +digraphs
      > +emacs_tags
      > +eval +ex_extra +extra_search +farsi +file_in_path -osfiletype
      +find_in_path
      > +GUI_Motif -hangul_input +insert_expand +langmap +linebreak +lispindent
      > +menu
      > +mksession +modify_fname +mouse +mouse_dec -mouse_gpm +mouse_netterm
      > +mouse_xterm +multi_byte -perl -python +quickfix +rightleft +scrollbind
      > +smartindent -sniff +statusline +syntax +tag_binary +tag_old_static
      > -tag_any_white -tcl +tgetent +textobjects +title +user_commands
      +visualextra
      > +viminfo +wildignore +wildmenu -writebackup +X11
      +xfontset -xim -xterm_save
      > system vimrc file: "$VIM/vimrc"
      > user vimrc file: "sys$login:.vimrc"
      > 2nd user vimrc file: "sys$login:_vimrc"
      > user exrc file: "sys$login:.exrc"
      > 2nd user exrc file: "sys$login:_exrc"
      > system gvimrc file: "$VIM/gvimrc"
      > user gvimrc file: "sys$login:.gvimrc"
      > 2nd user gvimrc file: "sys$login:_gvimrc"
      > system menu file: "$VIMRUNTIME/menu.vim"
      > Compilation: cc/decc /incl=[] /def=(HAVE_CONFIG_H,USE_GUI_MOTIF )
      > /opt/prefix
      > =all/include=[.proto]
      > Compiler: DEC C V6.0-001 on OpenVMS Alpha V7.1
      > Linking: link /exe=vim.exe *.obj ,OS_VMS.OPT/OPT
      > Press RETURN or enter command to continue
    Your message has been successfully submitted and would be delivered to recipients shortly.