Skip to content

Commit

Permalink
Moar.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjl committed Dec 20, 2011
1 parent 8f79456 commit 316e3dc
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .hgsubstate
Expand Up @@ -2,7 +2,7 @@ c711681883f3419b85494e3b285b988e8e2dcbca keymando/Plugins/abbrev
c060c94622e92e091b2c67499fdda16d91b68c01 mercurial/templates
d2bb7878622e4c16203acf1c92a0f4bc7ac58003 vim/bundle/AnsiEsc.vim
a41d5d52c39a31128e969e69acf800b198cb07f9 vim/bundle/ack
8d99466502b40d7a5270abe6d763cf59383f4683 vim/bundle/ctrlp
bf03741650aae253b9fbfdb5526d6a7b818a060d vim/bundle/ctrlp
cdecdc56f938840cad250aecd58c1901f04c4d1b vim/bundle/easymotion
1b7e4070f5f7b7522422f5b00a75b323cc314daf vim/bundle/fugitive
91190e67720f852c17602504d5225d4e675b6499 vim/bundle/gundo
Expand All @@ -27,5 +27,5 @@ b944e534bd6bbfc4fd56d4ee1a8aa831188387b0 vim/bundle/vim-coffee-script
8d06adbd56a761684701d1c60990b72c845be3d5 vim/bundle/vim-commentary
6362ba99c825afc046818807267d5c1143b5c887 vim/bundle/vim-javascript
f21fbd8759d7fa6c3cb1bbb9fe05eae90422f01a vim/bundle/vim-makegreen
54b7bfc8170f3fa1519e5559c37a4f3e31c032c9 vim/bundle/vim-orgmode
aa53673d435020ed209b9df030df29070bda81f4 vim/bundle/vim-orgmode
b0ee6ec2153c5f30827d67db1668f37a975a1005 vim/bundle/vim-speeddating
20 changes: 19 additions & 1 deletion .pentadactylrc
Expand Up @@ -13,10 +13,28 @@ set editor='/usr/local/bin/mvim -f +<line> <file>'
set followhints=1
set showtabline=multitab
set showstatuslinks=command
set mapleader=','

" FASTER PLEASE
nnoremap j 3j
nnoremap k 3k
inoremap jk <esc>

" Switch tabs with J and K
nnoremap J :tn<CR>
nnoremap K :tp<CR>

" Finally I can overwrite the stupid fucking Firebug toggling correctly.
nnoremap <c-f> <f12>
nnoremap <c-g> <s-f12>

" Shift is hard.
nnoremap ; :

" Highlight all search matches, not just the first.
set hlfind

" Clear search highlighting and normal highlighting.
nnoremap <Leader><space> <esc>:noh<CR>

" Shut up.
javascript dactyl.beep = function() { return false; }
7 changes: 4 additions & 3 deletions vim/.vimrc
Expand Up @@ -101,6 +101,7 @@ set undodir=~/.vim/tmp/undo// " undo files
set backupdir=~/.vim/tmp/backup// " backups
set directory=~/.vim/tmp/swap// " swap files
set backup " enable backups
set noswapfile " It's 2011, Vim.

" }}}
" Leader {{{
Expand Down Expand Up @@ -517,6 +518,9 @@ augroup ft_html
au FileType html,jinja,htmldjango nnoremap <buffer> π :<C-U>YRPaste 'p'<CR>
au FileType html,jinja,htmldjango nnoremap <buffer> :<C-U>YRPaste 'P'<CR>
" Indent tag
au FileType html,jinja,htmldjango nnoremap <buffer> <localleader>= Vat=
" Django tags
au FileType jinja,htmldjango inoremap <buffer> <c-t> {%<space><space>%}<left><left><left>
Expand Down Expand Up @@ -753,9 +757,6 @@ vnoremap <leader>Ar :right<cr>
" Less chording
nnoremap ; :
" Faster Esc
inoremap jk <esc>
" Cmdheight switching
nnoremap <leader>1 :set cmdheight=1<cr>
nnoremap <leader>2 :set cmdheight=2<cr>
Expand Down
5 changes: 1 addition & 4 deletions vim/bundle/potion/ftdetect/potion.vim
@@ -1,4 +1 @@
augroup potion_detect
autocmd!
autocmd BufNewFile,BufRead *.pn set filetype=potion
augroup END
autocmd BufNewFile,BufRead *.pn set filetype=potion
3 changes: 0 additions & 3 deletions vim/plugin/autoclose.vim
Expand Up @@ -75,7 +75,6 @@ fun <SID>ToggleAutoCloseMappings() " --- {{{2
iunmap }
iunmap <BS>
iunmap <C-h>
iunmap <Esc>
let g:autoclose_on = 0
echo "AutoClose Off"
else
Expand All @@ -90,8 +89,6 @@ fun <SID>ToggleAutoCloseMappings() " --- {{{2
inoremap <silent> } <C-R>=<SID>CloseStackPop('}')<CR>
inoremap <silent> <BS> <C-R>=<SID>OpenCloseBackspace()<CR>
inoremap <silent> <C-h> <C-R>=<SID>OpenCloseBackspace()<CR>
inoremap <silent> <Esc> <C-R>=<SID>CloseStackPop('')<CR><Esc>
inoremap <silent> <C-[> <C-R>=<SID>CloseStackPop('')<CR><C-[>
"the following simply creates an ambiguous mapping so vim fully
"processes the escape sequence for terminal keys, see 'ttimeout' for a
"rough explanation, this just forces it to work
Expand Down
1 change: 1 addition & 0 deletions zsh/misc.zsh
Expand Up @@ -89,3 +89,4 @@ function fack () {

alias collapse="sed -e 's/ */ /g'"
alias cuts="cut -d' '"
alias clc="./get-last-commit-url.py | pbc"

0 comments on commit 316e3dc

Please sign in to comment.