HN user

s00pcan

257 karma
Posts0
Comments114
View on HN
No posts found.

A simpler and safer version of this would be something where you spin your phone and catch it right-side-up. Scoring could be done by counting the number of times this was done successfully in a row without catching it the wrong way or dropping it, or double-triple spins etc. I do this for fun all the time. So far, no drops on concrete.

Cowards 13 years ago

Or, in the timeless words of Robert Oppenheimer: "I am become Death, destroyer of worlds."

meaningless, irrelevant words.

Design 13 years ago

Whew, glad we're past downvoting based on trivial programming language choices.

Workflow in tmux 13 years ago

This is basically what I was doing except with redis instead of netcat. I was happy to see copy-pipe in v1.8.

As opposed to having trailing whitespace and mixed tab/space whitespace polluting your diffs? Configure your diff viewer to ignore whitespace.

tmux 1.8 Released 13 years ago

'copy-pipe' mode command to copy selection and pipe the selection to a command.

This is exactly the functionality I was looking for back when it didn't exist. It wasn't immediately obvious how to use this, but here's how:

bind-key -t vi-copy 'y' copy-pipe "redis-cli -x set status"

set-option -g status-right '#(redis-cli --raw get status)'

And now I have a message I just copied to redis in my tmux status bar. I'm planning on doing this with clipboard text next.

I use control keys for a lot of my movement. <c-f>/<c-b>, <c-u>/<c-d>, <c-e>/<c-y>, <c-n>/<c-p> (remap your ctrlp plugin to leader p. This is vim.) And yeah, I have caps lock remapped to control. Setting virtualedit=all will also force you to think in terms of text objects by allowing the cursor to move everywhere. No longer can you simply press j/k and have it go to the end of the next shorter line.

Vim After 11 Years 13 years ago

I might as well answer seeing as I found this out yesterday. Go to the profile options then the keys tab. Then there is an option for left/right option key acting as normal meta or +esc. While meta sounds correct for this, esc+ was recommended and works.

I ran into a couple of issues while building vim with python support (which I haven't needed until now). I have arch linux and python3 was symlinked to /usr/bin/python, the build script cached this and once I fixed the symlink to point to /usr/bin/python2 it was still giving an error. I manually fixed the check in the build script, compiled, but then the plugin didn't recognize +python/dyn so I had to rebuild without python3 support. It seems to be working now and I'm compiling ycm_core. Also, if you're going to be building vim anyway, --enable-rubyinterp and check out the command-t plugin.

I was able to type fSfa to open that link in a new tab and then open this reply box. My hands are usually on the home row, you are more comfortable having them on the trackpad. The benefit of using this plugin over a mouse is that I don't have to position the mouse over the link; I just press f then look at it on the screen and then press one or two more buttons.

I don't see how this would stop you from using other computers when you can sign into your chrome account anywhere and instantly have this extension installed. I can't relate to your reasoning here; I want my computers to work exactly how I want them to work as efficiently as possible with no compromises.

You'd be wrong to think this is supposed to be "Vim running in your browser" - instead think of this as more efficient shortcuts for browsing. However, I'm using xmonad so this completely transformed my workflow to make nearly everything possible with only the keyboard. I was able to go a full day at the office without touching my mouse except to move it out of the way. I mostly use this plugin for navigation and have no complaints.

I've been using xmonad on arch linux for five months now and it's been amazing. Rock solid stability and no wasted space on the screen, no wasted time arranging windows. Multi-monitor support is second to none. I can't go back.

The only thing I have to compare it to is connectbot, which works great on all of my android phones. It actually keeps the connection for as long as it stays running and at least tries to support touch events (scrolling with your finger sends pageup/down apparently). Ideally, I would be able to touch the screen and resize tmux panes, vim's split windows as well as scrolling in tmux's copy mode and vim. None of that is possible and I'd rather use the keyboard anyway, but not being able to remap caps lock is a serious issue for me. iSSH's only feature to alleviate this is to remap the option key to control, but that has its own set of issues and isn't where I want it to be on the keyboard anyway.

The original article inspired me to get a retina ipad and wireless keyboard with hopes of connecting to my home server and developing with issh/tmux/vim/chrome and working anywhere from my tethered 4g phone. It was an immediate disappointment: issh is extremely unreliable, has awkward rendering glitches and a UI that can't be configured to actually fullscreen. Oh and it times out after a short while, especially if you've switched to some other app. iOS can't remap caps lock to control either, which would have otherwise made it usable for me. I didn't waste any more time attempting to fix these issues; the only way I see this working perfectly is if I had actual linux running on the ipad.

http://s00pcan.com/photos/ipad1.jpg http://s00pcan.com/photos/ipad2.jpg

I really don't consider this a compromise; everyone else is pointlessly making screens larger in both directions that can't be used comfortably with one hand. The marketers just want to have that 4"+ screen on the feature list. Making the screen taller but keeping the same width was the best way of increasing the size but still keeping it usable.

Vim as you IDE 14 years ago

This is the efficiency post that I kept coming back to when starting to use the command line more: http://shebang.brandonmintern.com/tips-for-remote-unix-work-...

I'm seeing a lot of people respond about using similar setups with different tools. It doesn't really matter whether you use awesome/xmonad/ratpoison or something else, but I can tell that the people who built the tools I use think about computers the same way I do (https://wiki.archlinux.org/index.php/The_Arch_Way). I'm striving for this: http://blog.sanctum.geek.nz/series/unix-as-ide/

Vim as you IDE 14 years ago

I use Chromium + Vimium, which makes my entire workflow possible from the keyboard when doing backend development. I somehow managed to go a full productive day at work without touching my mouse (except to move it out of the way at the start of the day) while working on a drag-and-drop feature. Since you're using the same setup, do you have a dotfiles repo so I can take a look? Mine is kind of messed up at the moment, but here's an old revision with everything: https://github.com/chris-ritsen/dotfiles/tree/113442a72ddacb...

Vim as you IDE 14 years ago

Would anyone be interested in a writeup of my setup? Arch Linux + xmonad + tmux + urxvt + zsh + vim. No desktop environment, just a setup optimized for reliable web development. I've been building this setup from scratch at work and at home for the past year, so I've got most of the minor annoyances figured out.

Between the clipboard register ("+y "+p) and tmux's copy mode, I can move text from pretty much anywhere to/from the command line.