Questions tagged [invocation]
Questions about the different options that vim can take from the shell and the different commands to start the editor.
59 questions
1 vote
1 answer
94 views
Opening Vim tab pages via find/xargs with paths including spaces
I often open multiple files in vim using tab pages: $ vim --help | grep tab -p[N] Open N tab pages (default: one for each file) I also use find with xargs and grep -l to obtain a list of ...
1 vote
1 answer
159 views
Command-line option to dump buffer to stdout upon exit? [duplicate]
Say I do the following in my shell (but where cat is actually another command that does meaningful work with stdin): $ cat | very | long | pipeline typing some input lines here... ^D $ However, my ...
2 votes
1 answer
2k views
Setting custom global variables from command-line with `nvim` command
Occasionally I would like to override my standard nvim configuration, for example, to tell it not to load vimtex's folding configuration for a very large or complicated tex file for which I don't need ...
0 votes
0 answers
157 views
calling vim with mpiexec says "Warning: Output is not to a terminal / Warning: Input is not from a terminal"
My question is a bit technical. For specific reason, I need to call vim after mpiexec. Example : mpiexec -n 1 vim mytext.txt But this gives the following warning message: Vim: Warning: Output is not ...
1 vote
2 answers
313 views
project-based config: how to load plugins/colors from custom subdir of $PWD when doing `vim -u local/vimrc ...`?
The Need, the Goal... By "project-based config" I mean a project contained in a git repo that contains all the vim configuration -- vimrc and plugins and colorschemes -- right there in the ...
0 votes
0 answers
95 views
Ex - silent mode won't read commands from a file when stdin is redirected
I'm starting vim in Ex mode, silent mode, on Windows 10, in a standard command prompt window. I'm trying to re-direct stdin from a file. I'm using the terminal version of vim 8.2.2824. It doesn't ...
5 votes
1 answer
340 views
Start vim with ex-command and append it to vim's command history
When I start vim with an ex-command as command line parameter, it won't show up in vim's command history. Why? Can I tell vim to do so? Minimal example: vim -c 'execute "help -c"' Why I'm ...
1 vote
2 answers
145 views
Open file, make changes, save it as a new one. In one step, using the Windows command prompt
I have a file foo.txt with just a one line ab. I want to launch Vim in such a way that it will open this file, swap characters using xp, and then save it as bar.txt. Something like this: gvim foo.txt ...