From 72dfc1aeb930043bf1213d2cb8ed8d1317a18cdb Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 12 Jun 2020 22:09:18 +0200 Subject: ftplugin/go.vim: Add `Ze` mapping to insert `if err` block Vim-Go has a `:GoIfErr` command, which inserts an `if err != nil` check. Add a mapping for it to make it quicker to access. --- ftplugin/go.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ftplugin') diff --git a/ftplugin/go.vim b/ftplugin/go.vim index 1fdc154..4cf9e62 100644 --- a/ftplugin/go.vim +++ b/ftplugin/go.vim @@ -37,3 +37,5 @@ nmap z (go-test) nmap Z (go-test-func) nmap z (go-alternate-edit) nmap z (go-alternate-vertical) + +nmap Ze (go-iferr) -- cgit v1.2.3