vim/after/plugin/fireplace-map-unfucking.vim @ 957e7c0065e9
mooooore shit
author |
Steve Losh <steve@stevelosh.com> |
date |
Mon, 24 Feb 2014 12:30:27 -0500 |
parents |
88e2c4dcdb52 |
children |
b1afc5432344 |
" These are all out here in the middle of goddamned nowhere because Fireplace is
" an asshole and won't let you disable mappings like any other plugin.
augroup unmap_fireplace_bullshit
au!
au Filetype clojure nunmap <buffer> cp
au Filetype clojure nunmap <buffer> cpp
au Filetype clojure nunmap <buffer> c!
au Filetype clojure nunmap <buffer> c!!
au Filetype clojure nunmap <buffer> cq
au Filetype clojure nunmap <buffer> cqq
au Filetype clojure nunmap <buffer> cqp
au Filetype clojure nunmap <buffer> cqc
au Filetype clojure nunmap <buffer> cpr
au Filetype clojure nunmap <buffer> K
au Filetype clojure nunmap <buffer> [d
au Filetype clojure nunmap <buffer> ]d
au Filetype clojure nunmap <buffer> [<c-d>
au Filetype clojure nunmap <buffer> ]<c-d>
au Filetype clojure nunmap <buffer> <c-w><c-d>
au Filetype clojure nunmap <buffer> <c-w>d
au Filetype clojure nunmap <buffer> <c-w>gd
augroup END
augroup map_good_fireplace_keys
au!
" [M]an (get documentation)
au Filetype clojure nmap <buffer> M <Plug>FireplaceK
" Go to Definition
au Filetype clojure nmap <buffer> <c-]> <Plug>FireplaceDjumpmzzvzz15<c-e>'z:Pulse<cr>
au Filetype clojure nmap <buffer> <c-\> <c-w>v<Plug>FireplaceDjumpmzzMzvzz15<c-e>'z:Pulse<cr>
" Require
au Filetype clojure nnoremap <buffer> <localleader>r :Require<cr>
" Require Harder
au Filetype clojure nnoremap <buffer> <localleader>R :Require!<cr>
" Get [S]ource
" au Filetype clojure nmap <buffer> <localleader>s <Plug>FireplaceSource
" Eval Buffer
au Filetype clojure nnoremap <buffer> <localleader>eb :%Eval<cr>
" Eval Form
au Filetype clojure nmap <buffer> <localleader>ef <Plug>FireplacePrintab
" Eval Top-Level Form
au Filetype clojure nmap <buffer> <localleader>ee mz$:call PareditFindDefunBck()<cr><Plug>FireplacePrintab'z
" Open clojure command line editor client window thing
au Filetype clojure exe 'nmap <buffer> <localleader>E <Plug>FireplacePrompt' . &cedit . 'i'
" [S]how Last Result
au Filetype clojure nnoremap <buffer> <localleader>s :Last<cr>
augroup END