(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| *.pbxproj -crlf -diff -merge |
| #!/usr/bin/env ruby | |
| # | |
| # Usage: | |
| # cd /git/project/directory | |
| # git hub-diff 223d60f5486075e74851075fcfeb366d45c17d8b 13c86f00cbfe820c415b46bfd19268284db2a274 | |
| # Future features: | |
| # * generate SHAs from refs | |
| # * launchy support | |
| require 'rubygems' |
| function! s:ScourgeWhitespace(flag) | |
| if a:flag | |
| echo "Killing whitespace with fire..." | |
| %s/ \+$// | |
| else | |
| echo "Gently helping you to remove whitespace..." | |
| %s/ \+$//c | |
| endif | |
| endfunction |
| if &readonly | |
| nnoremap <silent><buffer> <Esc> :quit<CR> | |
| nnoremap <silent><buffer> <CR> <C-]> | |
| nnoremap <silent><buffer> <BS> <C-O> | |
| nnoremap <silent><buffer> <Down> :call search('\(''\<bar><bar>\)[^, <bar>]\{-1,}\1', 'W')<CR> | |
| nnoremap <silent><buffer> <Up> :call search('\(''\<bar><bar>\)[^, <bar>]\{-1,}\1', 'Wb')<CR> | |
| endif |
| function tmux_create_or_reattach() { tmux has-session -t $1 && tmux attach -t $1 || tmux -u -L $1; } | |
| tmux_create_or_reattach weechat-curses |
| " Toggle Comment | |
| augroup toggle_comment | |
| au FileType vim let b:comment_leader = '" ' | |
| au FileType c,cpp,java let b:comment_leader = '// ' | |
| au FileType sh,make,python let b:comment_leader = '# ' | |
| au FileType text let b:comment_leader = '% ' | |
| augroup END | |
| function! ToggleComment() range | |
| let cl = b:comment_leader; | |
| for linenr in range(a:firstline, a:lastline) |
| nnoremap <silent><expr><leader>m ":<C-U>let @".v:register." = ".string(getreg(v:register))."<CR><C-F>" |
| function command_not_found_handle { | |
| {echo "It looks like you're trying to run a UNIX command.";echo "Would you like some help with that?"; echo; /usr/lib/command-not-found $1 2>&1|fold -sw 55}|cowsay -f$HOME/.clippy -n | |
| } |
| # comments example for .dat or .ledger files | |
| @smallexample | |
| ; This is a single line comment, | |
| # and this, | |
| % and this, | |
| | and this, | |
| * and this. | |
| # If you have a deeply nested tree of accounts, | |
| # it may be convenient to define an alias, for example: |