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: CHANGELOG.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
#cVim Changelog
1
+
#cVim Changelog
2
2
3
3
## 1.2.84
4
4
* Bug fixes
@@ -122,7 +122,7 @@ and why it occurred.
122
122
123
123
## 1.2.56
124
124
***Important!** The behavior of commands that open links (`:open`, `:tabnew`, `:history`, etc) has changed. See [the mappings page](./mappings.html#tabs) for more information.
125
-
* Awesome new feature! It's now possible to use Vim to edit text boxes. All that is needed is a python script that can be found here: https://github.com/1995eaton/chromium-vim/blob/master/cvim_socket.py
125
+
* Awesome new feature! It's now possible to use Vim to edit text boxes. All that is needed is a python script that can be found [here](https://github.com/1995eaton/chromium-vim/blob/master/cvim_server.py)
126
126
* To get things running, just run the script: `python cvim_socket.py` and press `<C-i>` inside a text box.
127
127
* As a result of the above, the insert mapping `<C-i>` (beginningOfLine) is now `<C-a>`.
128
128
* Smoother scrolling
@@ -148,12 +148,12 @@ and why it occurred.
148
148
149
149
## 1.2.53
150
150
***Important!** cVimrc blacklists are now a part of the cVimrc. Previous blacklists should carry over to the cVimrc text area. New blacklists can be declared like this:
151
-
```viml
151
+
```vim
152
152
let blacklists = ["https://www.google.com"]
153
153
```
154
154
* When defining custom search engines, you can now add the string ```%s``` somewhere inside the URL to indicate that the query should be inserted in this place. This is useful for search engines with URLs that have non-standard structures. For instance:
155
155
156
-
```viml
156
+
```vim
157
157
" If you search for 'test' using this engine, cVim
158
158
" will open this link -> http://www.example.com/test?type=search
159
159
let searchengine example = "http://www.example.com/%s?type=search"
@@ -178,12 +178,12 @@ let searchengine example = "http://www.example.com/search?query=%s" "This is no
178
178
179
179
## 1.2.51
180
180
***Important!** cVimrc setting are now stricter. You must use 'let' instead of set when using options requiring an equal symbol. For example:
181
-
```viml
181
+
```vim
182
182
set hintcharacters = abc123 "Incorrect!
183
183
let hintcharacters = "abc123" "Correct
184
184
```
185
185
* Added completionengines option to cVimrc (choose which completion engines to display). For example:
186
-
```viml
186
+
```vim
187
187
let completionengines = ["google", "imdb"] "Only these engines will appear in the search autocomplete menu
188
188
```
189
189
* Added autohidecursor option (useful for Linux operating systems, which don't automatically hide the mouse cursor when a key is pressed). You can test this out by running the command ```:set autohidecursor``` and scrolling with j/k (might have to nudge mouse cursor then scroll to see it disappear initially).
Copy file name to clipboardexpand all lines: README.md
+23-23
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
#What is cVim?
1
+
#What is cVim?
2
2
3
3
Vim for Google Chrome. I hate using the mouse, especially after learning Vim. With my desktop (Linux), I have a lot of key bindings that make doing things easier: I open Chrome with `Alt+w`, I close a window with `Alt+Shift+d`, I open a terminal with `Alt+t`. This is harder to do with Chrome because it has no section for customizing keyboard shortcuts, and it is still necessary to use the mouse to do things like click links. cVim aims to eliminate this problem as best as the Chrome extensions API will allow it to.
4
4
5
-
#Where can I get cVim?
5
+
#Where can I get cVim?
6
6
7
7
* There are two ways:
8
8
* You can install it through the [Chrome web store](https://chrome.google.com/webstore/detail/cvim/ihlenndgcmojhcghmfjfneahoeklbjjh)
@@ -23,8 +23,8 @@ These extensions do a wonderful job of adding Vim-like keybindings to Google Chr
23
23
* Command bar with tab-completion
24
24
* Smooth scrolling
25
25
26
-
#cVim Help
27
-
###cVimrc
26
+
#cVim Help
27
+
###cVimrc
28
28
29
29
* Boolean cVimrc settings are enabled with the command ```'set' + <SETTING_NAME>``` and disabled with
30
30
the command ```'set' + no<SETTING_NAME>``` (for example, ```set regexp``` and ```set noregexp```)
@@ -81,8 +81,8 @@ These extensions do a wonderful job of adding Vim-like keybindings to Google Chr
81
81
| vimcommand | string | set the command to be issued with the `editWithVim` command | "gvim -f" |
82
82
| langmap | string | set a list of characters to be remapped (see vims langmap) | "" |
83
83
84
-
###Example configuration
85
-
```viml
84
+
###Example configuration
85
+
```vim
86
86
" Settings
87
87
set nohud
88
88
set nosmoothscroll
@@ -183,14 +183,14 @@ set localconfig " Update settings via a local file (and the `:source` command) r
183
183
" settings from there
184
184
```
185
185
186
-
###Blacklists
186
+
###Blacklists
187
187
* The blacklists setting uses a custom inplementation of Chrome's @match pattern guidelines.
188
188
See https://developer.chrome.com/extensions/match_patterns for a description of the syntax.
189
189
190
190
191
-
###Site-specific Configuration
191
+
###Site-specific Configuration
192
192
* You can enable certain rc settings for sites using the blacklist match pattern as described above
193
-
```viml
193
+
```vim
194
194
" this will enable the config block below on the domain 'reddit.com'
195
195
site '*://*.reddit.com/*' {
196
196
unmap j
@@ -199,30 +199,30 @@ site '*://*.reddit.com/*' {
199
199
}
200
200
```
201
201
202
-
###Running commands when a page loads
202
+
###Running commands when a page loads
203
203
* In a similar fashion to the site-specific configuration described above, cVim can run commands when a page is loaded with the `call` keyword
204
-
```viml
205
-
" In this case, when pages with a file ending in ".js" are loaded,
204
+
```vim
205
+
" In this case, when pages with a file ending in '.js' are loaded,
206
206
" cVim will pin the tab and then scroll down
207
207
site '*://*/*.js' {
208
208
call :pintab
209
209
call scrollDown
210
210
}
211
211
```
212
212
213
-
###Mappings
213
+
###Mappings
214
214
* Normal mappings are defined with the following structure: ```map <KEY> <MAPPING_NAME>```
215
215
* Insert mappings use the same structure, but use the command "imap" instead of "map"
216
216
* Control, meta, and alt can be used also:
217
-
```viml
217
+
```vim
218
218
<C-u> " Ctrl + u
219
219
<M-u> " Meta + u
220
220
<A-u> " Alt + u
221
221
```
222
222
* It is also possible to unmap default bindings with ```unmap <KEY>``` and insert bindings with ```iunmap <KEY>```
223
223
* To unmap all default keybindings, use ```unmapAll```. To unmap all default insert bindings, use ```iunmapAll```
224
224
225
-
###Tabs
225
+
###Tabs
226
226
* Commands that open links (`:tabnew` and `:open`) have three different properties
227
227
*`!` => Open in a new tab
228
228
*`$` => Open in a new window
@@ -233,7 +233,7 @@ site '*://*/*.js' {
233
233
*`=` => Treat the query as a URL
234
234
* The use of these properties are best explained with examples:
235
235
236
-
```viml
236
+
```vim
237
237
:open! google<CR> " This is the same as :tabnew google<CR>
238
238
239
239
:open google!<CR> " This is another way of writing the above
@@ -261,7 +261,7 @@ site '*://*/*.js' {
261
261
:bookmarks my_bookmark.com " same tab
262
262
```
263
263
264
-
###Code blocks
264
+
###Code blocks
265
265
* Code blocks allow you to interact with cVim's content scripts via the cVimrc.
266
266
* Since code blocks use `eval(...)`, you should only use them if you know what you're doing.
267
267
@@ -293,19 +293,19 @@ switchHintCharacters -> {{
293
293
map <Tab> :call switchHintCharacters<CR>
294
294
```
295
295
296
-
###Completion Engines
296
+
###Completion Engines
297
297
* These are a list of completion engines that can be used in the command bar. They can be set
298
298
by assigning their names to an array with the `completionengines` variable.
@@ -451,7 +451,7 @@ let completionengines = ['google', 'google-image', 'youtube'] " Show only these
451
451
| unmapped | select input text (equivalent to `<C-a>`) | selectAll |
452
452
| unmapped | edit with Vim in a terminal (need the [cvim_server.py](https://github.com/1995eaton/chromium-vim/blob/master/cvim_server.py) script running for this to work) | editWithVim |
0 commit comments