Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [open]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
2 answers
49 views

Open file under cursor which name starts from slash but force search path to the current directory?

Consider the case of html file that has a form tag with action attribute and value of /login.php: action="/login.php" In which case login.php will be searched in the same directory as a ...
user avatar
  • 229
1 vote
1 answer
102 views

How can I open the last opened file by vim and go to a specific line?

I want a bash function to open the last file opened by vim and goes to a specfic line I tried vil() { vim -c "normal! '\''0 :$1" }
user avatar
  • 165
0 votes
1 answer
77 views

How do I open a relative path under the cursor

I often have file log where there are several relative path to files. The paths are relative to the location of the filelog. My understanding is that I'm able to open the relative path if the CWD of ...
user avatar
1 vote
2 answers
230 views

Pipe file list to vim and browser them like a folder

Is it possible to pipe list of files e.g. from grep and have this file list opened in vim file manager in similar fashion like when you open a folder with vim? Note that I do not want to just write ...
user avatar
  • 13
1 vote
1 answer
58 views

GVim on Windows 7 - open file sets default suffix, want all suffixes

In GVim running on Windows 10, when I open a file, the displayed files are limited to the suffix of the file currently being editted, e.g., "C Source Files (*.c)". I can change the pull down ...
user avatar
  • 11
2 votes
2 answers
205 views

How to open :Explore for a directory under the cursor?

I wonder how to open a file from a directory under the cursor. I have managed to do it for simple directories, but it requires they are one single word and are located in the current working ...
user avatar
3 votes
1 answer
125 views

How to open multiple files with cursor for all files being at the last line?

My experiments generate several log files, which I sometimes monitor manually. Some of the log files have an error message in the last line. I want to open all log files with the cursor located at ...
user avatar
2 votes
2 answers
591 views

List files if there are too many of them

I often want to open files using the wildcards like :e **/foo.bar However every now and then I get an E77: Too many file names What I would like to have would be to add to that error message a ...
user avatar