1,129 karma · joined Jan 9, 2019 (7y ago) · 472 submissions
comment 7y ago · link · parent
So changing a pretty much worldwide convention for a pretty specific edge-case on a rarely used command in vim.
Why not just update the command to detect the special cases like Mr. Mrs., seems like a much simpler solution.
comment 7y ago · link · parent
The thing is I switch all the time between vim and my terminal (it's complicated by let's say I mainly use one terminal tab for everything I'm currently writing) so using the home row I would have to switch all the time between home row and arrows when using the terminal (and other programs) (I guess I could add vim bindings to every single thing I use: web browser, terminal emulator, pry, irb, tmux, etc etc. but doesn't seem appealing to me).
The escape key isn't an issue either because I don't use the home row, so no need to remap that too.
I think this misconception comes from the manual pushing people to use the home row.
I don't claim I'm the fastest writer ever, but there are a lot of compromises I'm not willing to make (I could use vim tabs/windows, I could use Ctrl-D to switch files, I could use GVim, have the main files always open, etc.). I'm pretty sure everyone works differently and this workflow works very well for me.
What I don't like is this constant shaming of arrow vim users and people that keep saying it's only for beginners (and the manual pushing people to use the home row).
comment 7y ago · link · parent
I write extremely fast and use arrow keys (and all kinds of vim shortcuts).
> it's also the likely visual/mental cost of looking away from your screen to aid in positioning the hand
I never look at my keyboard when using vim.
comment 7y ago · link · parent
I either go down with arrows (I know it's controversial), beginning of file with :1, end of file with G, line number with :[line number] or search with /. I usually don't have large files so this works very well (and I almost exclusively go by line number on large files).
> Moving one character at a time
I use ^ for beginning of line, $ for end of line, e to move quickly in a line
> Searching for the word under the cursor
Nice, didn't know about */#, I just type what I'm searching, gonna use that.
> Deleting, then inserting
Insert mode is fine.
> Using the arrow keys
I use the arrow keys, and I don't care about all the arrow-key shamers out there.
> Moving in insert mode
I use insert mode only while editing (makes sense). I don't get the point of this paragraph.
> Moving to Escape
I'm fine with escape key.
> Moving to the start or end of the line, then inserting
I much prefer just going into insert mode.
> Entering insert mode, then opening a new line
I also use o quite often (as it just goes into insert mode).
> Entering insert mode to delete text
Yes, I delete with dd, de, etc. (. is also useful for that), deleting in insert mode is painful for more than one character.
> Repeating commands or searches
Didn't know about q: and q/, pretty useful, nice.
> Repeating substitutions
I use %s/for/far/g or %s/for/far/, or for a few lines, I select them (shift-v) (visual mode) then : (which auto-sets it to :'<,'>) then :'<,'>s/for/far/ for instance.
Anyway, been using vim for ~5 years with a pretty light .vimrc and one thing I would recommend is bogado/file-line plugin which lets you open a file at a line, e.g. vim app/models/user.rb:48
My vimrc if anyone is curious: https://gist.github.com/localhostdotdev/aa25d1c81f3f3b67ac35...
comment 7y ago · link · parent
comment 7y ago · link · parent
https://www.reddit.com/r/AppleWatch/comments/a40qm5/heading_...
https://www.reddit.com/r/AppleWatch/comments/9zrdq5/how_an_a...
I'm sure there is a lot more.
(Also all the people losing weight)
132.
Black Hole (WebGL Shader)(codepen.io ↗)
4 points · by aboutruby · 7y ago · discuss
comment 7y ago · link · parent
comment 7y ago · link · parent
Kind of weird to see Apple attacking another company.
Also Spotify main claim seems to be about their podcast acquisitions and Apple didn't answer that:
> So we announce two podcast acquisitions we are super excited about, and all of a sudden Apple arbitrarily decides to prohibit use of its API to recommend podcasts to users
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
Best thing is this can be called directly from Ruby with FFI.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
The main issue I see is the culture. Discord's community has quite an opposite culture as Slack (free time vs work time) for instance. Being able to have multiple Discord handles could solve that.