|
3 | 3 | - New mappings on the gist-listing buffer: |
4 | 4 | - Both `o` or `Enter` open the gist file in a new buffer, and close the |
5 | 5 | gist-vim listing one. |
6 | | - - `b` opens the gist file in a browser; this is necessary because |
| 6 | + - `b` opens the gist file in a browser; this is necessary because |
7 | 7 | `Shift-Enter` (as was originally) only works for GUI vim. |
8 | 8 | - `y` copies the contents of the selected gist to the clipboard, and |
9 | 9 | closes the gist-vim buffer. |
10 | 10 | - `p` pastes the contents of the selected gist to the buffer from where |
11 | 11 | gist-vim was called, and closes the gist-vim buffer. |
12 | 12 | - Hitting `Escape` or `Tab` at the gist-vim buffer closes it. |
13 | | -- Gist listing has fixed-length columns now, more amenable to eye inspection. |
| 13 | +- Gist listing has fixed-length columns now, more amenable to eye inspection. |
14 | 14 | Every line on the gist-listing buffer contains the gist id, name and |
15 | 15 | description, in that order. Columns are now padded and truncated to offer a |
16 | 16 | faster browsing, in the following way: |
|
20 | 20 |
|
21 | 21 | `let g:gistvim_namelength = 20` |
22 | 22 |
|
23 | | - The default value for `gistvim_namelength` is 30. If the gist (file)name |
| 23 | + The default value for `gistvim_namelength` is 30. If the gist (file)name |
24 | 24 | exceeds that length, it is truncated to the specified length. |
25 | | - - Finally, the gist description is truncated in length to fit the remaining |
| 25 | + - Finally, the gist description is truncated in length to fit the remaining |
26 | 26 | of the line, avoiding wrapped lines that mess up the table layout. |
27 | | - - Note that the gist listing buffer now does not show the field 'code' |
| 27 | + - Note that the gist listing buffer now does not show the field 'code' |
28 | 28 | (not sure what that did in the first place). |
29 | 29 |
|
30 | 30 | - Now the listing is complete (no need to select 'more' to see the following |
31 | 31 | gists on the list), in this way the user can later perform a search (using vim's `/`, |
32 | | - for instance) for the sought gist by name, description, etc. |
| 32 | + for instance) for the sought gist by name, description, etc. |
33 | 33 | - The first line on the gist-listing states the number of gists listed and the |
34 | 34 | user whose gists are being listed. |
35 | 35 | - The height of the gist-listing buffer is now determined in the following way. |
36 | 36 | If the number of gists listed equals or exceeds 10, then the height is fixed at 10. If |
37 | 37 | it is smaller than 10, then the height is adjusted so that there are no empty |
38 | 38 | lines displayed on the buffer. Note: right now this value (10) is fixed; I'm |
39 | | - going to change it to a global plugin variable that defaults to 10. |
| 39 | + going to change it to a global plugin variable that defaults to 10. |
40 | 40 |
|
41 | 41 | ### Gist.vim |
42 | 42 |
|
@@ -241,14 +241,14 @@ You need to install webapi-vim also: |
241 | 241 | If you want to use latest one: |
242 | 242 |
|
243 | 243 | https://github.com/mattn/webapi-vim |
244 | | - |
| 244 | + |
245 | 245 | ### Install with [Vundle](https://github.com/gmarik/vundle) |
246 | 246 |
|
247 | 247 | Add the following lines to your `.vimrc`. |
248 | 248 |
|
249 | 249 | Bundle 'mattn/webapi-vim' |
250 | 250 | Bundle 'mattn/gist-vim' |
251 | | - |
| 251 | + |
252 | 252 | Now restart Vim and run `:BundleInstall`. |
253 | 253 |
|
254 | 254 | ### Install with [NeoBundle](https://github.com/Shougo/neobundle.vim) |
|
0 commit comments