MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: use vim to edit mathematica file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91822] Re: use vim to edit mathematica file
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Tue, 9 Sep 2008 06:56:43 -0400 (EDT)
  • Organization: University of Bergen
  • References: <ga2pmd$p57$1@smc.vnet.net>

Peng Yu wrote:
> Hi,
> 
> It seems the vim front end is too old. I'm wondering if it is
> worthwhile to install it.
> 
> http://library.wolfram.com/infocenter/MathSource/2584/
> 
> Anyway, I'm trying to use vim to edit mathematica file. But it seems
> the .nb files are full of something like
> 
> Notebook[{
> Cell[BoxData[
>  RowBox[{
> 
> These things are not readable in the text mode. I'm wondering how to
> get rid of these things. How does people usually do when editing
> mathematica files with vim?
> 

Obviously, notebook (.nb) files are meant to be viewed and edited with 
the Mathematica front end, and not with a text editor.  "Those things" 
are what make up a notebook file, you cannot "get rid of them".  Of 
course you can view an .nb file with Vim (they are structured plain text 
files, and not binary), but that is like viewing a HTML page with a text 
editor instead of a browser.

You can type Mathematica expressions into a text file, and then load and 
evaluate them with Get[].  This is how packages work.

For interactive work, just use the Mathematica front end.


  • Prev by Date: Re: how to convert output file to compatible format
  • Next by Date: Re: Points on a ContourPlot
  • Previous by thread: Re: use vim to edit mathematica file
  • Next by thread: Re: use vim to edit mathematica file