Questions tagged [file]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
39 views

Slow write/save speed for files on network

I noticed my VIM write/save file for a network path is quite slow. I found out VIM saves files with approximated speed of 20mbps (2.5MB/s). Network is 1Gb/s local area network so I believe the ...
1
vote
2answers
199 views

Write register 0 to file

I am trying to write register 0, into a file. One method that I have found is to use redir: redir! /tmp/3 echo 'hello' redir end which gives me error invalid argument /tmp/3 and I don't know how ...
1
vote
2answers
47 views

Vim not firing inotify events when writing file

Mentioned here as well: https://stackoverflow.com/questions/13312794/inotify-dont-treat-vim-editting-as-a-modification-event Really frustrating issue, how can I force vim to write the file? It ...
3
votes
1answer
51 views

What is the opposite of set ff command?

I can set a file format to unix or windows by using: :set ff=unix Is there a way to check the file format ?
1
vote
2answers
49 views

How to auto-complete filenames in sub-directories when opening them for editing using e.g. `:e </path/to/file>`?

How to autocomplete filenames in sub-directories when opening them for editing using e.g. :e </path/to/file>? When opening files in sub-directories for editing using e.g. :e </path/to/file&...
2
votes
0answers
42 views

gf with search pattern instead of line number

vim file +80 will open file in vim, with cursor at line 80 vim file +/if/ will open file in vim, with cursor at first line containing if. For vim file +80, inside vim, there is gF. The question: ...
2
votes
0answers
60 views

What is the green <92> that's in my file?

I have a file exported from some system, and in vi when I open the file, there's a green <92> in it when I open it up where an ' ought to be. It messed up my bash script and left a line that ...