How can I switch a PHP variable in Sublime Text 2 under Vintage mode?

I'd like press 'yiw' to copy inner word. It's currently right copy a PHP variable include prefix "$" in my vim configuration. But it don't include prefix "$" in my sublime text 2 vintage mode.

How can i do to let it work currently? And I also don't know how to set this in vim.

Answers


In Sublime, open Preferences -> Settings - User and add the following line to it:

"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"

This is the same line taken from the Preferences -> Settings - Default file, only the $ has been removed. While in INSERT MODE, you can now hit CtrlD (or ⌘D on OSX) to select the full variable name, including $, then hit CtrlC (or ⌘C) to copy. For more useful keyboard shortcuts for selecting words, check out this answer of mine.


Need Your Help

Adding MBProgressHud to MPMoviePlayerController

iphone ios objective-c

I am trying to show MBProgressHud to MPMoviePlayerController, for that I am observing notifications for load states of MPMoviePlayer, but somehow Method observing notification never observes

Oracle SDO_NET cannot valid network

oracle plsql network-programming spatial

I have a problem with Oracle Spatial Network package. I'm creating NODE, LINK and PATH based on LRS. When I try call:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.