Skip to content

Commit 256bec8

Browse files
mattnallex
authored andcommitted
remove trailing spaces
1 parent b7cf5a3 commit 256bec8

File tree

4 files changed

+31
-31
lines changed

4 files changed

+31
-31
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
- New mappings on the gist-listing buffer:
44
- Both `o` or `Enter` open the gist file in a new buffer, and close the
55
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
77
`Shift-Enter` (as was originally) only works for GUI vim.
88
- `y` copies the contents of the selected gist to the clipboard, and
99
closes the gist-vim buffer.
1010
- `p` pastes the contents of the selected gist to the buffer from where
1111
gist-vim was called, and closes the gist-vim buffer.
1212
- 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.
1414
Every line on the gist-listing buffer contains the gist id, name and
1515
description, in that order. Columns are now padded and truncated to offer a
1616
faster browsing, in the following way:
@@ -20,23 +20,23 @@
2020

2121
`let g:gistvim_namelength = 20`
2222

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
2424
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
2626
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'
2828
(not sure what that did in the first place).
2929

3030
- Now the listing is complete (no need to select 'more' to see the following
3131
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.
3333
- The first line on the gist-listing states the number of gists listed and the
3434
user whose gists are being listed.
3535
- The height of the gist-listing buffer is now determined in the following way.
3636
If the number of gists listed equals or exceeds 10, then the height is fixed at 10. If
3737
it is smaller than 10, then the height is adjusted so that there are no empty
3838
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.
4040

4141
### Gist.vim
4242

@@ -241,14 +241,14 @@ You need to install webapi-vim also:
241241
If you want to use latest one:
242242

243243
https://github.com/mattn/webapi-vim
244-
244+
245245
### Install with [Vundle](https://github.com/gmarik/vundle)
246246

247247
Add the following lines to your `.vimrc`.
248248

249249
Bundle 'mattn/webapi-vim'
250250
Bundle 'mattn/gist-vim'
251-
251+
252252
Now restart Vim and run `:BundleInstall`.
253253

254254
### Install with [NeoBundle](https://github.com/Shougo/neobundle.vim)

autoload/gist.vim

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,14 @@ function! s:GistList(gistls, page) abort
224224
let plural=''
225225
endif
226226
" $put='more...'.line('$').' gist'.plural.' shown.'
227-
call append(0, ' '.a:gistls.': '.numlines.' gist'.plural)
228-
227+
call append(0, ' '.a:gistls.': '.numlines.' gist'.plural)
228+
229229
if numlines+1 > 11
230230
let listheight = 11
231231
else
232232
let listheight = numlines+1
233233
endif
234-
execute 'resize ' . listheight
234+
execute 'resize ' . listheight
235235

236236
let b:gistls = a:gistls
237237
let b:page = a:page
@@ -243,12 +243,12 @@ function! s:GistList(gistls, page) abort
243243
syntax match Title /^gist: \S\+/hs=s+5 contains=ALL
244244
nnoremap <silent> <buffer> <cr> :call <SID>GistListAction(0)<cr>
245245
nnoremap <silent> <buffer> o :call <SID>GistListAction(0)<cr>
246-
nnoremap <silent> <buffer> b :call <SID>GistListAction(1)<cr>
246+
nnoremap <silent> <buffer> b :call <SID>GistListAction(1)<cr>
247247
nnoremap <silent> <buffer> y :call <SID>GistListAction(2)<cr>
248-
nnoremap <silent> <buffer> p :call <SID>GistListAction(3)<cr>
248+
nnoremap <silent> <buffer> p :call <SID>GistListAction(3)<cr>
249249
nnoremap <silent> <buffer> <esc> :bw<cr>
250250
" Next line (in original code) only works on GUI VIM
251-
nnoremap <silent> <buffer> <s-cr> :call <SID>GistListAction(1)<cr>
251+
nnoremap <silent> <buffer> <s-cr> :call <SID>GistListAction(1)<cr>
252252
253253
cal cursor(1+len(oldlines),1)
254254
nohlsearch
@@ -512,7 +512,7 @@ function! s:GistListAction(shift) abort
512512
wincmd w
513513
" bdelete
514514
bw
515-
elseif a:shift == 2
515+
elseif a:shift == 2
516516
call s:GistGet(gistid, 1)
517517
bdelete
518518
bdelete

doc/gist-vim.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
*Gist.vim* Vimscript for creating gists (http://gist.github.com)
22

3-
Usage |gist-vim-usage|
4-
Tips |gist-vim-tips|
5-
License |gist-vim-license|
6-
Install |gist-vim-install|
7-
Requirements |gist-vim-requirements|
8-
Setup |gist-vim-setup|
9-
FAQ |gist-vim-faq|
3+
Usage |gist-vim-usage|
4+
Tips |gist-vim-tips|
5+
License |gist-vim-license|
6+
Install |gist-vim-install|
7+
Requirements |gist-vim-requirements|
8+
Setup |gist-vim-setup|
9+
FAQ |gist-vim-faq|
1010

11-
This is a vimscript for creating gists (http://gist.github.com)
11+
This is a vimscript for creating gists (http://gist.github.com)
1212

1313
For the latest version please see https://github.com/mattn/gist-vim.
1414

1515
==============================================================================
16-
USAGE *:Gist* *gist-vim-usage*
16+
USAGE *:Gist* *gist-vim-usage*
1717

1818
- Post current buffer to gist, using default privacy option. >
1919
@@ -126,7 +126,7 @@ USAGE *:Gist* *gist-vim-usage*
126126
- 'y' will copy the contents of the selected gist to the clipboard,
127127
and close the gist-vim listing split.
128128
- 'p' will (copy and) paste the contents of the selected gist to the
129-
buffer from which gist-vim was called, and close the gist-vim
129+
buffer from which gist-vim was called, and close the gist-vim
130130
listing split.
131131
- 'Esc' will close the gist-vim listing split without performing any
132132
further action.
@@ -246,13 +246,13 @@ LICENSE *gist-vim-license*
246246

247247
Copyright 2010 by Yasuhiro Matsumoto
248248
modification, are permitted provided that the following conditions are met:
249-
249+
250250
1. Redistributions of source code must retain the above copyright notice,
251251
this list of conditions and the following disclaimer.
252252
2. Redistributions in binary form must reproduce the above copyright notice,
253253
this list of conditions and the following disclaimer in the documentation
254254
and/or other materials provided with the distribution.
255-
255+
256256
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
257257
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
258258
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
@@ -311,7 +311,7 @@ be kept for later use. You can revoke the token at any time from the list of
311311
If you have two-factor authentication enabled on GitHub, you'll see the message
312312
"Must specify two-factor authentication OTP code." In this case, you need to
313313
create a "Personal Access Token" on GitHub's "Account Settings" page
314-
(https://github.com/settings/applications) and place it in a file
314+
(https://github.com/settings/applications) and place it in a file
315315
named ~/.gist-vim like this:
316316
>
317317
token xxxxx

gist.vim.vimup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ detailed_description: |
1919
2020
:Gist -p
2121
post whole text to gist with private.
22-
if you got empty gist list, try :Gist --abandon
22+
if you got empty gist list, try :Gist --abandon
2323
2424
:Gist -a
2525
post whole text to gist with anonymous.
@@ -261,7 +261,7 @@ versions:
261261
This is an upgrade for Gist.vim: support changing gist filename.
262262
263263
- '2.0': |
264-
This is an upgrade for Gist.vim: bugfix for listing gists in specified user.
264+
This is an upgrade for Gist.vim: bugfix for listing gists in specified user.
265265
266266
- '1.9': |
267267
This is an upgrade for Gist.vim: added support editing the gist. and bits bug fix.

0 commit comments

Comments
 (0)