Skip to main content

Questions tagged [multiple-files]

Questions about the use of vim for handling several files at the same time.

1 vote
3 answers
350 views

This is vim 9.1 on arm64 macOS 15.5. Let's say I open file1.txt with: vim file1.txt but some of the lines I want to write into another file. If I open that file in a buffer with: :split file2.txt or:...
Harv's user avatar
  • 241
3 votes
1 answer
449 views

I'm writing some PowerShell scripts on Windows and they contain references to other script like this: & "$PSScriptRoot\install_scoop.ps1" $PSScriptRoot equals the same directory as the ...
paradroid's user avatar
  • 432
7 votes
4 answers
2k views

I have the following workflow: Open Vim Use Visual mode linewise (V), select some lines, and yank them (y) I get a message "151 lines yanked" or something like this Quit Vim Start another ...
user51883's user avatar
  • 193
1 vote
2 answers
67 views

I opened 3 files by: vim compile.f rtl.f tb.f -O I navigate to a window of interest, which is rtl.f, press gf to open file below cursor and bf to go back rtl.f window. After pressing gf, the window ...
Trung anh nguyễn thành's user avatar
0 votes
2 answers
132 views

When running vim with no command line arguments, it opens a splash screen describing Vim. I would like to control what vim does "by default", so I can make it do something more useful like ...
Greg Nisbet's user avatar
  • 1,951
2 votes
1 answer
183 views

When jumping between buffers in Vim, most the time things work quite smoothly. I like to jump to buffers by writing :b something1*something2, checking if the match is unique by invoking C-d, and if so ...
user22476690's user avatar
2 votes
1 answer
1k views

When using vi for a file A, if I want to go to a file B when the cursor is on file B's filename, I press gf and vi opens file B. After navigating inside file B, if I want to come out to file A, what ...
Chan Kim's user avatar
  • 123
0 votes
0 answers
175 views

Is there a way to keep Explore state? for example, If I open vim at ~/project, open :Lexplore, and navigate in the explore window to ~/project/a/b/c/1.txt. next time I open :Lex i would want to see ...
gcb's user avatar
  • 295
0 votes
2 answers
311 views

So, I wrote next bash script: #!/bin/bash if [ "$#" -gt 1 ]; then path=$1 else path=$(cat subject.txt | tr -d '\n') fi nvim -p 1 "setup/$path/body.tex" -p 1 preamble/...
Vladyslav Rehan's user avatar
1 vote
2 answers
314 views

How can I make :q and other standard ways of exiting quit immediately even if E173 would ordinarily have stopped me in my tracks? Because this doesn't seem possible in regular VIM, how can I do it in ...
user avatar
2 votes
0 answers
300 views

I'm reading Neovim's usr_07.txt. When I start Neovim like neovim t1.txt t2.txt t3.txt, and then issue :next, the shortcut CTRL+^ is supposed to bring me to the previous file (i.e., the alternate file)....
robertspierre's user avatar
3 votes
2 answers
518 views

I'm recently working on a project in vim, and I need to execute the same command in command-line mode multiple times to different files which are in the same folder. like :%s/V1/V2/g Is there a ...
Daybreak Texas's user avatar
1 vote
1 answer
2k views

I'm forking an old vim plugin (effectively dead since 2018) that needed some love. Once I got to the .vim file, I noticed that the functions were all defined in there, which made the file unreasonably ...
gabca's user avatar
  • 11
1 vote
1 answer
52 views

I usually don't use Vim's multiple-files features. If I open Vim on multiple files, it is usually user error. For example, a common mistake of mine is that I end up entering the following: vim vim ...
scottkosty's user avatar
3 votes
0 answers
220 views

I was hoping that I could have splits or tabs in which I would use different netrw instances to see different folders or to use separate hide lists. Unfortunately any change in split/tab A affects ...
user1068352's user avatar

15 30 50 per page
1
2 3 4 5
7