Better HN
topnewbestaskshowjobs
Log inSign up

frankerz

20 karma · joined Mar 11, 2015 (11y ago) · 7 submissions

Submissions

comment 11y ago · link · parent

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 11y ago · link · parent

I think what he means is just put both

set relativenumber

set number

In your .vimrc

comment 11y ago · link · parent

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 11y ago · link · parent

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 11y ago · link · parent

> The problem you now see is that nginx never actually exists

I think you meant exits instead of exists.

Nice write up btw.

comment 11y ago · link · parent

It seems like fish shell's ">" process substitution equivalence is not working as well as bash's though

https://github.com/fish-shell/fish-shell/issues/1786

comment 11y ago · link · parent

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