tpope / vim-fireplace

fireplace.vim: Clojure REPL support
https://www.vim.org/scripts/script.php?script_id=4978
1.75k stars 139 forks source link

Override `gd` #319

Closed positron closed 6 years ago

positron commented 6 years ago

Since the README says you favor enhancing built-ins, I was expecting gd to go to definition like gf goes to a namespace. Why is go to definition bound to <C-[>d?

In the meantime I overrode it with

autocmd FileType clojure nmap gd ]<C-D>

Thanks for the awesome plugin!

tpope commented 6 years ago

gd is for local variables.

gd          Goto local Declaration.  When the cursor is on a local
            variable, this command will jump to its declaration.

The built-in behavior works (sort of) for Clojure, so I didn't want to override it.

positron commented 6 years ago

Ah, I figured I was missing something like that.