Questions tagged [save]
Writing files to a persistent storage medium (usually a hard drive or SSD). In Vi, this is done with the :write command.
14
questions with no upvoted or accepted answers
2
votes
0
answers
248
views
How to profile save time
Sometimes it takes a really long time to save a file out. Saving the same file after various changes takes various amounts of time. It does not seem to be related to file size.
I've disabled any ...
2
votes
0
answers
72
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
0
answers
94
views
What generates .pz~ backup files from .py files?
I've been doing edit-save-run-bugfix-repeat on a Python test script, using vim as my editor. My directory now looks like this:
-rwxrwxr-x 1 james james 458 Nov 29 23:02 test.pr~*
-rwxrwxr-x 1 james ...
2
votes
1
answer
214
views
Is there an autosave option for vi/nvi
My version is the following:
:ve
Version nvi-1.81.6nb5 (2009-08-11) The CSRG, University of California, Berkeley.
Is it possible to save a file at regular intervals in vi/nvi?
I know there is an "...
1
vote
0
answers
96
views
Run `checktime` only if buffer contents are different to the file contents
Sometimes a checktime causes a prompt to reload, even if the reloading would not change the buffer.
This can be demonstrated (neovim 0.5):
Open file in vim1 (terminal 1)
Open the same file in vim2 (...
1
vote
0
answers
117
views
Automatically saving on FocusLost sometimes stops working for a gvim window
In my ~/.vimrc I have at the moment:
autocmd BufLeave,FocusLost * nested silent! wall
Which most of the time works as I would like, however sometimes it seems saving simply stops working (for a ...
1
vote
0
answers
3k
views
How I configure Vim for use with netrw?
I recently started to use netrw as a file manager next to my editing session. But I had a coupe of issues with it.
First of all netrw reads unhidden buffers from the disk every time. Which made me ...
0
votes
1
answer
80
views
How do I create key mappings for Windows and/or nano Shortcuts?
Having used text editors (mainly Notepad/++) and some IDEs on MS Windows, I've become familiar with their Alt and Ctrl shortcuts to the point that I use them automatically. Having used nano on a GNU/...
0
votes
0
answers
355
views
Neovim tries to run vale through a Autocommand
Whenever I save a .txt file it I get the error:
Error detected while processing BufWritePost Autocommands for "*":
Error running vale: ENOENT: no such file or directory
I have tried using :...
0
votes
1
answer
165
views
Can't use `:wqa` with open terminal buffers
I have next problem: When I use :term buffers the :wqa command produces error:
Which is quite expected because terminal buffers isn't writable. BUT the :wa and :q separatly work.
This is strange.
To ...
0
votes
0
answers
39
views
Cursor get stuck at the statusline bar when saving a .tex file (probably due to vimtex)
To preface this, I'm relatively new to vim, and I'm using Windows Subsytsem for Linux, and the Windows Terminal if this makes any difference.
So whenever I'm editing a .tex file and want to save, ...
0
votes
0
answers
111
views
Why isn't vim recovering the most recent save
I'm having some graphical issues with my setup that means I sometimes need to restart my machine having not saved a file which is currently being edited in vim. However, the saved file which vim ...
0
votes
0
answers
194
views
Auto-save file on keypress
How can I automatically :w save a file after each keypress?
Devs who have used editors like PHPStorm know this is particularly handy so I was looking for a way to achieve the same with vim.
0
votes
0
answers
63
views
nvi: how to define a new command to write using sudo
In Vim, I can define the following command for writing a file using sudo:
command! W :execute ':silent w !sudo tee % > /dev/null' | :edit!
How do I define a similar command in nvi for saving using ...