Vim Tips Wiki
(New page: This tip will help resolve the error messages *e97* and *e48[0-9]* which relate to the creation of and or reading of temporary files on machines running MS Windows. *e97* Can't create...)
 
m (Changes text format)
Line 1: Line 1:
  +
<pre>
 
This tip will help resolve the error messages *e97* and
 
This tip will help resolve the error messages *e97* and
 
 
*e48[0-9]* which relate to the creation of and or reading of
 
*e48[0-9]* which relate to the creation of and or reading of
 
 
temporary files on machines running MS Windows.
 
temporary files on machines running MS Windows.
 
   
 
*e97* Can't create diffs blah blah
 
*e97* Can't create diffs blah blah
 
 
*e485* Can't read file blah blah
 
*e485* Can't read file blah blah
 
   
 
I've experienced these errors when trying to use the diff
 
I've experienced these errors when trying to use the diff
 
 
commands or, any shell commands being called via the :! or
 
commands or, any shell commands being called via the :! or
 
:r! commands.
   
 
i.e.,
:r! commands.
 
   
 
:r! sort blah blah blah %
   
 
or
i.e.,
 
 
:r! dir
 
 
:r! sort blah blah blah %
 
 
 
or
 
 
:r! dir
 
 
 
etc.
 
   
 
etc.
   
 
To correct this problem you need to change your environment
 
To correct this problem you need to change your environment
 
variable for $TMP, or $TEMP. You can do this in a couple of
 
variable for $TMP, or $TEMP. You can do this in a couple of
 
 
 
different ways.
 
different ways.
 
 
   
   
 
1. Via the Windows environment settings ...
 
1. Via the Windows environment settings ...
   
 
- There's more than one way to do this and here's one
 
of 'em
   
 
- Right click "My Computer"
- There's more than one way to do this and here's one
 
 
- Choose "Properties"
 
 
- Click the "Advanced" tab
of 'em
 
 
- Click the "Environment Variables" button
 
 
- In the bottom window pane, scroll down to the TMP or
 
 
TEMP variables and highlight them.
- Right click "My Computer"
 
 
- Then click the "Edit" button and change it path to
 
 
whatever directory you have read and write
- Choose "Properties"
 
 
priviledges to.
 
- Click the "Advanced" tab
 
 
- Click the "Environment Variables" button
 
 
- In the bottom window pane, scroll down to the TMP or
 
 
TEMP variables and highlight them.
 
 
- Then click the "Edit" button and change it path to
 
 
whatever directory you have read and write
 
 
priviledges to.
 
 
   
 
2. A much better way!
 
2. A much better way!
 
- Add the following to your _vimrc file
 
  +
- Add the following to your _vimrc file
 
 
let $TMP="c:/tmp"
 
  +
 
 
- Create the path first
 
let $TMP="c:/tmp"
 
 
 
 
- Create the path first
 
 
   
 
I hope this helps resolve the issue for you.
 
I hope this helps resolve the issue for you.
 
- corp-mule
   
  +
</pre>
- corp-mule
 

Revision as of 19:34, 13 November 2007

This tip will help resolve the error messages *e97* and
*e48[0-9]* which relate to the creation of and or reading of
temporary files on machines running MS Windows.

 *e97* Can't create diffs blah blah
 *e485* Can't read file blah blah

I've experienced these errors when trying to use the diff
commands or, any shell commands being called via the :! or
:r!  commands.  

  i.e., 

  :r! sort blah blah blah % 

  or 
  :r! dir

  etc.

To correct this problem you need to change your environment
variable for $TMP, or $TEMP.  You can do this in a couple of
different ways.


 1. Via the Windows environment settings ...

     - There's more than one way to do this and here's one
       of 'em

        - Right click "My Computer"
        - Choose "Properties"
        - Click the "Advanced" tab
        - Click the "Environment Variables" button
        - In the bottom window pane, scroll down to the TMP or
          TEMP variables and highlight them.
        - Then click the "Edit" button and change it path to
          whatever directory you have read and write
          priviledges to.

 2. A much better way!
     - Add the following to your _vimrc file
       
       let $TMP="c:/tmp"
       
        - Create the path first

I hope this helps resolve the issue for you.
 - corp-mule