Title: vimcolor bug
Last modified: August 18, 2016

---

# vimcolor bug

 *  [arricc](https://wordpress.org/support/users/arricc/)
 * (@arricc)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/vimcolor-bug/)
 * My /tmp filled up.
 * Took me a while to track it down to vimcolor. It writes out a code snippet to
   the temp dir, runs vimcolor over that file and generates a second file. Then,
   basically, returns the second file without removing either. Thus, very slowly,
   eventually chews up the disk space.
 * >     ```
   >     --- plugins/dist/wp-vimcolor.php     2005-10-04 06:13:06.000000000 +0100
   >     +++ plugins/vimcolor/wp-vimcolor.php     2007-02-14 22:40:33.086261640 +0000
   >     @@ -95,6 +95,8 @@
   >                 $handle = fopen($out_file, "r");
   >                         $html = fread($handle, filesize($out_file));
   >                 fclose($handle);
   >     +           unlink($out_file);
   >     +           unlink($in_file);
   >            if( $multiline ){
   >                         $html = preg_replace('/r/s','',$html);
   >                         $html = preg_replace('/n/s','',$html);
   >     ```
   > 
 * so, quick two line fix and thats it sorted.

Viewing 1 replies (of 1 total)

 *  [dreamdreams](https://wordpress.org/support/users/dreamdreams/)
 * (@dreamdreams)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/vimcolor-bug/#post-523592)
 * Thanks for the fix and sorry for my inactive. I’ve submitted the change to SVN.

Viewing 1 replies (of 1 total)

The topic ‘vimcolor bug’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [dreamdreams](https://wordpress.org/support/users/dreamdreams/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/vimcolor-bug/#post-523592)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
