In PhpStorm Debugger you can use F8 to stop over, F7 to step into and F9 to continue. You can also add a watch on a variable, jump to code, change the value of a variable, create conditional breakpoints, etc. To finish debugging do the following: Click on the close button. 要減少可以用 f 就不要用 /#IntelliJ#Vim#TDD#極速開發#還可以再快一點. That gvim user is me! I like to say I’m a vi-guy, but I’ve learned that I have to type ‘vim’ at the console to be consistently happy with the editor I get in Linux. I run Windows on the desktop, and I’ve been using gvim for years, but after inheriting another coder’s codebase, it’s clearly time for some more.
The following is only valid when the IdeaVim plugin is installed and enabled.
The IdeaVim plugin emulates Vim in the IntelliJ IDEA editor, including normal, insert, and visual modes, Command-line and Ex modes, Vim regexp and configuration, and other features.
Install the IdeaVim plugin
In the Settings/Preferences dialog Ctrl+Alt+S, select Plugins.
Find the IdeaVim plugin in the Marketplace and click Install.
Restart IntelliJ IDEA.
After you restart the IntelliJ IDEA, Vim emulation is enabled and the editor starts operating in the Vim mode. To disable it, deselect Tools | Vim Emulator in the main menu.
Configure shortcuts
Both Vim and IntelliJ IDEA are keyboard-centric. Your keymap in IntelliJ IDEA may conflict with Vim's key combinations. To resolve this, select the shortcuts you prefer for different actions.
In the Settings/Preferences dialog Ctrl+Alt+S, select Editor | Vim Emulation.
Find the shortcut and corresponding IDE action, and select how you want to handle it when you are using Vim emulation:
Undefined: show a popup notification that suggests to either redefine the IDE shortcut or configure the handler in Vim emulation settings.
IDE: perform the IDE action associated with this shortcut.
Vim: handle it as a Vim shortcut.
Editing modes
With Vim emulation enabled, the cursor is a block when you are in the Normal mode:
To change to the Insert mode, press i
, and the cursor will become a line:
In this mode you can type new code or change existing code. You can also enter other Vim modes: for example, press r
for the Replace mode.
To return to the Normal mode, press Escape.
Vim configuration
Vim is configured using a vimrc file. Similarly, the VimIdea plugin uses an ideavimrc file with the same syntax. Create the configuration file in one of the following locations depending on the operating system:
The location where IntelliJ IDEA looks for ideavimrc depends on the user.home
JVM option, which is set to the user's home directory by default. For more information, see JVM options.

If you already have a vimrc file with your configuration, you can do one of the following:
Include the configuration from vimrc with the
source
command in your ideavimrc file:source ~/.vimrcThis way you can also include other commands in your ideavimrc file, which will be applied only to your Vim emulation in IntelliJ IDEA and will not affect actual Vim configuration.
If you don't want to use your Vim configuration, you can rename .vimrc to .ideavimrc.
Create ideavimrc as a symlink to vimrc if you don't want to modify your Vim emulation in IntelliJ IDEA compared to actual Vim configuration:
Honestly I mostly develop PHP. I've been using Aptana and Sublime for a while now. I started to use VIM since beginning of 2014 and it really improved my productivity. I don't think anything better could happen to me other than forcing myself to learn VIM. Sublime in the other hand was really fast and quick. It was perfect for front-end, PHP, Python... and it's got VIM built-in. I was using Sublime as much as MacVIM, both great.
April 2014, it was. I downloaded PHPStorm, activated trial and started playing around. I saw the light, it was god who guided me to this. It improves my productivity to a whole new level.
Exit Vim
Shortcuts Changes And Tools
Gvim Editor Download
I own a MacBook Air and I've been using TotalTerminal since I purchased the device. I changed toggle shortcut to Cmd + 1. No need of using IDE built-in terminals when it's easier and quicker this way, and it's everywhere.
I installed KeyRemap4MacBook and remapped Esc to Right-Cmd. This is bar far the best keystroke to switch to Normal mode in VIM.
Next I mapped 'Select Next Tab' to Shift + Cmd + k and 'Select Previous Tab' to Shift + Cmd + j in System Preferences -> Shortcuts and then changed switching work-spaces to Cmd + k and Cmd + k too.
Now I could change tabs in TotalTerminal, Chrome and PHPStorm with the same shortcut, and change workspaces with an easier shortcut. I even installed VIM extension on Chrome.
I always split screen into 2 columns. in PHPStorm I use Cmd + l to move cursor into right or left splitter. To move a file into another split without touching the mouse I use Shift + Cmd + l , again a similar shortcut.
These shorcuts make me never use mouse during development. everything from switching desktops and tabs to editing and developing can be done with easy keystrokes. As I first started working with PHPStorm I missed the handy Go Everywhere command triggered by Cmd + p in Sublime, I found that pressing Shift twice does the same in PHPStorm.
Please enable JavaScript to view the comments powered by Disqus.comments powered by Disqus