Skip to content

Commit e6a4f2f

Browse files
dmitrivereshchaginbounceme
authored andcommitted
Update ftplugin (#553)
* Revert setting 'regexpengine' from filetype plugin Setting 'regexpengine' from filetype plugin without reenabling syntax doesn't fix problems described in #88 and #93. Seems like those problems are reproducible only in versions 7.4 and 7.4.1. Those few unfortunates who encounter it today will be able to find workaround by reading project issues. * Move filetype plugin to after directory - Add dollar sign to 'iskeyword' - Make use of b:undo_ftplugin variable
1 parent d745bd0 commit e6a4f2f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ftplugin/javascript.vim renamed to after/ftplugin/javascript.vim

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
" Maintainer: vim-javascript community
44
" URL: https://github.com/pangloss/vim-javascript
55

6-
setlocal suffixesadd+=.js
6+
setlocal iskeyword+=$ suffixesadd+=.js
77

8-
if v:version == 703 && exists('&regexpengine') || v:version == 704 && !has('patch2')
9-
set regexpengine=1
10-
endif
8+
let b:undo_ftplugin .= ' | setlocal iskeyword< suffixesadd<'

0 commit comments

Comments
 (0)