ivanov/vim-ipython — pull request #58 by pag (2013-04-06 22:42:42+00:00)
Title: Making the status buffer friendlier and configurable

This firstly fixes some problems of interaction with the status buffer.

* It sets ``noswapfile`` so that multiple Vim instances can show the status buffer at once without an error about a swap file currently existing appearing – I was really surprised to encounter this problem.
* It sets ``nonumber``. Users are unlikely to want to see line numbers there, even if they use them elsewhere.
* It sets ``nobuflisted`` so that there's no longer an annoying 'vim-ipython' entry in buffer lists like LycosaExplorer.

It also makes the status buffer – particularly the prompts – more configurable.

* At the moment the status prompt is hardcoded to ``In[...]`` and ``Out[...]``, and the colours are fixed. This patch lets the prompt and colours be changed, but leaves the defaults as they currently are. It might be nice if the defaults were instead picked up from the IPython profile, but that increases the complexity.

* This patch shows multiline input more clearly. When running multiple lines, the status currently looks like
```
In[1]: foo = 1
bar = 2
```
this patch changes this so that lines remain lined up correctly:
```
In[1]: foo = 1
...... bar = 2
```

* Finally, this patch makes the newline that is currently added between each input optional.