# Error output to vim

**URL:** https://discourse.processing.org/t/error-output-to-vim/10722
**Category:** p5.js
**Created:** [April 28, 2019, 5:51pm UTC](https://discourse.processing.org/t/error-output-to-vim/10722 "2019-04-28T17:51:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![arielyssou](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@arielyssou](https://discourse.processing.org/u/arielyssou)
#### Post date: [April 28, 2019, 5:51pm UTC](https://discourse.processing.org/t/error-output-to-vim/10722/1 "2019-04-28T17:51:15Z")

</div>

Hi! I’m just beginning with p5.js and I’m trying to setup a “IDE” using Vim. So far I’ve a local host but I’m having trouble with redirecting error messages from the consoles to vim or even to a local file. Is there a way to save stderr to a local file or print it somewhere? As it is the code just don’t work if there is a mistake.

If it helps, here’s how I’m doing things: For any new .js file Vim creates a index.html containing the basic code in the get-started tutorial with the adjusted name of the .js file, and binds a key to open Firefox with file://… or create a local http server with node.js.

Thanks!!!

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [April 29, 2019, 1:52am UTC](https://discourse.processing.org/t/error-output-to-vim/10722/2 "2019-04-29T01:52:50Z")

</div>

the Firefox / Web Developer / Web Console  
can call with  
[ctrl[shift][k]

CHROME  
[ctrl[shift][i]  
[ctrl][~]

no idea if a export of the content is possible.

error and debug info  
( your

```auto
print("something happened"); 

```

) will end up there.

sure can use like saveStrings  
[https://p5js.org/reference/#/p5/saveStrings](https://p5js.org/reference/#/p5/saveStrings)  
to file.

---

<div class="post-metadata">

### Author: ![arielyssou](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@arielyssou](https://discourse.processing.org/u/arielyssou)
#### Post date: [April 29, 2019, 11:21am UTC](https://discourse.processing.org/t/error-output-to-vim/10722/3 "2019-04-29T11:21:07Z")

</div>

Thanks! That helps a lot.
