Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "typing focus keyboard"
-
VIM! ViM! vim! Vi Improved! Emacs (Wait ignore that one). What’s this mysterious VIM? Some believe mastering this beast will provide them with untold mastery over the forces of command line editing. Others would just like to know, how you exit the bloody thing. But in essence VIM is essentially a command line text editor at heart and it’s learning curve is so high it’s a circle.
There’s a lot of posts on the inter-webs detailing how to use that cruel mistress that is VIM. But rather then focus on how to be super productive in VIM (because honestly I’ve still not got a clue). This focus on my personal journey, my numerous attempts to use VIM in my day to day work. To eventually being able to call myself a novice.
My VIM journey started in 2010 around the same time I was transiting some of my hobby projects from SVN to GIT. It was around that time, that I attempted to run “git commit” in order to commit some files into one of my repositories.
Notice I didn’t specify the “-m” flag to provide a message. So what happened next. A wild command line editor opened in order for me to specify my message, foolish me assumed this command editor was just like similar editors such as Nano. So much CTRL + C’ing CTRL + Z’ing, CTRL + X’ing and a good measure of Google, I was finally able to exit the thing. Yeah…exit it. At this moment the measure of the complexity of this thing should be kicking in already, but it’s unfair to judge it based on today’s standards of user friendly-ness. It was born in a much simpler time. Before even the mouse graced the realms of the personal computing world.
But anyhow I’ll cut to the chase, for all of you who skipped most of the post to get to this point, it’s “:q!”. That’s the keyboard command to quit…well kinda this will quit the program. But…You know what just go here: The Manual. In-fact that’s probably not going to help either, I recommend reading on :p
My curiosity was peaked. So I went off in search of a way to understand this: VIM thing. It seemed to be pretty awesome, looking at some video’s on YouTube, I could do pretty much what Sublime text could but from the terminal. Imagine ssh’ing into a server and being able to make code edits, with full autocomplete et al. That was the dream, the practice…was something different. So I decided to make the commitment and use VIM for editing one of my existing projects.
So fired the program up and watched the world burn behind me. Ahhh…why can’t I type anything, no matter what I typed nothing seemed to appear on screen. Surely I must be missing something right? Right! After firing up the old Google machine, again it would appear there is this concept known as modes. When VIm starts up it defaults to a mode called “Normal” mode, hitting keys in this mode executes commands. But “Insert” entered by hitting the “i” key allows one to insert text.
Finally I thought I think I understand how this VIM thing works, I can just use “insert” mode to insert text and the arrow keys to move around. Then when I want to execute a command, I just press “Esc” and the command such as the one for saving the file. So there I was happily editing my code using “Insert” mode and the arrow keys, but little did I know that my happiness would be short lived, the arrow keys were soon to be a thorn in my VIM journey.
Join me for part two of this rant in which we learn the untold truth about arrow keys, touch typing and vimrc created from scratch. Until next time..
:q!4 -
I don't know about you, but a double-digit percentage of my swearing aloud while using a computer takes place when a site uses its javascript bullshit to grab my keypresses, so that when I hit the slash key to search the text of the page(something I do A LOT), it instead moves my focus to their own search field, where I will be halfway through typing before I see that the hijacking has taken place. Today I wondered if this was annoying to anyone else, and found that yes, yes it is. Maybe it annoys you too, so here.
https://addons.mozilla.org/en-US/...6 -
Focus stealing - it winds me up more than is probably reasonable.
I'm there, typing away in my text entry UI widget of choice, purposefully entering text to do some thing as expediently as possible and then... oh, well I'm not any more, am I?
No, because some other window has decided that it needs the keyboard focus for usually no reason whatsoever, other than poor programming manners. Sometimes the same app will keep stealing the focus - oi, mate, I was typing over here? Could you not get the current focus and see that I'm busy?
This happens in chrome's dev tools _a lot_ but dev tools needs a rant all of its own.2 -
I feel a quick improvement to the UI could be if the Rant / Comment textarea had focus when it opens so you can start typing right away. Or is it just my setup (chrome / windows / pc / mouse / keyboard / screen)?2
-
So I've bought a new blue key switch mechanical keyboard... And now I want to type on it all the time...
Except, my brain isn't multiprogramming at all and can't focus on other shit when giving a typing test (and not some real code as my end semester exams are going on and I don't want to divert my time anywhere else... But I do waste time... Which is opposite of what I should be doing)
Also, my roommate initially had a bit of problem... But we have now reached a settlement (sorry roommate, but 4x times the price of brown keyboard is what I have on me now... So ig I'm poor. Sorry for disturbance)
So yeah... Good relatively cheap keyboard which I love to type on2