File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33JavaScript bundle for vim, this bundle provides syntax and indent plugins.
44
5+ ## A Quick Note on Regexes
6+
7+ Vim 7.4 was released recently, and unfortunately broke how this plugin
8+ handles regexes. There was no real easy way for us to fix this unless we
9+ completely rewrote how regexes work.
10+
11+ Good News: There was a recent update to Vim 7.4 that fixes this issue.
12+
13+ Make sure you are at least using Vim 7.4, with patches 1-7.
14+
15+ If you are stuck on an older version of Vim 7.4 with no way to update,
16+ then simply perform the following commands to fix your current buffer:
17+
18+ ```
19+ :set regexpengine=1
20+ :syntax enable
21+ ```
22+
523## Installation
624
7- - Install with [ Vundle] ( https://github.com/gmarik/vundle )
25+ ### Install with [ Vundle] ( https://github.com/gmarik/vundle )
826
927Add to vimrc:
1028
@@ -15,10 +33,10 @@ And install it:
1533 :so ~/.vimrc
1634 :BundleInstall
1735
18- - Install with [ pathogen] ( https://github.com/tpope/vim-pathogen )
36+ ### Install with [ pathogen] ( https://github.com/tpope/vim-pathogen )
1937
20- cd ~ /.vim/bundle
21- git clone https://github.com/pangloss/vim-javascript.git
38+ cd ~/.vim/bundle
39+ git clone https://github.com/pangloss/vim-javascript.git
2240
2341## Configuration
2442
Original file line number Diff line number Diff line change 11au BufNewFile ,BufRead *.js setf javascript
22au BufNewFile ,BufRead *.jsm setf javascript
3- au BufNewFile ,BufRead *.json setf javascript
43au BufNewFile ,BufRead Jakefile setf javascript
54
65fun ! s: SelectJavascript ()
You can’t perform that action at this time.
0 commit comments