Questions tagged [open]
The open tag has no summary.
9 questions
4 votes
1 answer
612 views
How do I open the current file in the default application using Neovim?
In the terminal, I can open a file with its default application using this command: open example.txt In some Linux systems, I need to use xdg-open instead of open, like this: xdg-open example.txt ...
3 votes
2 answers
142 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
1 answer
401 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
1 answer
933 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
2 answers
1k 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
1 answer
146 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
2 answers
1k 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
1 answer
243 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
2 answers
1k 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 list ...