Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

vim · Vim (Vi IMproved) text editor users list

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 26491 - 26520 of 138237   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#26491 From: "Douglas L . Potts" <pottsdl@...>
Date: Fri Mar 1, 2002 12:50 pm
Subject: Re: starting highlight matching brackets in vimrc
pottsdl@...
Send Email Send Email
 
On Wed, Feb 27, 2002 at 01:59:53PM +0100 Michael Muhler wrote:
>
> Hello vimmers,
>
> i am using
> HiMatchBrkt.vim to highlight matching brackets, and it works great.
> So i wanted to start highlighting matching brackets
> for all files in vimrc.
> Unfortunately the plugin only provides some maps
> to initialize the mode, and the actual function to initialize
> the mode has a <SID>.
> Is is possible to call a <SID> function from within vimrc
> or should i declare a global function
> in (an edited version of) the script ?

Don't remember seeing a reply to this one, so I'll give it a shot.

Possible solutions:
1. Add a 'publicly accessable' function (ie not a <SID> function) that
    calls the script's initialize function.  This would have to be inside
    the script so that this function knows what <SID> translates into so
    that it can call the right function (see :h on scriptnames and
    <SNR>).
    But that isn't very conducive to upgrades made by the author.

2. Ask the author of HiMatchBrkt.vim to do #1.

3. Add a line in your vimrc that sets up an autocmd for VimEnter that
    will execute the mapping for you.
    ex:  au VimEnter * exe "normal <put script init mapping here>"

Number 3 is untested, but if not this, a similar setup should work.

HTH,
-Doug

--
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Douglas L. Potts
"Writing is easy. It's all a matter of staring at a blank piece of paper
until your forehead bleeds" -Douglas Adams
GPG Fingerprint: 768A EEF8 197A 4C9A 5EF7  DA5B 464C 97DF DCD5 68C2
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*

#26492 From: "Douglas L . Potts" <pottsdl@...>
Date: Fri Mar 1, 2002 1:01 pm
Subject: Re: clearcase eclipsed files are lost
pottsdl@...
Send Email Send Email
 
On Fri, Mar 01, 2002 at 08:53:40AM +0100 Rainer Stransky wrote:
> Hello,
Hello.  I'll try to help you as much as I follow your problem.


> i am working in a development enviroment und hp-ux and clearcase.
>
> In special cases a file in clearcase has to be made to view private and
afterwards
> this file is eclipsed (in do not exactly know what this means in terms of a
file
> system).
Files get eclipsed in ClearCase based on how your clearcase config spec
is setup.  That is the set of rules that determines which particular
version (on the file's version tree) that you will be operating on.
Sometimes the config spec can be setup such that a view private file can
be eclipsed (ie. that particular version is not visible) by a clearcase
element.  Or possibly vise versa.

With that said, let's try and address your particular problem.

> But a ls -l show that all is ok for editing and writing the file
>
> > ls -l Imakefile
> -rw-rw-r--   1 stransky ms_e         1735 Mar  1 08:09 Imakefile
>
> Editing this file with /usr/bin/vi (not a vi clone) work fine.
There have been eariler posts that have indicated some differences in
behavior of Vim versus vanilla vi in that Vim will try to utilitize ACL
calls for accessing the file, which may be the explanation for what you
are experiencing.

> Editing this file with vim (6.0), this "eclipsed" file is lost !


> An attempt to write the file, returns the message:
> "Imakefile" E166: Can't open linked file for writing
>
> The same for opening and closing. The file is lost / removed and afterwards
> the clearcase element as specified in the config spec is seen.
>
> > ls -l Imakefile
> -r--r--r--   1 cc-admin ms_e         1728 Apr 25  2001 Imakefile
>
> > ct ls Imakefile
> Imakefile@@/main/17                                      Rule: /main/LATEST
>
>
> It seems that vim remove/moves the file (for backup or swapfile ?) ,
Vim copies the original file to the backup file, before you begin
editting, so that the file permissions are kept.  But this would only
happen if you have the 'backup' option turned on.

> what is not permitted in this case. Removing or moving the file will
> reappear the real clearcase element in the clearcase file system as
> the selected version readonly !
>
>
> Is there a possibility to avoid such behaviour ?

On second thought, maybe we should take this off-line.  This is really
more of a problem with how ClearCase does things, and not vim.  I'll
help as much as I can.

-Doug

--
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Douglas L. Potts
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."
-Benjamin Franklin
GPG Fingerprint: 768A EEF8 197A 4C9A 5EF7  DA5B 464C 97DF DCD5 68C2
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*

#26493 From: Peter Smith <peter@...>
Date: Fri Mar 1, 2002 1:36 pm
Subject: newbie vim 6.0 questions
peter@...
Send Email Send Email
 
hello,

I had been using vim 5.8 with great success and recently upgraded my cygwin
install which included vim 6.0. I started having a few problems getting 6.0
to behave as 5.8 seemed to by default...perhaps someone can help me with a
few simple questions?

If someone has a list of option settings that just makes 6.0 work as 5.8 did
by default, that'd be greatly appreciated...

I have had a bit of trouble getting the multi level undo to work the way I
remember it working in 5.8. I used to be able to just keep hitting 'u', and
changes would keeping rolling backwards. I have tried setting the ul option
to no avail...

I can't seem to find the correct option setting to make cursor keys work in
insert mode...

I can't seem to get the cursor keys to work for recalling searches when in
search mode either...maybe I don't have the history settings right?

here is my .exrc:
----------------------------------------------------------------------------
---------------
set nu
set vb
set ic
set nohlsearch
set ff=dos
set background=dark
syntax on
set ru
set viminfo='1000,f1,\"500,:20
set ffs=unix,dos
----------------------------------------------------------------------------
----------------

any help greatly appreciated, particularly if there's a set of option
settings that were 'on' by default in earlier versions but off now that
someone could clue me in on. VIM is fantastic, but I've struggled a bit
trying to get 6.0 to behave for me on Win2k under cygwin.

thanks very much,
peter

-------------------------------------------
here are my complete option settings if interested:

noautoindent          foldlevel=0         mousemodel=extend   tabstop=8
noautoread            foldlevelstart=-1   mousetime=500       tagbsearch
noautowrite           foldmethod=manual   number              taglength=0
noautowriteall        foldminlines=1    nopaste             notagrelative
   background=dark     foldnestmax=20      pastetoggle=
tags=./tags,tags
   backspace=          formatoptions=vt    patchexpr=          tagstack
nobackup              formatprg=          patchmode=          term=cygwin
   backupcopy=yes    nogdefault            previewheight=12    termencoding=
   backupext=~         helpheight=20     nopreviewwindow     noterse
nobinary            nohidden              printdevice=        textauto
nobomb                history=0           printfont=courier notextmode
   bufhidden=        nohlsearch            printoptions=       textwidth=0
   buflisted         noicon              noreadonly            thesaurus=
   buftype=            iconstring=         remap             notildeop
   cdpath=,,           ignorecase          report=2            timeout
   cedit=              iminsert=0          ruler
timeoutlen=1000
   charconvert=        imsearch=0          rulerformat=      notitle
nocindent             includeexpr=        scroll=31           titlelen=85
   cinoptions=       noincsearch         noscrollbind          titlestring=
   cmdheight=1         indentexpr=         scrolljump=1      nottimeout
   cmdwinheight=7    noinfercase           scrolloff=0         ttimeoutlen=-1
   columns=91        noinsertmode        nosecure              ttybuiltin
   compatible          isprint=@,161-255   selectmode=       nottyfast
noconfirm             joinspaces          shell=sh            ttymouse=
   debug=              key=                shellcmdflag=-c     ttyscroll=999
nodelcombine          keymodel=           shellquote=         ttytype=cygwin
   dictionary=         keywordprg=man      shellxquote=
undolevels=1000
nodiff                langmenu=         noshiftround
updatecount=200
   diffexpr=           laststatus=1        shiftwidth=8
updatetime=4000
   diffopt=filler    nolazyredraw          shortmess=          verbose=0
nodigraph           nolinebreak         noshortname           virtualedit=
   display=            lines=63            showbreak=          visualbell
   eadirection=both  nolisp              noshowcmd             warn
noedcompatible      nolist              noshowfulltag       noweirdinvert
   encoding=latin1     listchars=eol:$   noshowmatch           whichwrap=
   endofline           loadplugins       noshowmode            wildchar=^E
   equalalways         magic               sidescroll=0        wildcharm=0
   equalprg=           makeef=             sidescrolloff=0     wildignore=
noerrorbells          makeprg=make      nosmartcase         nowildmenu
noesckeys             matchtime=5       nosmartindent         wildmode=full
   eventignore=        maxfuncdepth=100  nosmarttab            winheight=1
noexpandtab           maxmapdepth=1000    softtabstop=0       winminheight=1
noexrc                maxmem=1048575    nosplitbelow          winminwidth=1
   fileencoding=       maxmemtot=1048575 nosplitright          winwidth=20
   fileformat=unix     menuitems=25        startofline         wrap
   filetype=conf     nomodeline            statusline=         wrapmargin=0
   foldclose=          modelines=5         suffixesadd=        wrapscan
   foldcolumn=0        modifiable          swapfile            write
   foldenable        nomodified            swapsync=fsync    nowriteany
   foldexpr=0        nomore                switchbuf=          writebackup
   foldignore=#        mouse=              syntax=conf         writedelay=0
   backupdir=.,~/tmp,~/
   backupskip=/tmp/*,/cygdrive/c/DOCUME~1/psmith/LOCALS~1/Temp/*
   breakat= ^I!@*-+;:,./?
   cinkeys=0{,0},0),:,0#,!^F,o,O,e
   cinwords=if,else,while,do,for,switch
   comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
   commentstring=/*%s*/
   complete=.,w,b,u,t,i
   cpoptions=aAbBcCdDeEfFijJkKlLmnoOprsStuwWxy$!%*<
   define=^#\s*define
   directory=.,~/tmp,/var/tmp,/tmp
   errorfile=errors.err
   errorformat=%*[^"]"%f"%*\D%l: %m,"%f"%*\D%l: %m,%-G%f:%l: (Each undeclared
identifier is
reported only once,%-G%f:%l: for each function it appears
in.),%f:%l:%m,"%f"\, line %l%*\D%
c%*[^ ] %m,%D%*\a[%*\d]: Entering directory `%f',%X%*\a[%*\d]: Leaving
directory `%f',%DMak
ing %*\a in %f
   fileencodings=ucs-bom
   fileformats=unix,dos
   fillchars=vert:|,fold:-
   foldmarker={{{,}}}
   foldopen=block,hor,mark,percent,quickfix,search,tag,undo
   foldtext=foldtext()
   grepformat=%f:%l:%m,%f:%l%m,%f  %l%m
   grepprg=grep -n $* /dev/null
   helpfile=/usr/share/vim/vim60/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,c:VertSplit,t:Title,
v:Visual,V:Visu
alNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D
:DiffDelete,T:D
iffText
   include=^#\s*include
   indentkeys=0{,0},:,0#,!^F,o,O,e
   isfname=@,48-57,/,.,-,_,+,,,#,$,%,~,=
   isident=@,48-57,_,192-255
   iskeyword=@,48-57,_

lispwords=defun,define,defmacro,set!,lambda,if,case,let,flet,let*,letrec,do,
do*,define-sy
ntax,let-syntax,letrec-syntax,destructuring-bind,defpackage,defparameter,def
struct,deftype,
defvar,do-all-symbols,do-external-symbols,do-symbols,dolist,dotimes,ecase,et
ypecase,eval-wh
en,labels,macrolet,multiple-value-bind,multiple-value-call,multiple-value-pr
og1,multiple-va
lue-setq,prog1,progv,typecase,unless,unwind-protect,when,with-input-from-str
ing,with-open-f
ile,with-open-stream,with-output-to-string,with-package-iterator,define-cond
ition,handler-b
ind,handler-case,restart-bind,restart-case,with-simple-restart,store-value,u
se-value,muffle
-warning,abort,continue,with-slots,with-slots*,with-accessors,with-accessors
*,defclass,defm
ethod,print-unreadable-object
   matchpairs=(:),{:},[:]
   nrformats=octal,hex
   paragraphs=IPLPPPQPP LIpplpipbp
   path=.,/usr/include,,
   printexpr=system('lpr' . (&printdevice == '' ? '' : ' -P' . &printdevice)
. ' ' . v:fname
_in) . delete(v:fname_in) + v:shell_error
   printheader=%<%f%h%m%=Page %N

runtimepath=~/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim60,/usr/share/v
im/vimfiles/a
fter,~/.vim/after
   scrollopt=ver,jump
   sections=SHNHH HUnhsh
   selection=inclusive
   sessionoptions=blank,buffers,curdir,folds,help,options,winsize
   shellpipe=2>&1| tee
   shellredir=>%s 2>&1
   suffixes=.bak,~,.o,.h,.info,.swp,.obj
   titleold=Thanks for flying Vim
   viewdir=~/.vim/view
   viewoptions=folds,options,cursor
   viminfo='1000,f1,"500,:20

#26494 From: Jürgen Krämer <jkraemer@...>
Date: Fri Mar 1, 2002 1:56 pm
Subject: Re: newbie vim 6.0 questions
jkraemer@...
Send Email Send Email
 
Hi,

Peter Smith wrote:
>
> If someone has a list of option settings that just makes 6.0 work as
> 5.8 did by default, that'd be greatly appreciated...
>
> I have had a bit of trouble getting the multi level undo to work the
> way I remember it working in 5.8. I used to be able to just keep
> hitting 'u', and changes would keeping rolling backwards. I have tried
> setting the ul option to no avail...
>
> I can't seem to find the correct option setting to make cursor keys
> work in insert mode...
>
> I can't seem to get the cursor keys to work for recalling searches
> when in search mode either...maybe I don't have the history settings
> right?

it seems that the 'compatible' option is on.

> here is my .exrc:

Rename this file to .vimrc or put 'set nocompatible' at the start of it.

Regards,
Jürgen

--
Jürgen Krämer                               Softwareentwicklung/-support
Habel GmbH                                  mailto:software@...
Hinteres Öschle 2                           Tel: (0 74 61) 93 53 15
78604 Rietheim-Weilheim                     Fax: (0 74 61) 93 53 99

#26495 From: <jige@...>
Date: Fri Mar 1, 2002 2:01 pm
Subject: Reformating HTML
jige@...
Send Email Send Email
 
Hi there,

Is there somewhere a vim script that will reformat HTML code, adding line
breaks, indenting code,... and of course that would be customizable ?
Thanks in advance.

Cheers  /jerome

#26496 From: Peter Smith <peter@...>
Date: Fri Mar 1, 2002 2:07 pm
Subject: RE: newbie vim 6.0 questions
peter@...
Send Email Send Email
 
terrific! thanks very much, and my apologies for such a simple question.

thanks,
peter



-----Original Message-----
From: Jürgen Krämer [mailto:jkraemer@...]
Sent: Friday, March 01, 2002 8:56 AM
To: 'vim@...'
Subject: Re: newbie vim 6.0 questions



Hi,

Peter Smith wrote:
>
> If someone has a list of option settings that just makes 6.0 work as
> 5.8 did by default, that'd be greatly appreciated...
>
> I have had a bit of trouble getting the multi level undo to work the
> way I remember it working in 5.8. I used to be able to just keep
> hitting 'u', and changes would keeping rolling backwards. I have tried
> setting the ul option to no avail...
>
> I can't seem to find the correct option setting to make cursor keys
> work in insert mode...
>
> I can't seem to get the cursor keys to work for recalling searches
> when in search mode either...maybe I don't have the history settings
> right?

it seems that the 'compatible' option is on.

> here is my .exrc:

Rename this file to .vimrc or put 'set nocompatible' at the start of it.

Regards,
Jürgen

--
Jürgen Krämer                               Softwareentwicklung/-support
Habel GmbH                                  mailto:software@...
Hinteres Öschle 2                           Tel: (0 74 61) 93 53 15
78604 Rietheim-Weilheim                     Fax: (0 74 61) 93 53 99

#26497 From: Gary Johnson <garyjohn@...>
Date: Fri Mar 1, 2002 3:26 pm
Subject: Re: clearcase eclipsed files are lost
garyjohn@...
Send Email Send Email
 
On Fri, Mar 01, 2002 at 08:01:18AM -0500, Douglas L . Potts wrote:
> On Fri, Mar 01, 2002 at 08:53:40AM +0100 Rainer Stransky wrote:

> > i am working in a development enviroment und hp-ux and clearcase.

[problem discussion deleted]

> On second thought, maybe we should take this off-line.  This is really
> more of a problem with how ClearCase does things, and not vim.  I'll
> help as much as I can.

I also use ClearCase with HP-UX, so when you two figure this out, would
you please post a summary here?  Thanks.

Gary

--
Gary Johnson                 | Agilent Technologies
garyjohn@...     | Spokane, Washington, USA

#26498 From: "Charles E. Campbell" <cec@...>
Date: Fri Mar 1, 2002 3:33 pm
Subject: Re: starting highlight matching brackets in vimrc
cec@...
Send Email Send Email
 
Thus saith Douglas L . Potts:
> 3. Add a line in your vimrc that sets up an autocmd for VimEnter that
>    will execute the mapping for you.
>    ex:  au VimEnter * exe "normal <put script init mapping here>"
>
> Number 3 is untested, but if not this, a similar setup should work.

He settled on a #3 style solution -- seems to work apparently.

Regards,
C Campbell

--
         Charles E Campbell, Jr, PhD            _   __   __
         Goddard Space Flight Center           / /_/\_\_/ /
         cec@...      /_/  \/_//_/
   PGP public key: http://www.erols.com/astronaut/pgp.html

#26499 From: "Kontra, Gergely" <kgergely@...>
Date: Fri Mar 1, 2002 4:08 pm
Subject: Re: 'clever' vimgor
kgergely@...
Send Email Send Email
 
>> I just want to ask, that is it possible (without patching vim) to figure
>> out the last pressed keys in vim?
>>
>> I want to display helpful hints for beginners somewhere, but I really
>> need what the user typed before.
>Do you know the "script" program?  It intercepts everything that's typed
>and stores it in a file.  You could write a similar program that does
>something else with the intercepted key strokes.

Ok, where is it, how can I find it?
I guess is it outside of vim. Am I wrong?
If in vim, tell me the tag, please!

Gergo

+-[Kontra, Gergely @ Budapest University of Technology and Economics]-+
|         Email: kgergely@...,  kgergely@...          |
|  URL:   turul.eet.bme.hu/~kgergely    Mobile: (+36 20) 356 9656     |
+-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+
.
Magyar php mirror es magyar php dokumentacio: http://hu.php.net

#26500 From: "Ron Aaron" <ron@...>
Date: Fri Mar 1, 2002 4:23 pm
Subject: Re: clearcase eclipsed files are lost
ron@...
Send Email Send Email
 
Gary Johnson <garyjohn@...> writes:
>
>I also use ClearCase with HP-UX, so when you two figure this out, would
>you please post a summary here?  Thanks.
>

And I also had problems w/ ClearCase.

Ah, ClearCase!  Sure, it's expensive, but at least it's slow!!

#26501 From: Brandon Metcalf <bmetcalf@...>
Date: Fri Mar 1, 2002 4:53 pm
Subject: Re: clearcase eclipsed files are lost
bmetcalf@...
Send Email Send Email
 
Rainer.Stransky@... writes:

|| i am working in a development enviroment und hp-ux and clearcase.
||
|| In special cases a file in clearcase has to be made to view private and after
|| this file is eclipsed (in do not exactly know what this means in terms of a f
|| system).

There is no reason in ClearCase to intentionally eclipse a file element
or to have one eclipsed to have write access.  If you are getting
eclipsed elements, you are doing something wrong.

Write access to elements is achieved by checking out the element which
gives you a view private file, but doesn't eclipse anything.

Brandon
--
And stop calling me Shirley
    --Doctor Rumack, Airplane

#26502 From: "Press, Michael" <Michael.Press@...>
Date: Fri Mar 1, 2002 6:21 pm
Subject: tabs in gvim?
Michael.Press@...
Send Email Send Email
 
Is there any way for gvim to show each open file with it's own tab? (like
UltraEdit)

Would be much more convenient than dealing with :files and :n#2.

Thanks,
Michael

#26503 From: Rainer Stransky <Rainer.Stransky@...>
Date: Fri Mar 1, 2002 6:40 pm
Subject: Re: clearcase eclipsed files are lost
Rainer.Stransky@...
Send Email Send Email
 
Brandon Metcalf wrote:

> Rainer.Stransky@... writes:
>
> || i am working in a development enviroment und hp-ux and clearcase.
> ||
> || In special cases a file in clearcase has to be made to view private and
after
> || this file is eclipsed (in do not exactly know what this means in terms of a
f
> || system).
>
> There is no reason in ClearCase to intentionally eclipse a file element
> or to have one eclipsed to have write access.  If you are getting
> eclipsed elements, you are doing something wrong.
>
> Write access to elements is achieved by checking out the element which
> gives you a view private file, but doesn't eclipse anything.
>

Thanks, that helps me a lot.

But without a joke. I have to work in a development enviroment, in which all
checkouts (in other views, by other guys) are locked.
So there is no chance for me to do a small quick change on a source without that
tricky workaoround to get a eclipsed private file by:
   mv file.cc file.cc.priv
   cleartool co .
   cleartool rm file.cc
   mv file.cc.priv file.cc
   cleartool unco .

That all will be done in a nice perl scirpt. All guys here in this enviroment
are
working that way.

So my warranted question is, how to setup vim (if possible) to avoid losing the
file, by open it with vim6.0

I am not sure, but i think that behaviour was another one with vim5.4 !?

Rainer

>
> Brandon
> --
> And stop calling me Shirley
>    --Doctor Rumack, Airplane

#26504 From: Michael Naumann <mnaumann@...>
Date: Fri Mar 1, 2002 6:50 pm
Subject: Re: tabs in gvim?
mnaumann@...
Send Email Send Email
 
On Friday 01 March 2002 19:21, Press, Michael wrote:
> Is there any way for gvim to show each open file with it's own tab? (like
> UltraEdit)
>
> Would be much more convenient than dealing with :files and :n#2.

Are you aware of the wonderful :sp command (and it's whole family)
Read all about it under
:help windows

>
> Thanks,
> Michael

Your Welcome, Michael

#26505 From: Brandon Metcalf <bmetcalf@...>
Date: Fri Mar 1, 2002 6:52 pm
Subject: Re: clearcase eclipsed files are lost
bmetcalf@...
Send Email Send Email
 
Rainer.Stransky@... writes:

'' But without a joke. I have to work in a development enviroment, in which all
'' checkouts (in other views, by other guys) are locked.
'' So there is no chance for me to do a small quick change on a source without t
'' tricky workaoround to get a eclipsed private file by:
''   mv file.cc file.cc.priv
''   cleartool co .
''   cleartool rm file.cc
''   mv file.cc.priv file.cc
''   cleartool unco .
''
'' That all will be done in a nice perl scirpt. All guys here in this enviroment
'' working that way.
''
'' So my warranted question is, how to setup vim (if possible) to avoid losing t
'' file, by open it with vim6.0

I realize that doesn't solve your vim problem, but you are creating the
situation by using a broken workflow.  Why do you need to work in a view
other than your own?  That's the whole point of a view; it's supposed to
be your workspace.

If you absolutely have to share a view, then make them group writable by
setting your umask to 002 when the view is created.

Even if I'm not understanding you correctly, the fact that you are
using this Perl script to achieve the commands above demonstrates that
your process is broken.

Brandon
--
And stop calling me Shirley
    --Doctor Rumack, Airplane

#26506 From: Sven Guckes <guckes@...>
Date: Fri Mar 1, 2002 7:00 pm
Subject: Re: journal in vim? -> date+time abbreviations
guckes@...
Send Email Send Email
 
* Rimon Barr <barr@...> [020227 19:22]:
> I don't date the file *each* time that I open it, because I
> open it more often than I would like to date it, but I have
> a quick-and-dirty macro to perform the timestamp for me:
>   map ,date O<Esc>:.!date -I<CR>$a:<CR><Esc>60i-<Esc>O<Esc>
> (Oh, it depends on the date command being available
> on your system, so it won't work on Windows.)

right - it wont work on Windows then.  therefore you
better use the internal function strftime for that:

   iab Ydate <C-R>=strftime("%y%m%d")<CR>
   iab Ytime <C-R>=strftime("%H:%M")<CR>
   iab YDT           <C-R>=strftime("%y%m%d %X")<CR>
   iab YDATE <C-R>=strftime("%a %b %d %T %Z %Y")<CR>

see my vimrc.forall for comments and examples.

Sven

--
Sven Guckes guckes@...          Sven's commented setup files for Vim:
http://www.vim.org/gvimrc           personal   setup file for     GUI Vim
http://www.vim.org/vimrc            personal   setup file for non-GUI Vim
http://www.vim.org/vimrc.forall                setup file for everyone
http://www.vim.org/vimrc.forall.gz  compressed setup file for everyone
Lots of commented options and mappings for everyday editing.

#26507 From: "Kontra, Gergely" <kgergely@...>
Date: Fri Mar 1, 2002 7:18 pm
Subject: Re: 'clever' vimgor
kgergely@...
Send Email Send Email
 
>>Do you know the "script" program?  It intercepts everything that's typed
>>and stores it in a file.  You could write a similar program that does
>>something else with the intercepted key strokes.
>
Is anybody online who knows the answer. I have to go -> at home no
internet :(

Gergo

+-[Kontra, Gergely @ Budapest University of Technology and Economics]-+
|         Email: kgergely@...,  kgergely@...          |
|  URL:   turul.eet.bme.hu/~kgergely    Mobile: (+36 20) 356 9656     |
+-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+
.
Magyar php mirror es magyar php dokumentacio: http://hu.php.net

#26508 From: "Kontra, Gergely" <kgergely@...>
Date: Fri Mar 1, 2002 7:36 pm
Subject: fixed-width fonts download
kgergely@...
Send Email Send Email
 
Hi!

If you find fonts (can be used with vim) please drop me the url, or the
ttf, please.

I don't like the available fonts.

+-[Kontra, Gergely @ Budapest University of Technology and Economics]-+
|         Email: kgergely@...,  kgergely@...          |
|  URL:   turul.eet.bme.hu/~kgergely    Mobile: (+36 20) 356 9656     |
+-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+
.
Magyar php mirror es magyar php dokumentacio: http://hu.php.net

#26509 From: Gary Johnson <garyjohn@...>
Date: Fri Mar 1, 2002 7:37 pm
Subject: Re: clearcase eclipsed files are lost
garyjohn@...
Send Email Send Email
 
On Fri, Mar 01, 2002 at 12:52:09PM -0600, Brandon Metcalf wrote:

> I realize that doesn't solve your vim problem, but you are creating the
> situation by using a broken workflow.  Why do you need to work in a view
> other than your own?  That's the whole point of a view; it's supposed to
> be your workspace.

> Even if I'm not understanding you correctly, the fact that you are
> using this Perl script to achieve the commands above demonstrates that
> your process is broken.

Ditto what Brandon said.  We do multiple-developer development all the
time without stepping on each other and never have to go through the
hoops that you are.  If you want to make a quick change to a locked
file, check out an unreserved copy until the other guy checks in his
changes.  If you have multiple people working on the same set of files
at the same time, each person should really be checking out each file
onto his private branch first.  That way the /main/LATEST version is not
locked.  As each person finishes his changes, he first checks his file
into his private branch, then merges any parallel changes from the main
branch onto his private branch, fixes anything that broke, and merges
the combined changes back to the main branch.  ClearCase is designed for
just this type of development and used properly it works very well.

Gary

--
Gary Johnson                 | Agilent Technologies
garyjohn@...     | Spokane, Washington, USA

#26510 From: "Press, Michael" <Michael.Press@...>
Date: Fri Mar 1, 2002 7:39 pm
Subject: RE: tabs in gvim?
Michael.Press@...
Send Email Send Email
 
Yes, but I don't particularly like split windows - I want each window to be
full size. I edit multiple files all the time using :files, and I really
just want tabs across the top, with each tab showing a filename.  Then I
could use CTRL-TAB and CTRL-SHIFT-TAB to move from file to file.

Many other editors and IDE's use this mechanism.

Michael


-----Original Message-----
From: Michael Naumann [mailto:mnaumann@...]
Sent: Friday, March 01, 2002 1:50 PM
To: Press, Michael; 'vim@...'
Subject: Re: tabs in gvim?


On Friday 01 March 2002 19:21, Press, Michael wrote:
> Is there any way for gvim to show each open file with it's own tab? (like
> UltraEdit)
>
> Would be much more convenient than dealing with :files and :n#2.

Are you aware of the wonderful :sp command (and it's whole family)
Read all about it under
:help windows

>
> Thanks,
> Michael

Your Welcome, Michael

#26511 From: Nikolai 'pcp' Weibull <da.box@...>
Date: Fri Mar 1, 2002 7:47 pm
Subject: Re: fixed-with fonts
da.box@...
Send Email Send Email
 
someone asked for fixed width fonts? i have some at my homepage (below)
under code. they're called imbpcp

--
/* Name: Nikolai 'pcp' Weibull -- Age: 21 -- Born in: Chicago, IL USA *
  * Where @: Gothenburg, Sweden -- Homepage: http://www.pcppopper.org/ *
  * Email: da.box@..., pcp@... -- System: GeForce2 MX 32 *
  * Celeron 667at950, Fujitsu 20.49gb UDMA-66, ASUS CUV4X, 256mb PC133 *
  * main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} */

#26512 From: John Kilbourne <jkilbour@...>
Date: Fri Mar 1, 2002 7:55 pm
Subject: scripts
jkilbour@...
Send Email Send Email
 
To the person looking for something on scripts:
I just bumped into this on
http://pegasus.rutgers.edu/~elflord/vim/

To record keystrokes and play them back (macro record)
qa start recording
q stop recording
@a play back keystrokes

HTH,
John

#26513 From: "Dan Sharp" <dwsharp@...>
Date: Fri Mar 1, 2002 8:05 pm
Subject: RE: tabs in gvim?
dwsharp@...
Send Email Send Email
 
>From: "Press, Michael" <Michael.Press@...>
>
>Yes, but I don't particularly like split windows - I want each window
>to be full size. I edit multiple files all the time using :files, and
>I really just want tabs across the top, with each tab showing a
>filename.  Then I could use CTRL-TAB and CTRL-SHIFT-TAB to move from
>file to file.
>
>Many other editors and IDE's use this mechanism.

Take a look at minibufexpl.vim on VimOnline, which does what you ask,
including the CTRL-TAB and CTRL-SHIFT-TAB movement.  The direct link is:

http://vim.sourceforge.net/scripts/script.php?script_id=159

Dan Sharp


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

#26514 From: "Press, Michael" <Michael.Press@...>
Date: Fri Mar 1, 2002 8:23 pm
Subject: RE: tabs in gvim?
Michael.Press@...
Send Email Send Email
 
That's pretty cool!  Not quite as attractive as true GUI tabs, but it does
have the functionality I'm looking for.

Thanks!

-----Original Message-----
From: Dan Sharp [mailto:dwsharp@...]
Sent: Friday, March 01, 2002 3:05 PM
To: Michael.Press@...; mnaumann@...; vim@...
Subject: RE: tabs in gvim?


>From: "Press, Michael" <Michael.Press@...>
>
>Yes, but I don't particularly like split windows - I want each window
>to be full size. I edit multiple files all the time using :files, and
>I really just want tabs across the top, with each tab showing a
>filename.  Then I could use CTRL-TAB and CTRL-SHIFT-TAB to move from
>file to file.
>
>Many other editors and IDE's use this mechanism.

Take a look at minibufexpl.vim on VimOnline, which does what you ask,
including the CTRL-TAB and CTRL-SHIFT-TAB movement.  The direct link is:

http://vim.sourceforge.net/scripts/script.php?script_id=159

Dan Sharp


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

#26515 From: yahoogroups@...
Date: Fri Mar 1, 2002 9:12 pm
Subject: Not ignore parens in single quotes?
yahoogroups@...
Send Email Send Email
 
The default behaviour of the % movement command is to jump to the matching
parens. It ignores any parens enclosed in single quotes.

This makes it hard to debug Vim scripts and other scripts where I am
constructing a string including '(' and so I *want* to NOT ignore these.

Is there a way I can have Vim NOT ignore parens in single quotes for the
purpose of the % command?

Thanks

__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

#26516 From: Bram Moolenaar <Bram@...>
Date: Fri Mar 1, 2002 9:47 pm
Subject: Re: 'clever' vimgor
Bram@...
Send Email Send Email
 
Kontra Gergely wrote:

> >> I just want to ask, that is it possible (without patching vim) to figure
> >> out the last pressed keys in vim?
> >>
> >> I want to display helpful hints for beginners somewhere, but I really
> >> need what the user typed before.
> >Do you know the "script" program?  It intercepts everything that's typed
> >and stores it in a file.  You could write a similar program that does
> >something else with the intercepted key strokes.
>
> Ok, where is it, how can I find it?
> I guess is it outside of vim. Am I wrong?
> If in vim, tell me the tag, please!

The script program is a program :-).  There should be several sources
available, at least one for the version I'm using on FreeBSD.

--
From "know your smileys":
  :-& Eating spaghetti

  ///  Bram Moolenaar -- Bram@... -- http://www.moolenaar.net  \\\
///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
\\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///

#26517 From: "Michael P. Soulier" <michael.soulier@...>
Date: Sat Mar 2, 2002 12:18 am
Subject: OT: CC bashing Re: clearcase eclipsed files are lost
michael.soulier@...
Send Email Send Email
 
On 01/03/02 Ron Aaron did speaketh:

> Ah, ClearCase!  Sure, it's expensive, but at least it's slow!!

     :)

     They're forcing us to transition to it at work, and initial trials are not
good. They basically said what you did.

     Mike

--
Michael P. Soulier <msoulier@...>, GnuPG pub key: 5BC8BE08
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort."  -Harley Hahn, A Student's Guide to Unix

#26518 From: "Ron Aaron" <ron@...>
Date: Sat Mar 2, 2002 12:57 am
Subject: WAY OT: CC bashing Re: clearcase eclipsed files are lost
ron@...
Send Email Send Email
 
Michael P. Soulier <michael.soulier@...> writes:
>
>    They're forcing us to transition to it at work, and initial trials are not
>good. They basically said what you did.


The problem isn't really Clearcase per-se.  The problem is that the 'dynamic
view' requires a *lot* of network traffic, and when the network isn't super
reliable and *very* fast, it doesn't support very many users each with a
dynamic view, each doing compiles.  At GoXXXXX, where I recently was a victim
of downsizing, we had 60 developers banging on our 100MBit network.  We *used*
to complain that the CVS update was slow.  Hah!  The *regular build* with
Clearcase was three to four times slower, depending on network usage.

It's not a bad product, not at all -- just be careful how you use it!

Of course now, I would be happy to have a *job*, even one working with
Clearcase :-|

Best regards,

Ron

#26519 From: Denis Perelyubskiy <denisp@...>
Date: Sat Mar 2, 2002 12:53 am
Subject: Re: fixed-width fonts download
denisp@...
Send Email Send Email
 
* Kontra, Gergely <kgergely@...> [01-Mar-02 11:37 -0800]:
   >
   >If you find fonts (can be used with vim) please drop me the url, or the
   >ttf, please.

win32 :

http://www.microsoft.com/typography/fontpack/default.htm

My favorite one, since very easy to tell zeroes from letter
'oh', and letter 'l' from number '1', etc. Very practical!

Also, if you look on groups.yahoo.com you may find couple
more messages on the issue. I seem to remember this coming
up once in a while.

denis

--
// mailto: Denis Perelyubskiy <denisp@...>
// icq   : 12359698
// PGP   : http://www.cs.ucla.edu/~denisp/files/pgp.asc

#26520 From: Arun Easi <aeasi@...>
Date: Sat Mar 2, 2002 2:51 am
Subject: input() having completion?
aeasi@...
Send Email Send Email
 
hi,
	 Is it possible (or can this be added in TODO) to have completion
for input() function? Something similar to the one used in "commands",
(like -complete=file).
-Arun

Messages 26491 - 26520 of 138237   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help