mirror of
https://github.com/neovim/neovim.git
synced 2025-11-10 20:45:15 +00:00
defaults: enable 'autoindent' #2857
Re: https://github.com/neovim/neovim/issues/2676
This commit is contained in:
committed by
Justin M. Keyes
parent
81847da948
commit
8e3f67f2a0
@@ -718,7 +718,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
further details see |arabic.txt|.
|
further details see |arabic.txt|.
|
||||||
|
|
||||||
*'autoindent'* *'ai'* *'noautoindent'* *'noai'*
|
*'autoindent'* *'ai'* *'noautoindent'* *'noai'*
|
||||||
'autoindent' 'ai' boolean (default off)
|
'autoindent' 'ai' boolean (default on)
|
||||||
local to buffer
|
local to buffer
|
||||||
Copy indent from current line when starting a new line (typing <CR>
|
Copy indent from current line when starting a new line (typing <CR>
|
||||||
in Insert mode or when using the "o" or "O" command). If you do not
|
in Insert mode or when using the "o" or "O" command). If you do not
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ these differences.
|
|||||||
2. Option defaults *nvim-option-defaults*
|
2. Option defaults *nvim-option-defaults*
|
||||||
|
|
||||||
- 'autoread' is set by default
|
- 'autoread' is set by default
|
||||||
|
- 'autoindent' is set by default.
|
||||||
- 'backspace' defaults to "indent,eol,start"
|
- 'backspace' defaults to "indent,eol,start"
|
||||||
- 'encoding' defaults to "utf-8"
|
- 'encoding' defaults to "utf-8"
|
||||||
- 'formatoptions' defaults to "tcqj"
|
- 'formatoptions' defaults to "tcqj"
|
||||||
|
|||||||
@@ -412,9 +412,9 @@ static vimoption_T
|
|||||||
{"autochdir", "acd", P_BOOL|P_VI_DEF,
|
{"autochdir", "acd", P_BOOL|P_VI_DEF,
|
||||||
(char_u *)&p_acd, PV_NONE,
|
(char_u *)&p_acd, PV_NONE,
|
||||||
{(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
|
{(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
|
||||||
{"autoindent", "ai", P_BOOL|P_VI_DEF,
|
{"autoindent", "ai", P_BOOL,
|
||||||
(char_u *)&p_ai, PV_AI,
|
(char_u *)&p_ai, PV_AI,
|
||||||
{(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
|
{(char_u *)FALSE, (char_u *)TRUE} SCRIPTID_INIT},
|
||||||
{"autoread", "ar", P_BOOL|P_VIM,
|
{"autoread", "ar", P_BOOL|P_VIM,
|
||||||
(char_u *)&p_ar, PV_AR,
|
(char_u *)&p_ar, PV_AR,
|
||||||
{(char_u *)FALSE, (char_u *)TRUE} SCRIPTID_INIT},
|
{(char_u *)FALSE, (char_u *)TRUE} SCRIPTID_INIT},
|
||||||
|
|||||||
@@ -6,8 +6,9 @@ local AsyncSession = require('nvim.async_session')
|
|||||||
local Session = require('nvim.session')
|
local Session = require('nvim.session')
|
||||||
|
|
||||||
local nvim_prog = os.getenv('NVIM_PROG') or 'build/bin/nvim'
|
local nvim_prog = os.getenv('NVIM_PROG') or 'build/bin/nvim'
|
||||||
|
--- FIXME: 'autoindent' messes up the insert() function
|
||||||
local nvim_argv = {nvim_prog, '-u', 'NONE', '-i', 'NONE', '-N',
|
local nvim_argv = {nvim_prog, '-u', 'NONE', '-i', 'NONE', '-N',
|
||||||
'--cmd', 'set shortmess+=I background=light noswapfile',
|
'--cmd', 'set shortmess+=I background=light noswapfile noautoindent',
|
||||||
'--embed'}
|
'--embed'}
|
||||||
|
|
||||||
-- Formulate a path to the directory containing nvim. We use this to
|
-- Formulate a path to the directory containing nvim. We use this to
|
||||||
|
|||||||
Reference in New Issue
Block a user