Questions tagged [open]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
38 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 ...
1
vote
1answer
60 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" }
0
votes
1answer
47 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 ...
1
vote
2answers
137 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 ...
1
vote
1answer
47 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 ...
2
votes
2answers
158 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 ...
3
votes
1answer
101 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 ...
2
votes
2answers
451 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 ...