lambdalisue / vim-gina

👣 Asynchronously control git repositories in Neovim/Vim 8
http://www.vim.org/scripts/script.php?script_id=5531
MIT License
688 stars 27 forks source link

Consider support +cmd #35

Closed lambdalisue closed 7 years ago

lambdalisue commented 7 years ago
                            *+cmd* *[+cmd]*
The [+cmd] argument can be used to position the cursor in the newly opened
file, or execute any other command:
    +       Start at the last line.
    +{num}      Start at line {num}.
    +/{pat}     Start at first line containing {pat}.
    +{command}  Execute {command} after opening the new file.
            {command} is any Ex command.
To include a white space in the {pat} or {command}, precede it with a
backslash.  Double the number of backslashes. >
    :edit  +/The\ book       file
    :edit  +/dir\ dirname\\      file
    :edit  +set\ dir=c:\\\\temp  file
Note that in the last example the number of backslashes is halved twice: Once
for the "+cmd" argument and once for the ":set" command.