Recent submissions

Comment · 11 years ago
Since I usually work with small laptop screens I tend to use vim tabs more than split. I find these key combinations quite comfortable:

nnoremap L :tabnext<CR>

nnoremap H :tabprevious<CR>

nnoremap <C-N> :tabnew<CR>

Also if you use offline docs (I only know Zeal) it would be pretty helpful to map the offline doc application to the K key depending on the language

nnoremap K :exec "!/usr/bin/zeal --query ".&ft.":".expand('<cword>')."&"

The above copies the word under the cursor and query it with zeal.

Comment · 11 years ago
I think what he means is just put both

set relativenumber

set number

In your .vimrc

Comment · 11 years ago
It's quite sad that some people's first reaction to everything is to assume that the other carries an agenda and there's a need to be defensive.

Person A thinks that everyone else is a sexist person with an agenda. Person B who doesn't agree with person A thinks everyone else is a radical feminist with an agenda. It's a never ending cycle of stupidity.

/rant

Comment · 11 years ago
I'm not very good at C, but from my understanding this library uses longjmp functions which means it's cooperative multithreading rather than preemptive isn't it?
Comment · 11 years ago
> The problem you now see is that nginx never actually exists

I think you meant exits instead of exists.

Nice write up btw.

Comment · 11 years ago
Comment · 11 years ago
How does the > process substitution differ from simply piping the output with | ?

For example (from Wikipedia)

tee >(wc -l >&2) < bigfile | gzip > bigfile.gz

vs

tee < bigfile | wc -l | gzip > bigfile.gz

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton