You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+12-12
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The following is a set of guidelines for contributing to Vim for VSCode.
4
4
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/).
6
6
Thanks for helping us make Vim for VSCode better!
7
7
8
8
## Submitting Issues
@@ -11,18 +11,18 @@ The [GitHub issue tracker](https://github.com/VSCodeVim/Vim/issues) is the prefe
11
11
When creating a new bug report do:
12
12
13
13
* 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.
15
15
16
16
## Submitting Pull Requests
17
17
18
18
Pull requests are *awesome*.
19
19
If you're looking to raise a PR for something which doesn't have an open issue, consider creating an issue first.
20
20
When submitting a PR, ensure:
21
21
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!
26
26
27
27
## First Time Setup
28
28
@@ -42,16 +42,16 @@ When submitting a PR, ensure:
42
42
## Developing
43
43
44
44
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).
47
47
48
48
## Code Architecture
49
49
50
50
The code is split into two parts - ModeHandler (which is essentially the Vim state machine), and Actions (which are things that modify the state).
51
51
52
52
### Actions
53
53
54
-
Actions are all currently stuffied into actions.ts (sorry!). There are:
54
+
Actions are all currently stuffed into actions.ts (sorry!). There are:
55
55
* BaseAction - the base Action type that all Actions derive from.
56
56
* 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.
57
57
* 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
95
95
96
96
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.
97
97
98
-
Long story short, you can speed up VSC by doing this:
98
+
Long story short, you can speed up VS Code by:
99
99
100
100
`$ rm -rf .vscode-test/`
101
101
102
-
## Styleguides
102
+
## Styleguide
103
103
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).
Copy file name to clipboardExpand all lines: README.md
+11-20
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,9 @@
5
5
6
6
VSCodeVim is a [Visual Studio Code](https://code.visualstudio.com/) extension that provides Vim keybindings within Visual Studio Code.
7
7
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:
9
9
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).
13
11
14
12

15
13
@@ -30,12 +28,11 @@ See our [Github Milestone page](https://github.com/VSCodeVim/Vim/milestones) for
30
28
31
29
## Install
32
30
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).
35
32
36
33
## Configure
37
34
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
39
36
40
37
1.`:set {option}` on the fly
41
38
2.[TODO] .vimrc.
@@ -45,7 +42,7 @@ Due to overlap between VSCode and VIm, options are loaded slightly different fro
45
42
46
43
### Supported Options
47
44
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.
49
46
50
47
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):
51
48
@@ -75,7 +72,7 @@ The following is a subset of the supported configurations; the full list is desc
* 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.
79
76
80
77
```
81
78
"vim.otherModesKeyBindingsNonRecursive": [
@@ -86,13 +83,13 @@ The following is a subset of the supported configurations; the full list is desc
86
83
```
87
84
88
85
* 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:
90
87
* `ctrl+c`, `ctrl+[` => `<Esc>`
91
88
* `ctrl+f` => Page Forward
92
89
* `ctrl+v` => Visual Block Mode
93
90
* etc.
94
91
* Type: Boolean (Default: `false`)
95
-
* Example:
92
+
* *Example:*
96
93
97
94
```
98
95
"vim.useCtrlKeys": true
@@ -129,20 +126,14 @@ The following is a subset of the supported configurations; the full list is desc
129
126
On OS X, open Terminal and run the following command:
130
127
131
128
```
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
134
131
```
135
132
136
133
## Contributing
137
134
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).
141
136
142
137
## Changelog
143
138
144
139
Please see our [list of recent releases and features added.](https://github.com/VSCodeVim/Vim/releases)
Copy file name to clipboardExpand all lines: STYLE.md
+15-8
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,32 @@
1
1
## Style Guide
2
2
3
+
In addition, to VS Code's [coding guidelines](https://github.com/Microsoft/vscode/wiki/Coding-Guidelines), please adhere to the following:
4
+
3
5
* Use `for ... of` whenever possible
4
6
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.
6
8
7
9
* Don't use `any` as much as possible
8
10
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.
10
12
11
13
* Use `const` wherever possible.
12
14
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.
14
16
15
17
* When we can't use `const`, use `let`; never `var`
16
18
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
0 commit comments