Earlier quoted context omitted.
If you use KeyRemap4MacBook[1] you can map caps lock to Ctrl, but also map just tapping caps lock to escape. Be warned, the only problem with this set up is that it's so good that you'll have trouble using another one; I disabled it when I got a thinkpad and starting doing about 50% of my development on my x220 instead. After that I changed to using ctrl-[ or ctrl-c in place of escape for most everything. [1] http://…
Ah, ctrl-c for esc is a good idea.
Vim clutch
61–70 of 227 posts
Re: Vim clutch
#62Why isn't there a clutch for computer games (except car driving games)? A clutch can be used for mod switching; such as running mode, stealth mode or reloading guns.
[^] Nintendo is a holdout here, though the WiiU apparently has the buttons.
Re: Vim clutch
#63I've been planning to stick an MSP430 inside an old guitar pedal unit for window switching duties. The pedal I have has four switches, I was thinking one for the editor, one for the terminal, one for the browser and one perhaps for firebug or something. However, maybe these car style pedals would be more ergonomically suited than the little metal studs of guitar pedals, which are designed to be aggressively stamped o…
Re: Vim clutch
#64Glad to see other people experimenting with this kind of setup. I've known a few people to use one of these [1] for Emacs (for Ctrl & Meta), and I finally picked one up a while back. My setup has one pedal bound to Escape for Vim, and the other two switchable using F keys and some xbindkeys magic. By default, they're "switch WM workspace" (sort of like Alt-Tab) and "switch window focus within a workspace" in Awesome…
More evidence emacs is more advanced than vi - we emacs users have been thinking we need foot pedals for years! http://emacswiki.org/emacs/FootSwitches http://shorttalk-emacs.sourceforge.net/ShortStep/index.html
Re: Vim clutch
#65But however I think this is purely subjective. From an experiment perspective, this is really cool! And this generally qualifies into what could one call a 'real hack'. This has a air of freshness to it.
Now the real power of vim is in getting into a mode called 'extreme keyboarding'. I didn't realize this until I read Tom Christiansen's seminal essay "Zenclavier: Extreme Keyboarding"- http://oreilly.com/news/zenclavier_1299.html
This is to ultimately turn the keyboard into a Musical instrument, and then to become 'one with the keyboard'. Totally loosing any realization that you are actually typing. Read the essay carefully and try to understand how he tries to talk about 'moving in and out of zones'.
I started learning vim a few days back, after I suffered from Emacs Pinky. When I started question I asked was, 'Why should I memorize so many commands'. The thing is I quickly realized that being proficient with vim, requires you to understand some things. You really have to understand the vim paradigm, without that straightly diving into vim wont be much productive.
You have to learn h,j,k,l are not just navigational keys but also can be combined with multipliers like 20h(Moves 20 positions to the left). You basically speak a 'Editor programming language'. You program editor with a stream of characters. Like for example you my say 'copy this line, move up 20 positions and paste it'. This will be yy(copy current line) 20k(Move up 20 positions) p(paste it there).
So you have to basically learn these things in detail. You can use position stuff for things as well. Like for example 'd' specifies 'cut from here' and 'y' specifies 'yank/copy from here', but to where? the next character specifies that for example '$' specifies the end of a line. You can also do something like 'y2/foo' this means 'yank from here till foo'. You will have to learn regular expressions, touch typing, and many other text processing stuff. Basically you learn a terse programming language which is written as a stream of characters with data on the editor as a input.
Recently a colleague of mine introduced me to a editor command called ': perldo' you can do perl oneliner on the editor line by line.
The only thing is I couldn't find a book so far in my early days of vim, which completely teaches the 'zen of vim' completely in the paradigm, in which one needs to understand it. So vim is really about these things, I don't how far the pedal/clutch experiments gel with this concept. You may need a totally different editor paradigm to work with this setup.
In the meanwhile, if someone knows of a book that talks of vim in the way its supposed to be explained please recommend. All I could find on the net was cheat sheets, books that teach a commands in bulk.
Re: Vim clutch
#66Definitely a neat hacky idea (so by its nature, me gusta), but VIM is a silly, silly editor for real world purposes.
Re: Vim clutch
#67Pish-posh. What if you wanted to go into insert mode with an 'a' or an 'o' rather than an 'i'? It needs more pedals.
He has plans for this already: https://github.com/alevchuk/vim-clutch#extras
Re: Vim clutch
#68Works here (misusing the F8 key) [2].
---
Re: Vim clutch
#69> Has anyone thought of this before? The 1992 paper "The Prevention of Mode Errors Through Sensory Feedback" [1] uses this exact mechanism. [1] http://research.microsoft.com/en-us/um/people/asellen/public... I've argued for years that vim is one of the few good examples of modal design since it allows for quick entry of the command grammar without modifiers and the command grammar is an excellent fit for the domain.…
VIM clutch does not seem to prevent mode errors, though. For that pedals need to have feedback. I.e., if one hits 'a' out of habit or accidentally, stepping consequently on the insert pedal would predictably enter 'i' character. That would be avoided if the pedal changed to pressed state depending on mode. That said, for me as a pianist the idea of mode pedal looks pretty awesome. It just needs to be developed a bit…
Re: Vim clutch
#70Interesting, but you might get better mileage out of a teensy arduino ( http://www.pjrc.com/teensy/ ) a tin, and some proper foot switches.
This can be used to easily control the keyboard: http://www.pjrc.com/teensy/td_keyboard.html