Skip to content

Commit

Permalink
feat!: remove hardcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis6991 committed Dec 19, 2022
1 parent f4d8e99 commit ffa2c37
Show file tree
Hide file tree
Showing 20 changed files with 36 additions and 4,188 deletions.
18 changes: 7 additions & 11 deletions runtime/doc/eval.txt
Expand Up @@ -1707,17 +1707,13 @@ v:charconvert_to
Only valid while evaluating the 'charconvert' option.

*v:cmdarg* *cmdarg-variable*
v:cmdarg This variable is used for two purposes:
1. The extra arguments ("++p", "++enc=", "++ff=") given to
a file read/write command. This is set before an
autocommand event for a file read/write command is
triggered. There is a leading space to make it possible to
append this variable directly after the read/write command.
Note: "+cmd" isn't included here, because it will be
executed anyway.
2. When printing a PostScript file with ":hardcopy" this is
the argument for the ":hardcopy" command. This can be used
in 'printexpr'.
v:cmdarg
The extra arguments ("++p", "++enc=", "++ff=") given to a file
read/write command. This is set before an autocommand event
for a file read/write command is triggered. There is a
leading space to make it possible to append this variable
directly after the read/write command. Note: "+cmd" isn't
included here, because it will be executed anyway.

*v:collate* *collate-variable*
v:collate The current locale setting for collation order of the runtime
Expand Down
11 changes: 11 additions & 0 deletions runtime/doc/news.txt
Expand Up @@ -34,6 +34,17 @@ The following changes may require adaptations in user config or plugins.

See https://github.com/neovim/neovim/pull/20545 for more information.

`:hardcopy` is now removed (see |hardcopy| and |nvim-features-removed|):
- Commands removed:
- `:hardcopy`
- Options removed:
- `printdevice`
- `printencoding`
- `printexpr`
- `printfont`
- `printheader`
- `printmbcharset`

==============================================================================
NEW FEATURES *news-features*

Expand Down
56 changes: 1 addition & 55 deletions runtime/doc/options.txt
Expand Up @@ -4681,58 +4681,6 @@ A jump table for the options with a short description can be found at |Q_op|.
set. It's normally not set directly, but by using one of the commands
|:ptag|, |:pedit|, etc.

*'printdevice'* *'pdev'*
'printdevice' 'pdev' string (default empty)
global
The name of the printer to be used for |:hardcopy|.
See |pdev-option|.
This option cannot be set from a |modeline| or in the |sandbox|, for
security reasons.

*'printencoding'* *'penc'*
'printencoding' 'penc' string (default empty, except for some systems)
global
Sets the character encoding used when printing.
See |penc-option|.

*'printexpr'* *'pexpr'*
'printexpr' 'pexpr' string (default: see below)
global
Expression used to print the PostScript produced with |:hardcopy|.
See |pexpr-option|.
This option cannot be set from a |modeline| or in the |sandbox|, for
security reasons.

*'printfont'* *'pfn'*
'printfont' 'pfn' string (default "courier")
global
The name of the font that will be used for |:hardcopy|.
See |pfn-option|.

*'printheader'* *'pheader'*
'printheader' 'pheader' string (default "%<%f%h%m%=Page %N")
global
The format of the header produced in |:hardcopy| output.
See |pheader-option|.

*'printmbcharset'* *'pmbcs'*
'printmbcharset' 'pmbcs' string (default "")
global
The CJK character set to be used for CJK output from |:hardcopy|.
See |pmbcs-option|.

*'printmbfont'* *'pmbfn'*
'printmbfont' 'pmbfn' string (default "")
global
List of font names to be used for CJK output from |:hardcopy|.
See |pmbfn-option|.

*'printoptions'* *'popt'*
'printoptions' 'popt' string (default "")
global
List of items that control the format of the output of |:hardcopy|.
See |popt-option|.

*'pumblend'* *'pb'*
'pumblend' 'pb' number (default 0)
global
Expand Down Expand Up @@ -5004,7 +4952,6 @@ A jump table for the options with a short description can be found at |Q_op|.
pack/ packages |:packadd|
parser/ |treesitter| syntax parsers
plugin/ plugin scripts |write-plugin|
print/ files for printing |postscript-print-encoding|
query/ |treesitter| queries
rplugin/ |remote-plugin| scripts
spell/ spell checking files |spell|
Expand Down Expand Up @@ -6110,7 +6057,6 @@ A jump table for the options with a short description can be found at |Q_op|.
o N Byte number in file of byte under cursor, first byte is 1.
Mnemonic: Offset from start of file (with one added)
O N As above, in hexadecimal.
N N Printer page number. (Only works in the 'printheader' option.)
l N Line number.
L N Number of lines in buffer.
c N Column number (byte index).
Expand Down Expand Up @@ -6390,7 +6336,7 @@ A jump table for the options with a short description can be found at |Q_op|.
the |:retab| command, and the 'softtabstop' option.

Note: Setting 'tabstop' to any other value than 8 can make your file
appear wrong in many places, e.g., when printing it.
appear wrong in many places.
The value must be more than 0 and less than 10000.

There are four main ways to use tabs in Vim:
Expand Down

0 comments on commit ffa2c37

Please sign in to comment.