r11@localhost: bob | 2007-02-19 16:06:17 -0600
[vcscommand.git] / doc / vcscommand.txt
blob6b16cfeb575bfdde761c081163b9a075f6e32d9f
1 *vcscommand.txt*        vcscommand
2 Copyright (c) 2007 Bob Hiestand
4 Permission is hereby granted, free of charge, to any person obtaining a copy
5 of this software and associated documentation files (the "Software"), to
6 deal in the Software without restriction, including without limitation the
7 rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8 sell copies of the Software, and to permit persons to whom the Software is
9 furnished to do so, subject to the following conditions:
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 IN THE SOFTWARE.
22 For instructions on installing this file, type
23         :help add-local-help
24 inside Vim.
26 Author:  Bob Hiestand <bob.hiestand@gmail.com>
27 Credits:  Benji Fisher's excellent MatchIt documentation
29 ==============================================================================
30 1. Contents                                             *vcscommand-contents*
32         Installation            : |vcscommand-install|
33         vcscommand Intro        : |vcscommand|
34         vcscommand Manual       : |vcscommand-manual|
35         Customization           : |vcscommand-customize|
36         SSH "integration"       : |vcscommand-ssh|
37         Bugs                    : |vcscommand-bugs|
39 ==============================================================================
41 2. vcscommand Installation                              *vcscommand-install*
43 The vcscommand plugin comprises four files, vcscommand.vim, vcssvn.vim,
44 vcscvs.vim and vcscommand.txt (this file).  In order to install the plugin,
45 place the vcscommand.vim, vcssvn.vim, and vcscvs.vim files into a plugin
46 directory in your runtime path (please see |add-global-plugin| and
47 |'runtimepath'|. 
49 This help file can be included in the VIM help system by copying it into a
50 'doc' directory in your runtime path and then executing the |:helptags|
51 command, specifying the full path of the 'doc' directory.  Please see
52 |add-local-help| for more details.
54 vcscommand may be customized by setting variables, creating maps, and
55 specifying event handlers.  Please see |vcscommand-customize| for more
56 details.
58 ==============================================================================
60 3. vcscommand Intro                                     *vcscommand*
61                                                         *vcscommand-intro*
63 The vcscommand plugin provides global ex commands for manipulating
64 version-controlled source files, currently those controlled either by CVS or
65 Subversion.  In general, each command operates on the current buffer and
66 accomplishes a separate source control function, such as update, commit, log,
67 and others (please see |vcscommand-commands| for a list of all available
68 commands).  The results of each operation are displayed in a scratch buffer.
69 Several buffer variables are defined for those scratch buffers (please see
70 |vcscommand-buffer-variables|).
72 The notion of "current file" means either the current buffer, or, in the case
73 of a directory buffer (such as Explorer or netrw buffers), the directory (and
74 all subdirectories) represented by the the buffer.
76 For convenience, any vcscommand invoked on a vcscommand scratch buffer acts as
77 though it was invoked on the original file and splits the screen so that the
78 output appears in a new window.
80 Many of the commands accept revisions as arguments.  By default, most operate
81 on the most recent revision on the current branch if no revision is specified.
83 Each vcscommand is mapped to a key sequence starting with the <Leader>
84 keystroke.  The default mappings may be overridden by supplying different
85 mappings before the plugin is loaded, such as in the vimrc, in the standard
86 fashion for plugin mappings.  For examples, please see
87 |vcscommand-mappings-override|.
89 The vcscommand plugin may be configured in several ways.  For more details,
90 please see |vcscommand-customize|.
92 ==============================================================================
94 4. vcscommand Manual                                    *vcscommand-manual*
96 4.1 vcscommand commands                                 *vcscommand-commands*
98 vcscommand defines the following commands:
100 |:VCSAdd|
101 |:VCSAnnotate|
102 |:VCSCommit|
103 |:VCSDelete|
104 |:VCSDiff|
105 |:VCSGotoOriginal|
106 |:VCSLog|
107 |:VCSRevert|
108 |:VCSReview|
109 |:VCSStatus|
110 |:VCSUpdate|
111 |:VCSVimDiff|
113 The following commands are specific to CVS files:
115 |:CVSEdit|
116 |:CVSEditors|
117 |:CVSUnedit|
118 |:CVSWatch|
119 |:CVSWatchAdd|
120 |:CVSWatchOn|
121 |:CVSWatchOff|
122 |:CVSWatchRemove|
123 |:CVSWatchers|
125 The following commands are specific to SVN files:
127 |:SVNInfo|
129 :VCSAdd                                                 *:VCSAdd*
131 This command adds the current file to source control.  Please note, this does
132 not commit the newly-added file.  All parameters to the command are passed to
133 the underlying VCS.
135 :VCSAnnotate                                            *:VCSAnnotate*
137 This command displays the current file with each line annotated with the
138 version in which it was most recently changed.  If an argument is given, the
139 argument is used as a revision number to display.  If not given an argument,
140 it uses the most recent version of the file (on the current branch, if under
141 CVS control).  Additionally, if the current buffer is a VCSAnnotate buffer
142 already, the version number on the current line is used.
144 The filetype of the vcscommand scratch buffer is set to either 'CVSAnnotate'
145 or 'SVNAnnotate' as appropriate, to take advantage of the bundled syntax
146 files.
148 :VCSCommit[!]                                           *:VCSCommit*
150 This command commits changes to the current file to source control.
152 If called with arguments, the arguments are the log message.
154 If '!' is used, an empty log message is committed.
156 If called with no arguments, this is a two-step command.  The first step opens
157 a buffer to accept a log message.  When that buffer is written, it is
158 automatically closed and the file is committed using the information from that
159 log message.  The commit can be abandoned if the log message buffer is deleted
160 or wiped before being written.
162 Alternatively, the mapping that is used to invoke :VCSCommit (by default
163 <Leader>cc) can be used in the log message buffer to immediately commit.  This
164 is useful if the |VCSCommandCommitOnWrite| variable is set to 0 to disable the
165 normal commit-on-write behavior.
167 :VCSDelete                                              *:VCSDelete*
169 Deletes the current file and removes it from source control.  All parameters
170 to the command are passed to the underlying VCS.
172 :VCSDiff                                                *:VCSDiff*
174 With no arguments, this displays the differences between the current file and
175 its parent version under source control in a new scratch buffer.
177 With one argument, the diff is performed on the current file against the
178 specified revision.
180 With two arguments, the diff is performed between the specified revisions of
181 the current file.
183 For CVS, this command uses the |VCSCommandCVSDiffOpt| variable to specify diff
184 options.  If that variable does not exist, a plugin-specific default is used.
185 If you wish to have no options, then set it to the empty string.
187 For SVN, this command uses the |VCSCommandSVNDiffOpt| variable to specify diff
188 options.  If that variable does not exist, the SVN default is used.
189 Additionally, |VCSCommandSVNDiffExt| can be used to select an external diff
190 application.
192 :VCSGotoOriginal                                        *:VCSGotoOriginal*
194 This command jumps to the source buffer if the current buffer is a VCS scratch
195 buffer.
197 :VCSGotoOriginal!
199 Like ":VCSGotoOriginal" but also executes :bufwipeout on all VCS scrach
200 buffers associated with the original file.
202 :VCSLock                                                *:VCSLock*
204 This command locks the current file in order to prevent other users from
205 concurrently modifying it.  The exact semantics of this command depend on the
206 underlying VCS.  This does nothing in CVS.  All parameters are passed to the
207 underlying VCS.
209 :VCSLog                                                 *:VCSLog*
211 Displays the version history of the current file in a new scratch buffer.  If
212 there is one parameter supplied, it is taken as as a revision parameters to be
213 passed through to the underlying VCS.  Otherwise, all parameters are passed to
214 the underlying VCS.
216 :VCSRevert                                              *:VCSRevert*
218 This command replaces the current file with the most recent version from the
219 repository in order to wipe out any undesired changes.
221 :VCSReview                                              *:VCSReview*
223 Displays a particular version of the current file in a new scratch buffer.  If
224 no argument is given, the most recent version of the file on the current
225 branch is retrieved.
227 :VCSStatus                                              *:VCSStatus*
229 Displays versioning information about the current file in a new scratch
230 buffer.  All parameters are passed to the underlying VCS.
233 :VCSUnlock                                              *:VCSUnlock*
235 Unlocks the current file in order to allow other users from concurrently
236 modifying it.  The exact semantics of this command depend on the underlying
237 VCS.  All parameters are passed to the underlying VCS.
239 :VCSUpdate                                              *:VCSUpdate*
241 Updates the current file with any relevant changes from the repository.  This
242 intentionally does not automatically reload the current buffer, though vim
243 should prompt the user to do so if the underlying file is altered by this
244 command.
246 :VCSVimDiff                                             *:VCSVimDiff*
248 Uses vimdiff to display differences between versions of the current file.
250 If no revision is specified, the most recent version of the file on the
251 current branch is used.  With one argument, that argument is used as the
252 revision as above.  With two arguments, the differences between the two
253 revisions is displayed using vimdiff.
254                                                             
255 With either zero or one argument, the original buffer is used to perform the
256 vimdiff.  When the scratch buffer is closed, the original buffer will be
257 returned to normal mode.
258                                                             
259 Once vimdiff mode is started using the above methods, additional vimdiff
260 buffers may be added by passing a single version argument to the command.
261 There may be up to 4 vimdiff buffers total.
262                                                             
263 Using the 2-argument form of the command resets the vimdiff to only those 2
264 versions.  Additionally, invoking the command on a different file will close
265 the previous vimdiff buffers.
267 :CVSEdit                                                *:CVSEdit*
269 This command performs "cvs edit" on the current file.  Yes, the output buffer
270 in this case is almost completely useless.
272 :CVSEditors                                             *:CVSEditors*
274 This command performs "cvs edit" on the current file.
276 :CVSUnedit                                              *:CVSUnedit*
278 Performs "cvs unedit" on the current file.  Again, yes, the output buffer here
279 is basically useless.
281 :CVSWatch                                               *:CVSWatch*
283 This command takes an argument which must be one of [on|off|add|remove].  The
284 command performs "cvs watch" with the given argument on the current file.
286 :CVSWatchAdd                                            *:CVSWatchAdd*
288 This command is an alias for ":CVSWatch add"
290 :CVSWatchOn                                             *:CVSWatchOn*
292 This command is an alias for ":CVSWatch on"
294 :CVSWatchOff                                            *:CVSWatchOff*
296 This command is an alias for ":CVSWatch off"
298 :CVSWatchRemove                                         *:CVSWatchRemove*
300 This command is an alias for ":CVSWatch remove"
302 :CVSWatchers                                            *:CVSWatchers*
304 This command performs "cvs watchers" on the current file.
306 :SVNInfo                                                *:SVNInfo*
308 This command performs "svn info" on the current file.  All parameters are
309 passed directly to svn.
311 4.2 Mappings                                            *vcscommand-mappings*
313 By default, a mapping is defined for each command.  These mappings execute the
314 default (no-argument) form of each command.
316 <Leader>ca VCSAdd
317 <Leader>cn VCSAnnotate
318 <Leader>cc VCSCommit
319 <Leader>cd VCSDiff
320 <Leader>cg VCSGotoOriginal
321 <Leader>cG VCSGotoOriginal!
322 <Leader>cl VCSLog
323 <Leader>cr VCSReview
324 <Leader>cs VCSStatus
325 <Leader>cu VCSUpdate
326 <Leader>cv VCSVimDiff
328 Only for CVS buffers:
330 <Leader>ce CVSEdit
331 <Leader>ci CVSEditors
332 <Leader>ct CVSUnedit
333 <Leader>cwv CVSWatchers
334 <Leader>cwa CVSWatchAdd
335 <Leader>cwn CVSWatchOn
336 <Leader>cwf CVSWatchOff
337 <Leader>cwf CVSWatchRemove
339 Only for SVN buffers:
341 <Leader>ci SVNInfo
343                                                 *vcscommand-mappings-override*
345 The default mappings can be overriden by user-provided instead by mapping to
346 <Plug>CommandName.  This is especially useful when these mappings collide with
347 other existing mappings (vim will warn of this during plugin initialization,
348 but will not clobber the existing mappings).
350 For instance, to override the default mapping for :VCSAdd to set it to '\add',
351 add the following to the vimrc:
353 nmap \add <Plug>VCSAdd
355 4.3 Automatic buffer variables                  *vcscommand-buffer-variables*
357 Several buffer variables are defined in each vcscommand result buffer.  These
358 may be useful for additional customization in callbacks defined in the event
359 handlers (please see |vcscommand-events|).
361 The following variables are automatically defined:
363 b:VCSCommandOriginalBuffer                      *b:VCSCommandOriginalBuffer*
365 This variable is set to the buffer number of the source file.
367 b:VCSCommandCommand                             *b:VCSCommandCommand*
369 This variable is set to the name of the vcscommand that created the result
370 buffer.
372 b:VCSCommandSourceFile                          *b:VCSCommandSourceFile*
374 This variable is set to the name of the original file under source control.
376 b:VCSCommandVCSType                             *b:VCSCommandVCSType*
378 This variable is set to the type of the source control.  This variable is also
379 set on the original file itself.
380 ==============================================================================
382 5. Configuration and customization                      *vcscommand-customize*
383                                                         *vcscommand-config*
385 The vcscommand plugin can be configured in several ways:  by setting
386 configuration variables (see |vcscommand-options|) or by defining vcscommand
387 event handlers (see |vcscommand-events|).  Additionally, the vcscommand plugin
388 supports a customized status line (see |vcscommand-statusline| and
389 |vcscommand-buffer-management|).
391 5.1 vcscommand configuration variables                  *vcscommand-options*
393 Several variables affect the plugin's behavior.  These variables are checked
394 at time of execution, and may be defined at the window, buffer, or global
395 level and are checked in that order of precedence.
398 The following variables are available:
400 |VCSCommandCommitOnWrite|
401 |VCSCommandCVSDiffOpt|
402 |VCSCommandCVSExec|
403 |VCSCommandDeleteOnHide|
404 |VCSCommandDiffSplit|
405 |VCSCommandEdit|
406 |VCSCommandEnableBufferSetup|
407 |VCSCommandResultBufferNameExtension|
408 |VCSCommandResultBufferNameFunction|
409 |VCSCommandSplit|
410 |VCSCommandSVNDiffExt|
411 |VCSCommandSVNDiffOpt|
412 |VCSCommandSVNExec|
414 VCSCommandCommitOnWrite                         *VCSCommandCommitOnWrite*
416 This variable, if set to a non-zero value, causes the pending commit
417 to take place immediately as soon as the log message buffer is written.
418 If set to zero, only the VCSCommit mapping will cause the pending commit to
419 occur.  If not set, it defaults to 1.
421 VCSCommandCVSExec                               *VCSCommandCVSExec*
423 This variable controls the executable used for all CVS commands  If not set,
424 it defaults to "cvs".
426 VCSCommandDeleteOnHide                          *VCSCommandDeleteOnHide*
428 This variable, if set to a non-zero value, causes the temporary result buffers
429 to automatically delete themselves when hidden.
431 VCSCommandCVSDiffOpt                            *VCSCommandCVSDiffOpt*
433 This variable, if set, determines the options passed to the diff command of
434 CVS.  If not set, it defaults to 'u'.
436 VCSCommandDiffSplit                             *VCSCommandDiffSplit*
438 This variable overrides the |VCSCommandSplit| variable, but only for buffers
439 created with |:VCSVimDiff|.
441 VCSCommandEdit                                  *VCSCommandEdit*
443 This variable controls whether the original buffer is replaced ('edit') or
444 split ('split').  If not set, it defaults to 'split'.
446 VCSCommandEnableBufferSetup                     *VCSCommandEnableBufferSetup*
448 This variable, if set to a non-zero value, activates VCS buffer management
449 mode see (|vcscommand-buffer-management|).  This mode means that the
450 'VCSCommandBufferInfo' variable is filled with version information if the file
451 is VCS-controlled.  This is useful for displaying version information in the
452 status bar.
454 VCSCommandResultBufferNameExtension     *VCSCommandResultBufferNameExtension*
456 This variable, if set to a non-blank value, is appended to the name of the VCS
457 command output buffers.  For example, '.vcs'.  Using this option may help
458 avoid problems caused by autocommands dependent on file extension.
460 VCSCommandResultBufferNameFunction      *VCSCommandResultBufferNameFunction*
462 This variable, if set, specifies a custom function for naming VCS command
463 output buffers.  This function is expected to return the new buffer name, and
464 will be passed the following arguments:
466   command - name of the VCS command being executed (such as 'Log' or
467   'Diff').
468   
469   originalBuffer - buffer number of the source file.
470   
471   vcsType - type of VCS controlling this file (such as 'CVS' or 'SVN').
472   
473   statusText - extra text associated with the VCS action (such as version
474   numbers).
476 VCSCommandSplit                                 *VCSCommandSplit*
478 This variable controls the orientation of the various window splits that
479 may occur.
481 If set to 'horizontal', the resulting windows will be on stacked on top of
482 one another.  If set to 'vertical', the resulting windows will be
483 side-by-side.  If not set, it defaults to 'horizontal' for all but
484 VCSVimDiff windows.
486 VCSCommandSVNDiffExt                            *VCSCommandSVNDiffExt*
488 This variable, if set, is passed to SVN via the --diff-cmd command to select
489 an external application for performing the diff.
491 VCSCommandSVNDiffOpt                            *VCSCommandSVNDiffOpt*
493 This variable, if set, determines the options passed with the '-x' parameter
494 to the SVN diff command.  If not set, no options are passed.
496 VCSCommandSVNExec                               *VCSCommandSVNExec*
498 This variable controls the executable used for all SVN commands  If not set,
499 it defaults to "svn".
501 5.2 VCSCommand events                           *vcscommand-events*
503 For additional customization, vcscommand can trigger user-defined events.
504 Event handlers are provided by defining User event autocommands (see
505 |autocommand|, |User|) in the vcscommand group with patterns matching the
506 event name.
508 For instance, the following could be added to the vimrc to provide a 'q'
509 mapping to quit a vcscommand scratch buffer:
511 augroup VCSCommand
512   au User VCSBufferCreated silent! nmap <unique> <buffer> q: bwipeout<cr>
513 augroup END
515 The following hooks are available:
517 VCSBufferCreated                This event is fired just after a vcscommand
518                                 result buffer is created and populated.  It is
519                                 executed within the context of the vcscommand
520                                 buffer.  The vcscommand buffer variables may
521                                 be useful for handlers of this event (please
522                                 see |vcscommand-buffer-variables|).
524 VCSBufferSetup                  This event is fired just after vcscommand buffer
525                                 setup occurs, if enabled.
527 VCSPluginInit                   This event is fired when the vcscommand plugin
528                                 first loads.
530 VCSPluginFinish                 This event is fired just after the vcscommand
531                                 plugin loads.
533 VCSVimDiffFinish                This event is fired just after the VCSVimDiff
534                                 command executes to allow customization of,
535                                 for instance, window placement and focus.
537 Additionally, there is another hook which is used internally to handle loading
538 the multiple scripts in order.  This hook should probably not be used by an
539 end user without a good idea of how it works.  Among other things, any events
540 associated with this hook are cleared after they are executed (during
541 vcscommand.vim script initialization).
543 VCSLoadExtensions               This event is fired just before the
544                                 VCSPluginFinish.  It is used internally to
545                                 execute any commands from the VCS
546                                 implementation plugins that needs to be
547                                 deferred until the primary plugin is
548                                 initialized.
550 5.3 vcscommand buffer naming                            *vcscommand-naming*
552 vcscommand result buffers use the following naming convention:
553 [{VCS type} {VCS command} {Source file name}]
555 If additional buffers are created that would otherwise conflict, a
556 distinguishing number is added:
558 [{VCS type} {VCS command} {Source file name}] (1,2, etc)
560 5.4 vcscommand status line support                      *vcscommand-statusline*
562 It is intended that the user will customize the |'statusline'| option to
563 include vcscommand result buffer attributes.  A sample function that may be
564 used in the |'statusline'| option is provided by the plugin,
565 VCSCommandGetStatusLine().  In order to use that function in the status line, do
566 something like the following:
568 set statusline=%<%f\ %{VCSCommandGetStatusLine()}\ %h%m%r%=%l,%c%V\ %P
570 of which %{VCSCommandGetStatusLine()} is the relevant portion.
572 The sample VCSCommandGetStatusLine() function handles both vcscommand result
573 buffers and VCS-managed files if vcscommand buffer management is enabled
574 (please see |vcscommand-buffer-management|).
576 5.5 vcscommand buffer management                *vcscommand-buffer-management*
578 The vcscommand plugin can operate in buffer management mode, which means that
579 it attempts to set a buffer variable ('VCSCommandBufferInfo') upon entry into
580 a buffer.  This is rather slow because it means that the VCS will be invoked
581 at each entry into a buffer (during the |BufEnter| autocommand).
583 This mode is disabled by default.  In order to enable it, set the
584 |VCSCommandEnableBufferSetup| variable to a true (non-zero) value.  Enabling
585 this mode simply provides the buffer variable mentioned above.  The user must
586 explicitly include information from the variable in the |'statusline'| option
587 if they are to appear in the status line (but see |vcscommand-statusline| for
588 a simple way to do that).
590 The 'VCSCommandBufferInfo' variable is a list which contains, in order, the
591 revision of the current file, the latest revision of the file in the
592 repository, and (for CVS) the name of the branch.  If those values cannot be
593 determined, the list is a single element:  'Unknown'.
595 ==============================================================================
597 6. SSH "integration"                                    *vcscommand-ssh*
599 The following instructions are intended for use in integrating the
600 vcscommand.vim plugin with an SSH-based CVS environment.
602 Familiarity with SSH and CVS are assumed.
604 These instructions assume that the intent is to have a message box pop up in
605 order to allow the user to enter a passphrase.  If, instead, the user is
606 comfortable using certificate-based authentication, then only instructions
607 6.1.1 and 6.1.2 (and optionally 6.1.4) need to be followed; ssh should then
608 work transparently.
610 6.1 Environment settings                                *vcscommand-ssh-env*
612 6.1.1 CVSROOT should be set to something like:
614         :ext:user@host:/path_to_repository
616 6.1.2 CVS_RSH should be set to:
618         ssh
620         Together, those settings tell CVS to use ssh as the transport when
621         performing CVS calls.
623 6.1.3 SSH_ASKPASS should be set to the password-dialog program.  In my case,
624         running gnome, it's set to:
626         /usr/libexec/openssh/gnome-ssh-askpass
628         This tells SSH how to get passwords if no input is available.
630 6.1.4 OPTIONAL.  You may need to set SSH_SERVER to the location of the cvs
631         executable on the remote (server) machine.
633 6.2 CVS wrapper program                         *vcscommand-ssh-wrapper*
635 Now you need to convince SSH to use the password-dialog program.  This means
636 you need to execute SSH (and therefore CVS) without standard input.  The
637 following script is a simple perl wrapper that dissasociates the CVS command
638 from the current terminal.  Specific steps to do this may vary from system to
639 system; the following example works for me on linux.
641 #!/usr/bin/perl -w
642 use strict;
643 use POSIX qw(setsid);
644 open STDIN, '/dev/null';
645 fork and do {wait; exit;};
646 setsid;
647 exec('cvs', @ARGV);
649 6.3 Configuring vcscommand.vim                  *vcscommand-ssh-config*
651 At this point, you should be able to use your wrapper script to invoke CVS with
652 various commands, and get the password dialog.  All that's left is to make CVS
653 use your newly-created wrapper script.
655 6.3.1 Tell vcscommand.vim what CVS executable to use.  The easiest way to do this
656         is globally, by putting the following in your .vimrc:
658         let VCSCommandCVSExec=/path/to/cvs/wrapper/script
660 6.4 Where to go from here                       *vcscommand-ssh-other*
662 The script given above works even when non-SSH CVS connections are used,
663 except possibly when interactively entering the message for CVS commit log
664 (depending on the editor you use... VIM works fine).  Since the vcscommand.vim
665 plugin handles that message without a terminal, the wrapper script can be used
666 all the time.
668 This allows mixed-mode operation, where some work is done with SSH-based CVS
669 repositories, and others with pserver or local access.
671 It is possible, though beyond the scope of the plugin, to dynamically set the
672 CVS executable based on the CVSROOT for the file being edited.  The user
673 events provided (such as VCSBufferCreated and VCSBufferSetup) can be used to
674 set a buffer-local value (b:VCSCommandCVSExec) to override the CVS executable
675 on a file-by-file basis.  Alternatively, much the same can be done (less
676 automatically) by the various project-oriented plugins out there.
678 It is highly recommended for ease-of-use that certificates with no passphrase
679 or ssh-agent are employed so that the user is not given the password prompt
680 too often.
682 ==============================================================================
684 7. Known bugs                                           *vcscommand-bugs*
686 Please let me know if you run across any.
688 CVSUnedit may, if a file is changed from the repository, provide prompt text
689 to determine whether the changes should be thrown away.  Currently, that text
690 shows up in the CVS result buffer as information; there is no way for the user
691 to actually respond to the prompt and the CVS unedit command does nothing.  If
692 this really bothers anyone, please let me know.
694 VCSVimDiff, when using the original (real) source buffer as one of the diff
695 buffers, uses some hacks to try to restore the state of the original buffer
696 when the scratch buffer containing the other version is destroyed.  There may
697 still be bugs in here, depending on many configuration details.
699 vim:tw=78:ts=8:ft=help