Tab behaviour
This commit is contained in:
parent
92d1767305
commit
36a5f40360
1 changed files with 6 additions and 6 deletions
|
@ -51,7 +51,7 @@ vim.opt.splitbelow = true
|
|||
-- See `:help 'list'`
|
||||
-- and `:help 'listchars'`
|
||||
vim.opt.list = true
|
||||
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
|
||||
vim.opt.listchars = { tab = '│ ', trail = '·', nbsp = '␣' }
|
||||
|
||||
-- Preview substitutions live, as you type!
|
||||
vim.opt.inccommand = 'split'
|
||||
|
@ -63,10 +63,10 @@ vim.opt.cursorline = true
|
|||
vim.opt.scrolloff = 10
|
||||
|
||||
-- Make tabs behave
|
||||
vim.opt.smarttab = true
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.softtabstop = 2
|
||||
vim.opt.smarttab = true -- Smart tabbing behavior, context-dependent
|
||||
vim.opt.expandtab = true -- Convert tabs to spaces
|
||||
vim.opt.tabstop = 4 -- A Tab character is visually equal to 4 spaces.
|
||||
vim.opt.shiftwidth = 4 -- Auto-indent shifts are 4 spaces wide.
|
||||
vim.opt.softtabstop = 4 -- When pressing Tab, insert 4 spaces if expandtab is enabled.
|
||||
|
||||
-- vim: ts=2 sts=2 sw=2 et
|
||||
|
|
Loading…
Reference in a new issue