1
0
Fork 0

fix spaces

As it turns out, you not confused with tabs and spaces settings.
And in some editors it's has some stange, kinda weird optins e.g
"shiftwidth", "tabstop", and "expandtab" (inserting spaces).

Kinda weird and I don't understand why?
This commit is contained in:
CRy386i 2024-11-30 00:32:37 +02:00
parent fd509a515b
commit 83d0eff656
3 changed files with 242 additions and 240 deletions

View file

@ -5,20 +5,21 @@ local g = vim.g
-- Set the numbers of whitespace characters when shifting with "<" or ">".
-- In fact, in spite of expandtab, the terminal still displays whitespace charaters,
-- so let's set the number of whitespace characters for ones press of these buttons.
opt.shiftwidth = 2
opt.shiftwidth = 4
-- one tab == two whitespace characters in new line.
-- Pressing <CR> will insert tabs. Tabs are drawn as whitespace.
-- that's why we have to set that each tab on a new line is two whitespace.
opt.tabstop = 2
opt.tabstop = 4
-- Adjust new line to the previous indentation
-- Adjust new line to the previous indentation.
opt.smartindent = true
opt.expandtab = false
-- On pressing tab, insert 4 spaces.
opt.expandtab = true
opt.smarttab = true
opt.scrolloff = 8
-- Show unprintable
-- Show unprintable.
opt.list = true
opt.listchars = {tab = '', eol = '¬', trail = '·'}