vnews 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +16 -0
- data/lib/vnews.vim +1 -2
- data/lib/vnews/config.rb +1 -0
- data/lib/vnews/version.rb +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -245,6 +245,22 @@ current feed, type `:%VNConcat`.
|
|
245
245
|
|
246
246
|
See `:help 10.3` to learn how to specify command line ranges.
|
247
247
|
|
248
|
+
You can pipe out the output of `:VNConcat` to `lpr` for printing:
|
249
|
+
|
250
|
+
:w !lpr -o cpi=12 -o lpi=8 -o page-right=36 -o page-left=42 -o page-top=36 -o page-bottom=48
|
251
|
+
|
252
|
+
Of course, it would save you typing to make a custom `lprcustom` script
|
253
|
+
like so:
|
254
|
+
|
255
|
+
#!/bin/bash
|
256
|
+
lpr -o cpi=12 -o lpi=8 -o page-right=36 -o page-left=42 -o page-top=36 -o page-bottom=48 $1
|
257
|
+
|
258
|
+
put it on your PATH. Then you could run
|
259
|
+
|
260
|
+
:w !lprcustom
|
261
|
+
|
262
|
+
|
263
|
+
|
248
264
|
|
249
265
|
|
250
266
|
## Updating your feeds
|
data/lib/vnews.vim
CHANGED
@@ -84,7 +84,6 @@ function! s:create_list_window()
|
|
84
84
|
command! -bar -nargs=0 -range VNConcat :<line1>,<line2>call s:cat_items()
|
85
85
|
nnoremap <silent> <buffer> <leader>x :%VNConcat<CR>
|
86
86
|
|
87
|
-
|
88
87
|
call s:common_mappings()
|
89
88
|
if !exists("g:VnewsStarredColor")
|
90
89
|
let g:VnewsStarredColor = "ctermfg=green guifg=green guibg=grey"
|
@@ -157,7 +156,7 @@ endfunction
|
|
157
156
|
|
158
157
|
function! CompleteFunction(findstart, base)
|
159
158
|
if a:findstart
|
160
|
-
let start = len(s:prompt)
|
159
|
+
let start = len(s:prompt)
|
161
160
|
return start
|
162
161
|
else
|
163
162
|
let base = s:trimString(a:base)
|
data/lib/vnews/config.rb
CHANGED
data/lib/vnews/version.rb
CHANGED