From 152e2e58a67c427bc7613ece02dfe86463ae6464 Mon Sep 17 00:00:00 2001 From: Joe Lencioni Date: Sun, 26 Apr 2015 07:43:43 -0700 Subject: [PATCH] Add `setlocal suffixesadd+=.js` to ftplugin This suffixesadd setting helps Vim understand text that references a path and does not contain the .js extension, as is often the case in CommonJS style require statements. This improves motions like `gf` and commands like `:find`. More information: http://usevim.com/2013/01/04/vim101-jumping/ --- ftplugin/javascript.vim | 1 + 1 file changed, 1 insertion(+) create mode 100644 ftplugin/javascript.vim diff --git a/ftplugin/javascript.vim b/ftplugin/javascript.vim new file mode 100644 index 00000000..9e2fc9b0 --- /dev/null +++ b/ftplugin/javascript.vim @@ -0,0 +1 @@ +setlocal suffixesadd+=.js