init commit
This commit is contained in:
commit
fd509a515b
8 changed files with 419 additions and 0 deletions
24
lua/base/tabs.lua
Normal file
24
lua/base/tabs.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
local opt = vim.opt
|
||||
local g = vim.g
|
||||
|
||||
-- [[ set tabs ]] --
|
||||
-- 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
|
||||
|
||||
-- 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
|
||||
|
||||
-- Adjust new line to the previous indentation
|
||||
opt.smartindent = true
|
||||
|
||||
opt.expandtab = false
|
||||
opt.smarttab = true
|
||||
opt.scrolloff = 8
|
||||
|
||||
-- Show unprintable
|
||||
opt.list = true
|
||||
opt.listchars = {tab = '⁞ ', eol = '¬', trail = '·'}
|
||||
Loading…
Add table
Add a link
Reference in a new issue