From f9d837e8e4a0836319c8f33a897bf163faa9d9a8 Mon Sep 17 00:00:00 2001 From: rhysd Date: Wed, 30 May 2018 22:15:49 +0900 Subject: [PATCH] Move iferr.vim into ftplugin/go/ directory because ftplugin must contains a filetype name in its path --- README.md | 2 +- vim/ftplugin/{ => go}/iferr.vim | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename vim/ftplugin/{ => go}/iferr.vim (100%) diff --git a/README.md b/README.md index 0764379..c8a8b3f 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ if err != nil { ## Vim plugin -Copy `vim/ftplugin/iferr.vim` as `~/.vim/ftplugin/iferr.vim`. +Copy `vim/ftplugin/go/iferr.vim` as `~/.vim/ftplugin/go/iferr.vim`. It defines `:IfErr` command for go filetype. It will insert `if err != nil {` block at next line of the cursor. diff --git a/vim/ftplugin/iferr.vim b/vim/ftplugin/go/iferr.vim similarity index 100% rename from vim/ftplugin/iferr.vim rename to vim/ftplugin/go/iferr.vim