PG is there a way to have HN present the subdomain for github submissions?
I'm using http://userscripts.org/scripts/review/121512 , works very well.
"Apps, extensions, and user scripts cannot be added from this website"
141–150 of 254 posts
Can vim do the following? I'm editing some project with 10000 C++ files. There is some C++ file I currently don't have open, say "palette.cpp" which is in a subdirectory "project/graphics/algorithms/color/". Now I want to open palette.cpp without ever having to type, not even with tab autocompletion, that path. IntelliJ (which I do use for C++ ;)) can do this easily: just press CTRL+R, then palette.cpp, ENTER, and th…
Lots of people seem to declare ; or , to be useless keys and remap them. They're two of my most used movement keys in certain circumstances. I used to have , remapped to but switched back when I realised what I was missing out on. I'd advise anybody else to reconsider if they've made the same mistake I did.
My single greatest tip to make vim even more amazing is to run it in a tmux session: It makes it super easy to split panes and create new windows for related things you need to do (git stuff, compilation, running tests, running a REPL, etc.)
Some small vim tweaks I've recently been using myself that I find very nice: nmap :write cabbrev w nope Re-map enter to save the file. If you try to do a :w it will yell at you until you take out the cabbrev so you can retrain your muscle memory. Took me about a day to retrain. let g:EasyMotion_leader_key = ';' nmap s ;w nmap S ;b Remap s and S to be easymotion forward and backward. I never use s, since it's largely…
Space is my leader key.
Lots of people seem to declare ; or , to be useless keys and remap them. They're two of my most used movement keys in certain circumstances. I used to have , remapped to but switched back when I realised what I was missing out on. I'd advise anybody else to reconsider if they've made the same mistake I did.
netrw comes by default. No need to install NERDTree.
Good suggestion. In the article, I failed to point out that the advantage of NERDTree is its hierarchal folder view. When a project's directory structure become gigantic it's useful to see the directory structure as you edit.
let g:netrw_liststyle = 4My single greatest tip to make vim even more amazing is to run it in a tmux session: It makes it super easy to split panes and create new windows for related things you need to do (git stuff, compilation, running tests, running a REPL, etc.)
# ~/bin/ss-ctrl
#!/bin/sh
env_name=ctrl
long_name=skillspy
short_name=ss
cd ~/src/${long_name}/site && \
tmux new-session -d -s ${short_name}-${env_name} && \
tmux rename-window -t ${short_name}-${env_name}:1 git && \
tmux new-window -t ${short_name}-${env_name}:2 -n log 'RAILS_ENV=development rails s -p 3009; bash -i' && \
tmux new-window -t ${short_name}-${env_name}:3 -n db 'ssdb; bash -i ' && \
tmux new-window -t ${short_name}-${env_name}:4 -n misc && \
tmux new-window -t ${short_name}-${env_name}:5 -n redis 'cd ~/src/redis-2.6.0-rc8/src && ./redis-server && date && bash -i' && \
tmux new-window -t ${short_name}-${env_name}:6 -n sidekiq 'RAILS_ENV=development bundle exec sidekiq | tee log/sidekiq.log; date; bash -i' && \
tmux select-window -t ${short_name}-${env_name}:1 && \
tmux -2 attach-session -t ${short_name}-${env_name}
# ~/bin/ss-code
#!/bin/sh
env_name=code
long_name=skillspy
short_name=ss
cd ~/src/${long_name}/site/app/models && \
tmux new-session -d -s ${short_name}-${env_name} && \
tmux rename-window -t ${short_name}-${env_name}:1 models
cd ~/src/${long_name}/site/app/controllers && \
tmux new-window -t ${short_name}-${env_name}:2 -n controllers
cd ~/src/${long_name}/site/app/views && \
tmux new-window -t ${short_name}-${env_name}:3 -n views
cd ~/src/${long_name}/site/app/assets/stylesheets && \
tmux new-window -t ${short_name}-${env_name}:4 -n css
cd ~/src/${long_name}/site/app/assets/javascripts && \
tmux new-window -t ${short_name}-${env_name}:5 -n js
cd ~/src/${long_name}/site/app/workers && \
tmux new-window -t ${short_name}-${env_name}:6 -n workers
tmux select-window -t ${short_name}-${env_name}:1 && \
tmux -2 attach-session -t ${short_name}-${env_name}Here are my 2 cents set undofile " This creates a undo file that persists your undo history when the file gets closed imap >> " Double right arrow to escape from insertion mode. This is faster and more comfortable (at least for me) than to reach for tab key for some people set clipboard=unnamed " This is bridges between your Vim yanks and your system clipboard
Some people use jj to go to the normal mode. Personally I remapped Caps Lock to Escape in my whole system, so I can go to normal mode easily.
You can yank to the system clipboard by providing appropriate register to yank into. You do that by pressing "* before the yank command (e.g. "*yy to yank the current line).
Earlier quoted context omitted.
Fastest? Like I'd realize the speed difference between xterm, urxvt or even Gnome Terminal.
Trust me, when you have really crappy hardware (Intel Atom 1.3GHz w/ 512MB mem), you will notice the difference. Execution of commands that takes 2-3 seconds on Gnome Terminal will be nearly instant on xterm.