Carpetsmoker (talk | contribs) (We have a tip for autosaving: Auto save files when focus is lost) |
(Assign tip id + convert to TipNew template + minor clean) |
||
Line 1: | Line 1: | ||
+ | {{TipNew |
||
− | {{TipProposed |
||
− | |id= |
+ | |id=1551 |
− | |previous= |
+ | |previous=1550 |
− | |next= |
+ | |next=1552 |
|created=April 3, 2008 |
|created=April 3, 2008 |
||
|complexity=basic |
|complexity=basic |
||
Line 8: | Line 8: | ||
|version=7.0 |
|version=7.0 |
||
|subpage=/200804 |
|subpage=/200804 |
||
+ | |category1=Python |
||
+ | |category2= |
||
}} |
}} |
||
IPython and Vim make for a great IDE. The following shortcuts can help to make it even better. |
IPython and Vim make for a great IDE. The following shortcuts can help to make it even better. |
||
Line 21: | Line 23: | ||
<pre> |
<pre> |
||
− | + | nnoremap ' :wa<CR>:!dcop konsole-`pidof konsole` session-1 sendSession r<CR><CR> |
|
</pre> |
</pre> |
||
Line 27: | Line 29: | ||
==Comments== |
==Comments== |
||
− | |||
− | ---- |
||
− | [[Category:Python]] |
Revision as of 04:45, 12 May 2008
Tip 1551 Printable Monobook Previous Next
created April 3, 2008 · complexity basic · author Srepmub · version 7.0
IPython and Vim make for a great IDE. The following shortcuts can help to make it even better.
To also avoid having to enter a test command in IPython, I use konsole and dcop to send the command to IPython automatically. In the following, ' is mapped to run the command 'r' in IPython. First, start IPython as follows:
konsole --script ipython
Next, add the following mapping to vimrc:
nnoremap ' :wa<CR>:!dcop konsole-`pidof konsole` session-1 sendSession r<CR><CR>
Please feel free to add more tips for integration with IPython below.