Don't clobber K map

Closes #163.
This commit is contained in:
Tim Pope 2014-06-25 14:52:01 -04:00
parent 2cbaacf0d0
commit e4b975eaec

View File

@ -1378,7 +1378,10 @@ nnoremap <Plug>FireplaceSource :Source <C-R><C-W><CR>
augroup fireplace_doc augroup fireplace_doc
autocmd! autocmd!
autocmd FileType clojure nmap <buffer> K <Plug>FireplaceK autocmd FileType clojure setlocal keywordprg=:Doc |
\ if empty(mapcheck('K', 'n')) |
\ nmap <buffer> K <Plug>FireplaceK|
\ endif
autocmd FileType clojure nmap <buffer> [d <Plug>FireplaceSource autocmd FileType clojure nmap <buffer> [d <Plug>FireplaceSource
autocmd FileType clojure nmap <buffer> ]d <Plug>FireplaceSource autocmd FileType clojure nmap <buffer> ]d <Plug>FireplaceSource
autocmd FileType clojure command! -buffer -nargs=1 FindDoc :exe s:Lookup('clojure.repl', 'find-doc', printf('#"%s"', <q-args>)) autocmd FileType clojure command! -buffer -nargs=1 FindDoc :exe s:Lookup('clojure.repl', 'find-doc', printf('#"%s"', <q-args>))