Skip to content

Commit e568fbd

Browse files
authored
Fix Docs (#807)
Fix docs
1 parent 879912f commit e568fbd

File tree

5 files changed

+43
-45
lines changed

5 files changed

+43
-45
lines changed

.github/CONTRIBUTING.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The following is a set of guidelines for contributing to Vim for VSCode.
44
These are just guidelines, not rules, use your best judgment and feel free to propose changes to this document in a pull request.
5-
If you need help with Vim for VSCode, come visit our [Slack](https://vscodevim-slackin.azurewebsites.net/) community.
5+
If you need help with Vim for VSCode, drop by on [Slack](https://vscodevim-slackin.azurewebsites.net/).
66
Thanks for helping us make Vim for VSCode better!
77

88
## Submitting Issues
@@ -11,18 +11,18 @@ The [GitHub issue tracker](https://github.com/VSCodeVim/Vim/issues) is the prefe
1111
When creating a new bug report do:
1212

1313
* Search against existing issues to check if somebody else has already reported your problem or requested your idea
14-
* Include as many details as possible. Include screenshots/gifs and repro steps where applicable.
14+
* Include as many details as possible -- include screenshots/gifs and repro steps where applicable.
1515

1616
## Submitting Pull Requests
1717

1818
Pull requests are *awesome*.
1919
If you're looking to raise a PR for something which doesn't have an open issue, consider creating an issue first.
2020
When submitting a PR, ensure:
2121

22-
1. Run all the tests and ensure they pass.
23-
2. If you added a new feature, add at least one more test to test it.
24-
3. If you've fixed a bug, add at least one test to ensure the bug stays away.
25-
4. Submit the PR. Pour yourself a glass of champagne and feel good about making contributing to open source!
22+
1. All tests pass.
23+
2. If you added a new feature, add tests to exercise the new code path.
24+
3. If you fixed a bug, add tests to ensure the bug stays away.
25+
4. Submit the PR. Pour yourself a glass of champagne and feel good about contributing to open source!
2626

2727
## First Time Setup
2828

@@ -42,16 +42,16 @@ When submitting a PR, ensure:
4242
## Developing
4343

4444
1. Watch for changes and recompile Typescript files. Run this in the `Vim` directory: `gulp watch`
45-
2. Open up Visual Studio code and add the `Vim` directory as a folder.
46-
3. Click on the debugger. You now have two options - Launch Extension (to play around with the extension) and Launch Tests (to run the tests).
45+
2. Open Visual Studio Code and add the `Vim` directory as a folder.
46+
3. Click on the debugger. You have two options - Launch Extension (to play around with the extension) and Launch Tests (to run the tests).
4747

4848
## Code Architecture
4949

5050
The code is split into two parts - ModeHandler (which is essentially the Vim state machine), and Actions (which are things that modify the state).
5151

5252
### Actions
5353

54-
Actions are all currently stuffied into actions.ts (sorry!). There are:
54+
Actions are all currently stuffed into actions.ts (sorry!). There are:
5555
* BaseAction - the base Action type that all Actions derive from.
5656
* BaseMovement - A movement, like `w`, `h`, `{`, etc. ONLY updates the cursor position. At worst, might return an IMovement, which indicates a start and stop. This is used for movements like aw which may actually start before the cursor.
5757
* BaseCommand - Anything which is not just a movement is a Command. That includes motions which also update the state of Vim in some way, like `*`.
@@ -95,10 +95,10 @@ In addition to building and testing the extension, when a tag is applied to the
9595

9696
If your autocomplete, your fuzzy file search, or your _everything_ is suddenly running slower, try to recall if you ever ran `npm test` instead of just running tests through Visual Studio Code. This will add a massive folder called `.vscode-test/` to your project, which Visual Studio Code will happily consume all of your CPU cycles indexing.
9797

98-
Long story short, you can speed up VSC by doing this:
98+
Long story short, you can speed up VS Code by:
9999

100100
`$ rm -rf .vscode-test/`
101101

102-
## Styleguides
102+
## Styleguide
103103

104-
We are adhering to VSCode's [coding guidelines](https://github.com/Microsoft/vscode/wiki/Coding-Guidelines).
104+
Please try your best to adhere our [style guidelines](https://github.com/VSCodeVim/Vim/blob/master/STYLE.md).

.github/PULL_REQUEST_TEMPLATE.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Yay! We love PRs! 🎊
22

3-
Please include a description of your change & check your PR against this list, thanks:
3+
Please include a description of your change and ensure:
44

55
- [ ] Commit message has a short title & issue references
6-
- [ ] Each commit does a logical chunk of work.
7-
- [ ] It builds and tests pass (e.g `gulp tslint`)
6+
- [ ] Each commit does a logical chunk of work.
7+
- [ ] It builds and tests pass (e.g `gulp`)
88

9-
More info can be found by clicking the "guidelines for contributing" link above.
9+
More info can be found on our [contribution guide](https://github.com/VSCodeVim/Vim/blob/master/.github/CONTRIBUTING.md).

README.md

+11-20
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55

66
VSCodeVim is a [Visual Studio Code](https://code.visualstudio.com/) extension that provides Vim keybindings within Visual Studio Code.
77

8-
Please **[report missing or buggy features on GitHub](https://github.com/VSCodeVim/Vim/issues)**.
8+
Please **[report missing or buggy features on GitHub](https://github.com/VSCodeVim/Vim/issues)**. We've added a lot of functionality, but everyone uses Vim in their own special way, so let us know if we're missing your favourite obscure command. :wink:
99

10-
We've added a lot of functionality, but everyone uses Vim in their own special way, so let us know if we're missing your favorite obscure command. :wink:
11-
12-
We're super friendly people if you want to drop by and talk to us on our [Slack channel](https://vscodevim-slackin.azurewebsites.net)!
10+
We're super friendly people if you want to drop by and talk to us on [Slack](https://vscodevim-slackin.azurewebsites.net).
1311

1412
![Screenshot](images/screen.png)
1513

@@ -30,12 +28,11 @@ See our [Github Milestone page](https://github.com/VSCodeVim/Vim/milestones) for
3028

3129
## Install
3230

33-
1. Within Visual Studio Code, open the command palette (`Ctrl-Shift-P` / `Cmd-Shift-P`)
34-
2. Select `Install Extension` and search for 'vim' *or* run `ext install vim`
31+
Install the extension through the [VS Code Marketplace](https://code.visualstudio.com/docs/editor/extension-gallery).
3532

3633
## Configure
3734

38-
Due to overlap between VSCode and VIm, options are loaded slightly different from native Vim. The option loading sequence/priority is
35+
Due to overlap between VS Code and Vim, options are loaded slightly different from native Vim. The option loading sequence is
3936

4037
1. `:set {option}` on the fly
4138
2. [TODO] .vimrc.
@@ -45,7 +42,7 @@ Due to overlap between VSCode and VIm, options are loaded slightly different fro
4542

4643
### Supported Options
4744

48-
Vim options can be added to your user or workspace settings (open Command Pallete and search for "User Settings" or "Workspace Settings"). Changes require restarting of VSCode to take effect.
45+
Vim options can be added to your user or workspace settings (open the Command Pallete and search for "User Settings" or "Workspace Settings"). Changes require restarting of VSCode to take effect.
4946

5047
The following is a subset of the supported configurations; the full list is described in [package.json](https://github.com/VSCodeVim/Vim/blob/master/package.json#L175):
5148

@@ -75,7 +72,7 @@ The following is a subset of the supported configurations; the full list is desc
7572
7673
* insertModeKeyBindingsNonRecursive/otherModesKeyBindingsNonRecursive
7774
* Non-recursive keybinding overrides to use for insert and other (non-insert) modes (similar to `:noremap`)
78-
* *Example:* Bind `j` to `gj`. Notice that if you attempted this binding normally, the j in gj would be expanded into gj, on and on forever. Stop this recursive expansion using insertModeKeyBindingsNonRecursive/otherModesKeyBindingNonRecursive.
75+
* *Example:* Bind `j` to `gj`. Notice that if you attempted this binding normally, the j in gj would be expanded into gj, on and on forever. Stop this recursive expansion using insertModeKeyBindingsNonRecursive and/or otherModesKeyBindingNonRecursive.
7976
8077
```
8178
"vim.otherModesKeyBindingsNonRecursive": [
@@ -86,13 +83,13 @@ The following is a subset of the supported configurations; the full list is desc
8683
```
8784
8885
* useCtrlKeys
89-
* Enable Vim ctrl keys thus overriding common VSCode operations (eg. copy, paste, find, etc). Setting this option to true will enable:
86+
* Enable Vim ctrl keys overriding common VS Code operations (eg. copy, paste, find, etc). Setting this option to true will enable:
9087
* `ctrl+c`, `ctrl+[` => `<Esc>`
9188
* `ctrl+f` => Page Forward
9289
* `ctrl+v` => Visual Block Mode
9390
* etc.
9491
* Type: Boolean (Default: `false`)
95-
* Example:
92+
* *Example:*
9693
9794
```
9895
"vim.useCtrlKeys": true
@@ -129,20 +126,14 @@ The following is a subset of the supported configurations; the full list is desc
129126
On OS X, open Terminal and run the following command:
130127
131128
```
132-
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false // For VSCode
133-
defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false // For VSCode Insider
129+
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false // For VS Code
130+
defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false // For VS Code Insider
134131
```
135132
136133
## Contributing
137134
138-
This project is maintained by a group of awesome [contributors](https://github.com/VSCodeVim/Vim/graphs/contributors) and contributions are extremely welcome :heart:. If you are having trouble thinking of how you can help, check out our [roadmap](ROADMAP.md).
139-
140-
For a quick tutorial on how to get started, see our [contributing guide](/.github/CONTRIBUTING.md).
135+
This project is maintained by a group of awesome [contributors](https://github.com/VSCodeVim/Vim/graphs/contributors) and contributions are extremely welcome :heart:. If you are having trouble thinking of how you can help, check out our [roadmap](ROADMAP.md). For a quick tutorial on how to get started, see our [contributing guide](/.github/CONTRIBUTING.md).
141136
142137
## Changelog
143138
144139
Please see our [list of recent releases and features added.](https://github.com/VSCodeVim/Vim/releases)
145-
146-
## License
147-
148-
MIT, see [License](LICENSE) for more information.

ROADMAP.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
:warning: - some variations of the command are not supported
88

9-
:running: work in progress
9+
:running: - work in progress
1010

1111
:arrow_down: - command is low priority; open an issue (or thumbs up the relevant issue) if you want to see it sooner
1212

STYLE.md

+15-8
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
11
## Style Guide
22

3+
In addition, to VS Code's [coding guidelines](https://github.com/Microsoft/vscode/wiki/Coding-Guidelines), please adhere to the following:
4+
35
* Use `for ... of` whenever possible
46

5-
**Rationale:** `for ... of` is awesome. It's more readable than any other variant.
7+
**Rationale:** `for ... of` is awesome. It's more readable than any other variant.
68

79
* Don't use `any` as much as possible
810

9-
**Rationale:** The language is called *Type*Script, not *Untyped*Script. :wink: Static typing is wonderful. It catches bugs and improves readability. We should strive to use it as much as possible.
11+
**Rationale:** The language is called *Type*Script, not *Untyped*Script. :wink: Static typing is wonderful. It catches bugs and improves readability. We should strive to use it as much as possible.
1012

1113
* Use `const` wherever possible.
1214

13-
**Rationale:** Instead of reading `const` as "constant value," read it as "single assignment." Yes, it means "constant value" in other programming languages, but it's a little different in JavaScript.
15+
**Rationale:** Instead of reading `const` as "constant value," read it as "single assignment." Yes, it means "constant value" in other programming languages, but it's a little different in JavaScript.
1416

1517
* When we can't use `const`, use `let`; never `var`
1618

17-
**Rationale:** `var` trips up programmers in a number of cases - hoisting and closure capture are two big ones. Consider the difference between
19+
**Rationale:** `var` trips up programmers in a number of cases - hoisting and closure capture are two big ones. Consider the difference between
20+
21+
```
22+
for (var j = 0; j < 5; j++) { setTimeout(() => console.log(j), 5) }
23+
```
1824

19-
`for (var j = 0; j < 5; j++) { setTimeout(() => console.log(j), 5) }`
25+
and
2026

21-
and
27+
```
28+
for (let j = 0; j < 5; j++) { setTimeout(() => console.log(j), 5) }
29+
```
2230

23-
`for (let j = 0; j < 5; j++) { setTimeout(() => console.log(j), 5) }`
31+
Even if you're not capturing the variable, who knows if someone else might later?
2432

25-
Even if you're not capturing the variable, who knows if someone else might later?

0 commit comments

Comments
 (0)