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