Skip to content

Commit 152e2e5

Browse files
committed
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/
1 parent 6cad2d9 commit 152e2e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ftplugin/javascript.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
setlocal suffixesadd+=.js

0 commit comments

Comments
 (0)