I've been using Vrapper in Eclipse for 10+ years and ** love it. I have a project starting that is necessitating using Eclipse Theia (it's a TI project and they base their IDE platform on Theia). Any plans or ability to build Vrapper for Theia? Any other suggestions for getting a VIM like editor for Theia? Thanks Paul.
I've been using Vrapper in Eclipse for 10+ years and ** love it**. I have a project starting that is necessitating using Eclipse Theia (it's a TI project and they base their IDE platform on Theia). Any plans or ability to build Vrapper for Theia?
How do I briefly highlight the text that is being yanked?
Highlighting matching brackets can be activated in vrapper mode if you use "End". Cursor moves for a moment on EOLN and back on last character and matching bracket is highlighted. Can it be used for solution somehow?
Any plans to include multi-cursors plugin in Vrapper ?
Well... the substitution in same line is not really an issue to me. I'll keep the first version then. If you take a look in the question I mentioned in the post above you'll see I tried the macro version first. But it's a lot more keystrokes. I'd prefer the remap version. But taking the oportunity, I would like to ask if you have any plans to include multi-cursors plugin in Vrapper.
Ah, I'm afraid that remap will not function due to at least two missing features: Vrapper does not support expressions like 'string'.'string', never mind functions like repeat(). Parsing or executing them is thus nowhere implemented. Neither is there any support for <expr> remaps or binding remap parameters like v:count1. I don't expect those features to arrive any time soon. Now, I believe it might be doable to implement the "count repeat" operator in Vrapper itself, or at least figure out something...
Recently I learned the very useful cgn command that allows you to change a searched word and use dot to repeat the change to make something similar to Sublime's multi-cursors using vim's ways. The flow is this: Substitute foo by bar in: something whatever.foo blaba.foo then(foo function foo /foo cgn bar ESC ... result: something whatever.bar blaba.bar then(bar function bar This works in Vrapper also. Yet if I have say 20 words to change I found a bit annoying to press dot 20 times. if I use a count...
Hi Kevin - This is a beautiful thing. (My brain actually typo'd on the need for showmatch. Sorry about the confusion there) All I really needed was matchpairs. Supper cool and IOU dinner. Thanks so much for this and also the speedy turn-around. It actually gives one hope...
I just realized that you said you would use matchpairs with showmatch. I only added support for matchpairs, vrapper still doesn't suppoort showmatch and honestly, I'm not even sure where I would begin with that feature. So adding support for matchpairs probably doesn't help you at all... sorry.
So I started looking into this feature request... and then I just kept going. I got it implemented. As far as I can tell, it works exactly like in Vim. You can set matchpairs to a list with =, you can append to the list with +=, and remove from the list with -=. I've created a new build and put it on the unstable update site. Please give it a try and let me know if it works for you. Just add the unstable update site (http://vrapper.sourceforge.net/update-site/unstable) to your eclipse and then run...
Huh. I can't believe this has never come up before. I tried searching through the old issues but I can't find anybody ever requesting it. And it seems like a fairly straightfoward setting too. I'm used to Vim having lots of exceptions and special cases when describing configuration properties but this one doesn't have any wacky syntax or special handling. It seems perfectly reasonable. I created https://github.com/vrapper/vrapper/issues/830 for the feature request. Hopefully I'll have some time to...
Hello, (And thank you for vrapper! It's saved me endless grief.) I'd like to have showmatch work with <>'s, but set matchpairs ... doesn't seem to be supported. I tried it for various combinations of <:> and even (:) etc but saw no effect. With no args nothing happens either. Ditto set mps+=<:>. It would really help for things like XML, HTML JSPs, Java generics. Thanks for any assistance
Hello, As promised, reporting an error with the new RexEx treatment. Given the follwing code: <?php /** * @Route("/whatever", name="whatever") */ public function whateverAction(Request $request) { return $this->render('module\sub\module.html.twig', array( 'var' => 999 )); } I tried to use :%s/module\\/whatever/g and it failed. In Gvim this works fine with and without \v The problem seem to be the matching of the \ character as :%s/module/whatever/g works fine. Normal search (/) also works fine. I...
Hello, As promising, reporting an error with the new RexEx treatment. Given the follwing code: <?php /** * @Route("/whatever", name="whatever") */ public function whateverAction(Request $request) { return $this->render('module\sub\module.html.twig', array( 'var' => 999 )); } I tried to use :%s/module\\/whatever/g and it failed. In Gvim this works fine with and without \v The problem seem to be the matching of the \ character as :%s/module/whatever/g works fine. Normal search (/) also works fine....
Hello, As promising, reporting an error with the new RexEx treatment. Given the follwing code: <?php /** * @Route("/whatever", name="whatever") */ public function whateverAction(Request $request) { return $this->render('module\sub\module.html.twig', array( 'var' => 999 )); } I tried to use :%s/module\\/whatever/g and it failed. In Gvim this works fine with and without \v The problem seem to be the matching of the \ character as :%s/module/whatever/g works fine. Normal search (/) also works fine....
Well glad I could help you. :) Tested it and it worked perfectly. I use VRapper daily, and I'm pretty confident that if it has any problem I'll notice quickly. I'll keep you informed. One thing I noticed is that this change makes VRapper work in 'very magic' VIM mode. Normally in VIM/GVIM to activate very magic you have to use \v before the Regex. I mean now in VRapper you don't use Big Fat Operator (\|) just |. So normally you would do g/@var\|@return\|@param/d and now you only do g/@var|@return|@param/d....
I went ahead and made the code change myself so we are now using Pattern.matcher().find() rather than String.matches(). I've also updated the unstable update site with a new build so you can go ahead and test this change by adding the unstable update site to your eclipse: http://vrapper.sourceforge.net/update-site/unstable I tried doing :g/if|else/d and :g/(if|else)/d and both work great so I think this regex handling is better, but I didn't exhaustively test it. Also, I was going to add some unit...
Check this out. It works, and works fast. If you like it, I'll, fork the package, do some further tests with a customized package and then make a merge request to address this. import java.util.regex.Matcher; import java.util.regex.Pattern; class RegexTest { public static final String TEST_STRING = "/** \n" + " * @var\n" + " * @param\n" + " * @return\n" + " * \n" + " * @ORM\\Column(name=\"serial_number\", type=\"string\", length=100, nullable=false)\n" + " * @Assert\\NotBlank()\n" + " */\n" + "\n"...
I understand. That's by things like that I left Java altogether. But I think in one of the links you mentioned there's the answer: https://stackoverflow.com/a/8923446/2752520 I'm leaving office now, but tomorrow I'll do some tests and get back to you.
Now, with all that said, the java docs explicitly state that A matches method is defined by this class as a convenience for when a regular expression is used just once. ... for repeated matches it is less efficient since it does not allow the compiled pattern to be reused. Since I'm actually running matches() against every line in the range, I could compile this regex and use a different java method. That would provide better performance and potentially result in more sensible regex behavior. The...
On that website, https://www.freeformatter.com/java-regex-tester.html#ad-output look right after the "Results" header and you'll see a line that says: .matches() method: false Because Java's .matches() method would not match the regex. If I set the "Java Regular Expression" to foo and set the "Entry to test against" to foo then it says: .matches() method: true If I change the "Entry to test against" to test foo test it says: .matches() method: false If I then change the "Java Regular Expression"...
Well... ok I understood your point, but I just can't find an example that validate this. I tested it in the site I mentioned above and now I tested it in https://www.freeformatter.com/java-regex-tester.html#ad-output I used the following example code: /** * @var * @param * @return * * @ORM\Column(name="serial_number", type="string", length=100, nullable=false) * @Assert\NotBlank() */ MY LINE START MY TEST And tested it with the @var|@param|@return and MY patterns and both matched fine. Obviously...
Well... ok I understood your point, but I just can't find an example that validate this. I tested it in the site I mentioned above and now I tested it in https://www.freeformatter.com/java-regex-tester.html#ad-output I used the following example code: /** * @var * @param * @return * * @ORM\Column(name="serial_number", type="string", length=100, nullable=false) * @Assert\NotBlank() */ MY LINE START MY TEST And tested it with the @var|@param|@return and MY patterns and both matched fine. Obviously...
Sorry I didn't respond to this when you first posted it. I created an issue on our github page for the feature request. After some quick googling though, it doesn't look like Eclipse supports an explicit cursor color. https://github.com/vrapper/vrapper/issues/823
Notice the comment right before those if statements: //Java's matches() method expects to match the entire string. //If the user isn't explicitly matching beginning or end of //a String, fake it out so Java is happy. If you searched for :g/foo/d and I didn't modify it to .*foo.* then the matches() method would only match on a line whose entire contents was foo. Since that isn't the way vim behaves, I'm changing the regex to .*foo.* so it will match any line that contains your string rather than requiring...
I just wanted to thank you all for keeping this project alive. I use vim for 100% of my everyday work, and if it weren't for this project I would be screwed. After years of vim, I simply can't use any other editor without looking like a moron. Thank you again!
Your workaround works, and now that I know what caused the problem I can think in workarounds for future cases. Thanks. But, I took a look at the code, and didn't understand why do you add these .* in this part of the code: if( ! pattern.startsWith("^")) { //line can start with anything pattern = ".*" + pattern; } if( ! pattern.endsWith("$")) { //line can end with anything pattern += ".*"; } why don't you use the original regex pattern without change ? I used http://myregexp.com/ site to try to find...
By the way, if you wanted to look at the code yourself, I'm looking at: net.sourceforge.vrapper.vim.commands.ExCommandOperation#processLine()
Vrapper doesn't actually have a regex engine of its own. We just pass all regex directly to Eclipse's (Java) regex engine. There are some differences between Vim's and Java's regex engines but I don't think the | "or" is one of them. Let me dig a bit... In the code for :g I see we're really just calling the java String.match() method on each line in the file. In order to check whether a line matches the regex, we're appending .* to the beginning and end (unless it starts with ^ or ends with $). So...
Vrapper doesn't actually have a regex engine of its own. We just pass all regex directly to Eclipse's (Java) regex engine. There are some differences between Vim's and Java's regex engines but I don't think the | "or" is one of them. Let me dig a bit... In the code for :g I see we're really just calling the java String.match() method on each line in the file. In order to check whether a line matches the regex, we're appending .* to the beginning and end (unless it starts with ^ or ends with $). So...
Hello, Does VRapper implements BIGFATOPERATOR ( \|) ? BIGFATOPERATOR is the "or" operator in regexes. The following command isn't working for me: g/@var\|@return\|@param/d Tried in GVIM and it works fine. Am I doing something wrong ? Is there any way to use it on VRapper ?
Vrapper is amazing, greatest plugin in the world, saved my workflow. BUT! There is one thing stopping it from being the greatest plugin in the universe. It needs an option to set a constant cursor color. It is pretty nifty how by default it contrasts the cursor color with the background, but some people will feel much more happier and be way more productive with a constant color. For instance, if my block cursor was always a nice bright green, it would bring me so much joy, I can't put it into words....
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type"> Ah, I didn't read the commands doco carefully enough. That new feature will be useful. Thanks. On 31/1/19 3:27 pm, Kevin wrote: <meta content="text/html; charset=windows-1252" http-equiv="content-type"> Vrapper only receives a Ctrl key press if there is nothing bound to it in Eclipse. So you need to unbind any Ctrl keys you want Vrapper to receive. In Eclipse, go to Window -> Preferences, then General -> Keys. Search for the...
Vrapper only receives a Ctrl key press if there is nothing bound to it in Eclipse. So you need to unbind any Ctrl keys you want Vrapper to receive. In Eclipse, go to Window -> Preferences, then General -> Keys. Search for the key combo you want Vrapper to receive (e.g., Ctrl+F). Select it, then click the "Unbind Command" button. This should remove the binding in the "Binding" column. Click "Apply". Vrapper should now receive the keystrokes as expected. The Vrapper documentation shows all the Ctrl...
Hi, In the latest Eclipse, 2018-12, I am finding that some commands like ctrl-F and ctrl-D are being missed by Vrapper. For example, ctrl-F in Normal mode opens the Find dialog instead of moving forward 1 page. I am using the latest Vrapper 0.74.0 . How is 2018-12 working out for others? Cheers, Rob
0.74.0 Released
0.74.0 Released
version 0.74.0
Yeah, you guessed it, this wouldn't be easy. Regex engines are difficult and complex so there's no way I'm going to implement one myself. I'm using Eclipse's search (and replace) functionality and that Eclipse method just has an isRegex boolean that I can set to true or false. So that's where the :set noregexsearch comes in. Now with that said, if the "magic" feature really only affects the behavior of a couple specific characters, we could add a simple hack to handle those characters. If we want...
Vrapper is great -- thank you, thank you, thank you! I've been using it for well over a year. One little annoyance is the level of what vi/vim/gvim call regex "magic". Vrapper's behavior is more like "very magic" rather than just "magic". In researching this, I see that vrapper uses the Eclipse regex system and the only way to alter this is using the option ":set noregexsearch" to turn it off completely. I'm looking for a way to turn it down so that regex is still available but I don't have to use...
select some text into the unnamed buffer with (yw) visual column highlight a few lines (ctrl-v jjjj) then choose to prepend all lines "I" paste unnamed buffer (ctrl-r ") exit paste mode (ESC) expeted: the yanked word should now prepend each line of the vertical selection. actual: the yanked word prepends only the first line of the selected block If, you use (ctrl-v) perhaps this is an x-ray through to eclipse bindings instead of (ctrl-r ") it works as expected, but you have to do the yank with the...
0.72.0 Released
version 0.72.0
I completely agree. I don't know what I'd do without your vi emulator. THANK YOU...
THANK YOU, for dedicating your free time to develop Vrapper!
Thanks for the response. I don't need to restart Eclipse indeed. Thats good. Are...
This isn't so much intentional behavior as it is a consequence of how vrapper is...
Hello, if you remap a key (for example with ":nmap <space> @q") the new mapping works...
Seconding this ^ Awesome work with this plugin, exactly what I was looking for!
thx. The step to produce the issue is below: Create a file called testing.php Enter...
thx. The step to produce the issue is below: Create a file called testing.php Enter...
Can you explain this somewhat more? What do you mean by mouse cursor? The caret hasn't...
When u type "u" for undo some changes, your mouse cursor is not able to resume to...
version 0.70.0
0.70.0 Released
0.68.1 Released
I find myself thinking I am in command mode but I am in insert mode, or the reverse....
version 0.68.0
0.68.0 released
Please note that simply pressing "Tab" will use Eclipse's indentation settings. Vrapper's...
Please note that simply pressing "Tab" will use Eclipse's tab settings. Vrapper's...
Hi, I have noticed that I am not able to change any of the configruation settings...
You were right, new installation from that URL is ok now. "gcc"" is working ;) Thanks...
I did a full install of version 0.66.0 in Eclipse Mars 4.5.1 and it appears to work....
Hi, I would like to ask, if I'm just one, who has the problem with "gcc" key for...
0.66.0 Released
version 0.66.0
By the way, if you look here: http://vrapper.sourceforge.net/documentation/?topic=commands...
https://github.com/vrapper/vrapper/wiki/Adding-key-bindings-to-commands I hope that...
This may be more of an Eclipse question, if so, apologies. I found a sample that...
0.64.0 Released
0.64.0
I discovered Vrapper a few weeks ago and just wanted to drop a big THANK YOU. For...
Ok, I have been running the 0.63 unstable version for a few hours now, and I don't...
No worries, I am extremely happy with Vrapper, it's a life saver and very stable,...
Hi, sorry that we inconvenienced you with this whole mess. It sounds like you have...
Hi, it took me a long time to trace this issue back to vrapper, but I am running...
If you enable Vrapper after starting Eclipse, does Vrapper work? Typically if we...
Hi! I've launched Eclipse as usual but I've discovered that the eclipse vrapper is...
Hi! I've launched Eclipse as usual but I've discovered that the eclipse vrapper is...
Nope, it just happened again and the error log is clean. :( I forgot to mention I'm...
I'm sorry, I've never heard of that happening before. Can you look at Eclipse's error...
I'm using eclipse mars 4.5.1, but I keep hitting a major snare. Often (but not every...
0.62.0 Released
version 0.62.0
Got it. That's depressing. I wonder if there's a way to flip the relationship? Make...
Sadly we haven't got a real fix yet, even though this has been asked more than a...
Sadly we haven't got a real fix yet, even though this has been asked more than a...
Sadly we haven't got a real fix yet, even though this has been asked more than a...
This is a common issue in Vrapper. The problem is that Eclipse steals all keypresses...
One of the most frequent operations I do in Vim is select some text to search for...