Vim binding in browsers - vim

I have been googling for a way to use vim bindings inside normal text fields in chrome. I've tried vmium and cVim but I can't figure out whether they have the functionality I'm looking for.
An example is this exact text area in which I'm typing my question. I'd like to be able to press Esc and go to vim command mode in here, and start deleting a line pressing dd.
Would that be possible? Or those plugins are just for navigation shortcuts?

Here's the answer!
Those plugins are for navigation only. If you want a Vi-like
experience in Chrome's textareas, try Wasavi. – #romainl

The cVim plugin allows for keyboard shortcuts to manipulate text inside text boxes. However, the shortcuts are not the same as vim and there are not as many. After installing the extension type ":help" to see the list of shortcuts.

Related

plugin to vim that shows definition of function/macro/struct in a popup box?

Im using vim with ctag+tagbar plugin to navigate through kernel code and its amazing ! Thanks to a guide I saw here.
I read here about some nice shortcuts for ctags that helps a lot, but I couldnt find a way that a definition(of structs/function etc) would show in popup box - something like eclipse ide.
Is there a way to do so with ctag? is there a plug-in I can add to vim that would that ? so when the mouse cursor(or also keyboard cursor) on function a popup box next to it will show?
Thanks!
Generally, you should avoid trying to use Vim as an IDE. It's meant to be a modular text editor.
Having said that, if you are looking for eclipse functionality inside of Vim, you may want to consider eclim. Another good set of plugins are the Clang based tools, like clang-format and YouCompleteMe.
ctags is very useful plugin, but if you also use ctags you can then copy file http://cscope.sourceforge.net/cscope_maps.vim to your ~/.vim/plugin directory and this will add keymappings that will allow you to jump to definition or show it in horizontal or vertical split.
I also added to my cscope_maps file an extra set of mappings like so:
nmap <C-h>g :tab cs find g <C-R>=expand("<cword>")<CR><CR>
to open my search in a new tab.
Example above allows you to use Ctrl+h and then g to "find global definition(s) of the token under cursor" and open it in a new tab.
Consider using cscope- it can also work with ctags (I always use both).
I know that this is not a pop-up window, but vim is not an IDE.

Is there a Vim "training wheels" plugin for displaying available shortcuts similar to nano

I'm a long time user of GUI IDEs like PhpStorm but I see the value in learning a CLI editor like Vim for when tapping into remote servers. I'm learning commands on a need-to-know basis, but I'd like to see common possible keystrokes similar to how the Nano editor does it at the bottom. Is there a Vim plugin to display shortcuts at the bottom of the screen (or something similar)?
In absence of a plugin that does exactly what you want, you can still do:
:h index

how to set up brace autocompletion in vim?

I want vim to autocomplete my braces, eg. when I input ( , vim should auto type ) and move the cursor to the middle of the braces automatically for me, just like all the other text editors do.
This seems easy but I haven't found a proper way. I installed YouCompleteMe but it doesn't seem to solve my problem. What can I do to get the feature I want?
Have a look at the Automatically append closing characters page on the Vim Tips Wiki. It describes some simple setups, and has a list of plugins that offer this functionality. I personally use the AutoClose plugin, but only occasionally, as I don't find this functionality very helpful.

Is there a way to switch between tabs in vim using `⌘ + ⌥` - `left or right` like Google Chrome or Sublime Text?

I realize this may be a small thing, but I enjoy being able to quickly switch between current tabs this way. I'm basically looking for how to put this in my .vimrc file. I've edited key bindings plenty for Sublime Text but not for Vim.
I'm using iTerm as the GUI.
Thanks for any davice!
You can't do that in CLI Vim because:
it doesn't understand multiple modifier keys
it doesn't understand the ⌘ key anyway (only MacVim does and only in its GUI incarnation)
But you can create custom shortcuts in iTerm itself that send raw characters to the terminal.
Anyway, the default gt and gT are far better, buit-in and guaranteed to work everywhere. What is the most important weapon in your arsenal? Vim or Chrome? Get used to Vim's way or you'll never rip any benefit.

how to configure vim commands to windows style?

My job involves working on Windows, *ix and with variety of IDE's like Eclipse, Visual Studio. Sometimes I really don't want to open Eclipse for little editing so I would prefer simple text editor like Vim, but the keys for the commands are horrible to me, I would like to setup Vim command keys to simple and modern style.
Can someone guide me how to configure Vim commands to simple keys like Ctrl+C or Ctrl+V for copy paste (through clipboard) or Shift+→, Shift+← for selecting text.
See this question: How do I configure VIM for using Ctrl-C Ctrl-V as copy paste to and from system buffer in ubuntu?
and the over all help on how to do key mapping here: How to make a keymap
It's not the answer you're looking for, but I'm with hammar. For example the Mac version of vim has the standard Mac-style copy/paste shortcut keys "baked in" yet I use the default vim keybindings now, since, like yourself, I hop about Linux/Windows/Mac, and having the same vim keyboard shortcuts.
Conversely, you'll find managing your personalized, if unorthodox, key bindings more onerous than simply "going vim."
I presume you've "worked" the vimtutor?

Resources