Vim Tips Wiki
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 3: Line 3:
 
|previous=247
 
|previous=247
 
|next=249
 
|next=249
|created=2002
+
|created=May 17, 2002
 
|complexity=intermediate
 
|complexity=intermediate
 
|author=salmanhalim
 
|author=salmanhalim
Line 52: Line 52:
 
----
 
----
   
For a normal user this could be quite useful.
+
For a normal user this could be quite useful.
   
I want to add a word of warning, though. System administrators should be leery about using this. Applications that watch a file and reparse it automatically may have unexpected behavior if it reads a file which contains a partial update.
+
I want to add a word of warning, though. System administrators should be leery about using this. Applications that watch a file and reparse it automatically may have unexpected behavior if it reads a file which contains a partial update.
   
While this isn't standard practice in Linux, it does happen -- /etc/crontab is oftentimes handled this way, for instance.
+
While this isn't standard practice in Linux, it does happen -- /etc/crontab is oftentimes handled this way, for instance.
   
 
I don't know if Vim holds the file open in Windows or whether it closes after reading and reopens it to write. If it holds it open, it can't happen in Windows because Windows will keep the file locked until the file is closed. If Vim closes and reopens the file, though, it could also happen in Windows.
 
I don't know if Vim holds the file open in Windows or whether it closes after reading and reopens it to write. If it holds it open, it can't happen in Windows because Windows will keep the file locked until the file is closed. If Vim closes and reopens the file, though, it could also happen in Windows.
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)