I had a brief play around with the example, and pretty quickly came across bugs and unimplemented commands (for example: 'b', 'e' and 'O' are missing, but 'o' acts like 'O'). I like the way the cursor changes colour to hint at the current mode. However, what I'd really love would be a bookmarklet I could click to Vi-ify every on the current page. I've got "It's All Text" set up in Firefox to open s in gvim, but it's…
The Pentadactyl plugin for Firefox ( http://dactyl.sourceforge.net/pentadactyl/ ), which is a better-maintained fork of the well-known Vimperator, allows you to hit in any textarea or text input to enable Vim-style keybindings inline. opens the text for editing in an actual Vim instance, like the plugin you mentioned. Of course, Pentadactyl changes a lot about how the browser works beyond just text editing, so it may…
Web Vi
11–20 of 27 posts
Re: Web Vi
#12Re: Web Vi
#13Earlier quoted context omitted.
Bookmarklet: javascript:(function(){var d=document;var s=d.createElement('script');var t=d.getElementsByTagName('textarea');s.setAttribute('src','http://webvi.googlecode.com/svn/trunk/lib/webvi.js);d.body.appendChild(s);for(var i in t){if(typeof t[i]=='object')t[i].setAttribute('class','webvi');}webvi_init();})();
Thanks for that! I had to make some changes to get it working on my machine: javascript:(function() {var d=document;var t=d.getElementsByTagName('textarea');for(var i in t){if(typeof t[i]=='object') t[i].setAttribute('class','webvi');}var s=d.createElement('script');s.async=false;s.setAttribute('src','http://webvi.googlecode.com/svn/trunk/lib/webvi.js');d.body.appendChild(s);webvi_init();})(); In particular, you miss…
javascript:(function(){var d=document;var t=d.getElementsByTagName('textarea');for(var i in t){if(typeof t[i]=='object') t[i].setAttribute('class','webvi');} var s=d.createElement('script');s.setAttribute('src','http://webvi.googlecode.com/svn/trunk/lib/webvi.js');d.body.appendChild(s);s.onload=function(){webvi_init();};})();Re: Web Vi
#14Re: Web Vi
#15Keybindings are way off on non-qwerty keyboards.
I also tried switching to a qwerty keyboard layout on my computer, but then I'm told that ':' is not a valid command (this might have to do with my lack of vi-savyness, so I'm taking tips - but using ':' to enter some commands is how it works on my linux box anyway).
Re: Web Vi
#16http://gpl.internetconnection.net/vi/
What disappoints me about all these implementations is the absence of text objects, though. I love getting edition words or parentheses using commands such as caw and ci"
Re: Web Vi
#17Earlier quoted context omitted.
Thanks for that! I had to make some changes to get it working on my machine: javascript:(function() {var d=document;var t=d.getElementsByTagName('textarea');for(var i in t){if(typeof t[i]=='object') t[i].setAttribute('class','webvi');}var s=d.createElement('script');s.async=false;s.setAttribute('src','http://webvi.googlecode.com/svn/trunk/lib/webvi.js');d.body.appendChild(s);webvi_init();})(); In particular, you miss…
I got it working on Chrome by executing webvi_init() on s.onload(): javascript:(function(){var d=document;var t=d.getElementsByTagName('textarea');for(var i in t){if(typeof t[i]=='object') t[i].setAttribute('class','webvi');} var s=d.createElement('script');s.setAttribute('src','http://webvi.googlecode.com/svn/trunk/lib/webvi.js');d.body.appendChild(s);s.onload=function(){webvi_init();};})();
Then I tried to write a comment in HN using WebVi in the reply box, and after I hit 'Submit', the comment that actually got posted was just 'M' instead of what I (thought I) wrote. Ah well, early days yet. :)
Re: Web Vi
#18There is also a vim mode under development. https://github.com/Gozala/vice
Re: Web Vi
#19edit: For example, 'A' doesn't work.
Re: Web Vi
#20I had a brief play around with the example, and pretty quickly came across bugs and unimplemented commands (for example: 'b', 'e' and 'O' are missing, but 'o' acts like 'O'). I like the way the cursor changes colour to hint at the current mode. However, what I'd really love would be a bookmarklet I could click to Vi-ify every on the current page. I've got "It's All Text" set up in Firefox to open s in gvim, but it's…