I have been searching and can't find if there is a way to use my custom bindings from my .vimrc file in IPython in a simple, straightforward manner.
I'm looking if not for the solution to this, to some good advice from the experienced users.
Thanks in advance.
It is not possible to use custom bindings from your .vimrc file in IPython directly. IPython uses its own set of keybindings and does not support custom bindings from .vimrc.
However, you can customize the keybindings in IPython by modifying the ipython_config.py file. This file is located in the .ipython directory in your home directory, and it contains settings for various aspects of IPython, including keybindings.
Related
I'm starting to develop a fairly large app and am beginning to want some of the IDE features I've used in the past, such as 'right-click->go to definition' of a function. Does any kind of parallel in developing on the command line exist? This is on an Ubuntu Desktop VM. Is recommended to move to using Sublime?
It depends on your preferred editor, but options definitely exist.
I've used c-tags for vim.
Similar options must exist for emacs; a quick search turned this up.
In my experience though, nothing beats a full-fledged IDE (more full-fledged than Sublime, even) for these kinds of introspective utilities.
If you're using VIM, check VIM Taglist plugin. It has a command that takes you to a ctag definition.
You can create a VIM keymap to go to the word/function under the cursor which would solve your problem.
Would someone be kind enough to show me what exact code is needed in the _vimrc file to get the Python-mode plugin to work! Thanks! (I also read that it is out-dated) is the Jedi plugin that much better? Thanks from the VIM newbie!!!
Bob
You won't be lucky if you expect a single command in your virmrc. Turning vim into a python ide is a collection of multiple plugins you can either manage by hand or use a plugin manager like vundle. Best practice is to use your configuration along with a repository hosted for example on github using git. You can use mercurial or baazar just as well.
Walking through one of the numerous tutorials on the net will be your only chance.
For example here: https://github.com/mbrochh/vim-as-a-python-ide along with the video:
https://www.youtube.com/watch?v=YhqsjUUHj6g
iam searching a VIM Plugin for a Overview from all classes and funcs in a file. You can see this on the right site here: http://www.youtube.com/watch?v=MQy2rVOf-z0
Does anyone know whats the name of this plugin?
best regards
That plugin is called TagList.
My favorite one is TagBar. Screenshots are included in the provided link.
Tagbar is a vim plugin for browsing the tags of source code files. It
provides a sidebar that displays the ctags-generated tags of the
current file, ordered by their scope. This means that for example
methods in C++ are displayed under the class they are defined in.
If you are using Vundle you can install it by adding the following to your vimrc
Bundle 'majutsushi/tagbar'
Does anyone know some shortcuts for FakeVim to change between files?
Is it possible to use buffers in Fake Vim? I accidentally found out that Ctrl+w,w gets you the next window. Does anyone know other? For example getting to the left, right, top, bottom windows?(vim's Ctrl+w,l and others)? Is there any documentation on FakeVim? Is it possible to configure FakeVim's vimrc file to create shortcuts for changing between buffers and the Projects view?
Thanks!
Recently I've been doing most of the changes on FakeVim plugin.
You can find list of Vim commands supported by FakeVim at https://github.com/hluk/FakeVim (recent version from Git master branch).
I'm still not sure how to document the features in Qt Creator. I'll probably implement something like :help <command> in near future.
The FakeVim documentation is severely lacking. This paragraph, for example, is so fuzzy it's borderline irresponsible:
In the FakeVim mode, most keystrokes in the main editor will be intercepted and interpreted in a way that resembles Vim. Documentation for Vim is not included in Qt Creator. For more information on using Vim, see Documentation on the Vim web site.
Basically, without a proper documentation or a look at the editor's source code it's impossible to know what should work, what shouldn't and in which way the behavior of what works deviates from Vim's behavior. And that's what passes for a modern IDE, these days.
Whatever…
I think that your best bet is simply trial and error: since you appear to know how to use Vim you'll have a lot of commands and shortcuts to try.
I am trying to use Vim for web development but having trouble dealing with multiple languages in the same file. I may have php, html, javascript, and css all in the same file, but Vim will base the indentation, coloring, plugins, etc. just based on one of the languages.
Know of any plugins or vimrc hacks to fix this? Thanks.
You can use the dotted 'filetype' syntax. For example, you can :set ft=html.php when you are working on a file containing both HTML and PHP code. I personally do this to activate snipMate's HTML and PHP snippets for the file being edited.
I am trying to use Vim for web development but having trouble dealing with multiple languages in the same file.
I have never tried that myself, but official VIM Wiki has the dedicate article for that: Different syntax highlighting within regions of a file.