<n>Gto jump to nth rowctrl+oto jump to last curor positionctrl+nto highlight word, again to jump to next one,ctrl-xto skip onectrl-pto go back-- with plugin:
cto change the selection
- with plugin:
q:to get a window of all last commands<CR>to execute themJto move the following line to the end of this line<leader>sto substitute word under cursor"<char>dddeleted line into register"<char>ppastes file from register:s/\%V\(.*\)\%V/<a href="#\1">\1<\/a>/to surround visual selection:nohlsearchto no longer highlight search matches:grep <word>to find. then:cwin search results to open in quickfix windowctrl+aincrements the next number by one,ctrl+xdecrements it http://vim.wikia.com/wiki/Increasing_or_decreasing_numbers:e <path e.g. ".">opens a file browser that can be searched and used to edit files
ctrl+rto serach historyctrl+lto replaceclearctrl+zto suspend process,bgto list them,fgto bring it back to the foreground,disownto separate process from terminal$?holds the exit status of the last executed command^foo^bartakes the last command from the history and replacesfoowithbar
- echo {"some": "json"} | python -m json.tool pretty prints json on the cmd line
grep -A12 -B15gives the matching lines and 12after, 15 beforeman 2open lets you inspect level 2 (system) calls likeopenhtophas a-doption which lets you set the refesh interval (in tenths of seconds).htop -d 5sets it to two times a secondless -Sturns off line wraping which is useful if you have long tabular text (like the output ofcsvlook)renameutilsallows you to easily change file names with the editor that you are used tosorthas the-hflag which sorts by human readble values (such as the one produced bydu -h) which might include KB, MB etc
dir()shows all properties/methods of an objectptpythonis a nice command line replacement foripythonimport ipdb; ipdb.set_trace()gives you an interactive debugging sessionctrl + [orctrl + ]to indent/unindent inipython_gives you the last evaluted result in (i)Python,__the second last and so on- You can user
python -cto execute python lineline in a shell. Example:echo 'hello cool arguments ' | python -c 'import sys; print sys.stdin.read().split()' - IPython's input mode can be switched to vim or emacas mode. To switch it to vim mode create a config file (
ipython profile create) and setc.TerminalInteractiveShell.editing_mode = 'vi'in theipython_config.pyfile that is created. Then you can hit escape and move around like you are used to from vim. (reference)1
inspect($(".points")) in the console to select the element in the Elements panel
debug(YourLibrary.someFunction) or monitor(YourLibrary.someFunction) to be notified when function is called
Change describe or it to fdescdribe or fit to only run those tests with jasmine
git reset --soft origin/master- This will rollback your branch to the same commit as origin/master but it keeps all the changes you have done
git stash --patchto let you choose what you want to stash and what notgit bisectand then git good or git bad to go on the hunt for a bug in the history- Add
-Stogit commit(as ingit commit -S -m 'my signed commit') to use GPG to sign your commit. It will then show up with a checkmark on the github.com///commits page - diff so fancy for nicer highlighting and colors in diffs
\eto edit the last executed command in default text editor- run
\watchafter a query to run this query every two seconds (just like the default unixwatch)
- alex checks text for non inclusive language
- httpie Replaces wget/curl
webcoachto measure performance of webpages and get advicetldras an example-driven alternative toman- thefuck corrects commands that you mistyped in the console
sudo ifconfig en0 ether aa:bb:cc:dd:ee:ffto change mac address of wifi card (useful if throttled by mac address) (maybe make sure to store your original one and reset back to it after you are done to avoid side effects)- ⌘-E finds currently selected text (in some tools)
- Apple has a long support doucment on keyborad shortcuts
heroku pg:psto see all running postgres processesheroku pg:killallto kill all running postgres processes
alt-eto edit the current line in $EDITOR (see this commit)
- The
Rainbow BracketsPlugin colorizes matching parantheses
- if you install the iTerm2 shell integration you get convenient features such as being able to jump back to the previous command in the history with cmd-shift-up (reference)2