Questions tagged [filesystem]
questions regarding searching and navigating the filesystem
13
questions with no upvoted or accepted answers
3
votes
0answers
45 views
Netrw problem - 'mt' open new tab instead of marking as target folder
I was playing with netrw and was amazed by the possibility.
I'd like to mark some files with 'mf' and move it to a folder using 'mt'. However, when I press 't', vim seems to interprets it as "open a ...
2
votes
0answers
19 views
Closing the file handle while keeping buffer open
I have a workflow where I edit a .org file using jceb/vim-orgmode which is located in my iCloud directory. I then have an app on my phone which also syncs and uses the same .org file. The problem is ...
2
votes
0answers
220 views
How to escape paths for findfile() and finddir()?
I have run into an escaping problem with the path argument to findfile({name}, {path}) / finddir({name}, {path}).
In my code path is a directory, obtained via fnamemodify(<file>, ':h').
Until ...
2
votes
0answers
56 views
How long can a file be non-existent when I'm saving it in vim
When I'm using vim to edit files in a django application that is running in developer mode I sometimes encounter this crash coming from the auto-reload utility:
File "/home/zefciu/.virtualenvs/15five/...
2
votes
0answers
71 views
Alter how oldfiles are displayed
Is it possible to "preprocess" the oldfiles list so that it's easier to navigate visually?
As far as I can tell, the contents of the oldfiles list are presented as ordinary absolute paths, but with ...
2
votes
1answer
1k views
Open files with “whitespace names” from within Vim with gx
I have a file, e.g. ~/abc def.mp3 that I want to open from within a Vim buffer that already contains these lines.
If there were no whitespaces in the filename, I could simply open the file with the ...
1
vote
2answers
48 views
`cd` to the directory containing the current file
Sometimes I gf to a file in a totally different directory and want to check out that new directory. Is there a way to quickly exit vim and cd into the directory containing the current buffer?
1
vote
0answers
38 views
vimscript - copy a file from one path to another
How do I rewrite this line of code
call system("cp /tmp/foo.txt /tmp/bar.txt")
into a vim command which is more portable and OS-independent?
I've been looking around but checking for "...
1
vote
0answers
447 views
Opening recent files issue
TLDR: How can I open a file from the list of recent files without going to the end of the list to get to the prompt for file number?
In order to open recent files, I do :bro ol and then when I see ...
0
votes
0answers
32 views
Allowing file bookmarks
I work with vim netranger for file management. The version I use doesn't have a bookmark feature for files.
That means to be able to quickly navigate to a common files by a defined keyboard shortcut.
...
0
votes
0answers
62 views
Vim undofile does not work when file is too long
I use a vim persistent undo setup as follows, which have worked all that way here.
set undofile
set undodir=~/.vim/undodir
However now I'm facing a problem when the undofile became too long, notice ...
0
votes
0answers
266 views
How to refresh the oldfiles list without restarting vim?
:browse oldfiles<cr> is useful for quickly navigating to a file I've worked on recently.
Sometimes though, I want to suspend vim and do some grep or ack search and find a new file that I'm ...
-1
votes
1answer
23 views
Is there a way to prevent nvim from editing another file?
When I'm using nvim with firenvim, I use it to only edit the 1 text box in the browser. I typically have to need to open another file. Even with strict security policies, I'd like to disable nvim's ...