Skip to content

Commit

Permalink
Merge pull request #40 from Devdutt-Shenoi/master
Browse files Browse the repository at this point in the history
Made use of GitHub flavour of MarkDown
  • Loading branch information
Gabirel authored Jul 30, 2018
2 parents 64db78b + e3b628a commit 6d02aa7
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions en_US/IDE/JavaScript.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,34 @@ Make sure your SpaceVim is up-to-date.
Here are the examples:

**Arch:**
> sudo pacman -S npm nodejs
```bash
sudo pacman -S npm nodejs
```
**Fedora:**
> sudo dnf install npm nodejs
```bash
sudo dnf install npm nodejs
```
**Ubuntu:**
> sudo apt install npm nodejs
```bash
sudo apt install npm nodejs
```

### Install `tern`

You have to install tern since [tern_for_vim](https://github.com/ternjs/tern_for_vim) using [tern](http://ternjs.net/) as a server to provide auto-completion.
(If I was wrong, please tell me. Because I am not a expert of nodejs)

Just Simply run:
> cd ~/.cache/vimfiles/repos/github.com/ternjs/tern_for_vim
> npm install tern
```bash
cd ~/.cache/vimfiles/repos/github.com/ternjs/tern_for_vim
npm install tern
```

**Or**

> cnpm install tern
```bash
cnpm install tern
```

_PS: If you want to execute, please install `cnpm`._

Expand All @@ -66,10 +74,11 @@ And restart your vim to let SpaceVim itself to install plugins for you.

_If it takes a long time to install `tern_for_vim`, please install it manually by 3 steps below:_

> $ cd ~/.cache/vimfiles/repos/github.com/ternjs
> $ git clone https://github.com/ternjs/tern_for_vim
> $ cd tern_for_vim; npm install
```bash
$ cd ~/.cache/vimfiles/repos/github.com/ternjs
$ git clone https://github.com/ternjs/tern_for_vim
$ cd tern_for_vim; npm install
```
## Config

The most important step is about how to configure your environment.
Expand Down

0 comments on commit 6d02aa7

Please sign in to comment.