aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/options.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-30 08:33:29 +0800
committerGitHub <noreply@github.com>2022-10-30 08:33:29 +0800
commit75ec1b7208d4d8f38dff2adf4006de7ea82118d7 (patch)
tree5f2c5122641a4da14ae67029e76737298623f775 /src/nvim/options.lua
parent8d38e1ad34552293de9e562b73c727ec119fd847 (diff)
parent4158ad38ecb107cfe3d1dd7472cc9e17039f6ee2 (diff)
downloadrneovim-75ec1b7208d4d8f38dff2adf4006de7ea82118d7.tar.gz
rneovim-75ec1b7208d4d8f38dff2adf4006de7ea82118d7.tar.bz2
rneovim-75ec1b7208d4d8f38dff2adf4006de7ea82118d7.zip
Merge pull request #20855 from zeertzjq/vim-fb0cf2357e0c
vim-patch:9.0.{0816,0819}: CTRL-Z at end of file is always dropped
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r--src/nvim/options.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index ba483d3714..088aa40fda 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -641,6 +641,15 @@ return {
defaults={if_true=macros('ENC_DFLT')}
},
{
+ full_name='endoffile', abbreviation='eof',
+ short_desc=N_("write CTRL-Z for last line in file"),
+ type='bool', scope={'buffer'},
+ no_mkrc=true,
+ redraw={'statuslines'},
+ varname='p_eof',
+ defaults={if_true=true}
+ },
+ {
full_name='endofline', abbreviation='eol',
short_desc=N_("write <EOL> for last line in file"),
type='bool', scope={'buffer'},