diff options
author | Teddy Wing | 2020-02-17 23:01:20 +0100 |
---|---|---|
committer | Teddy Wing | 2020-02-26 00:55:21 +0100 |
commit | f339ca24297c9749d7371efd76131ef842abc5c4 (patch) | |
tree | f152305bab3ebc9e030ea6f967cb9e30d6bc1b4e /ftplugin/go.vim | |
parent | 7ae977a20907373b4d56bd3bdca84736a75b351e (diff) | |
download | dotvim-f339ca24297c9749d7371efd76131ef842abc5c4.tar.bz2 |
ftplugin/go.vim: Add mapping to show alternate file
Use `z<C-^>` to swap between test and implementation files. Gives me a
faster way to navigate.
Diffstat (limited to 'ftplugin/go.vim')
-rw-r--r-- | ftplugin/go.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ftplugin/go.vim b/ftplugin/go.vim index 7f85703..307ba6b 100644 --- a/ftplugin/go.vim +++ b/ftplugin/go.vim @@ -31,3 +31,4 @@ nmap <buffer> Zc <Plug>(go-test-compile) nmap <buffer> Zf <Plug>(go-imports) nmap <buffer> <leader>z <Plug>(go-test) nmap <buffer> <leader>Z <Plug>(go-test-func) +nmap <buffer> z<C-^> <Plug>(go-alternate-edit) |