feat(line-length): update line length to 100 cols

This commit is contained in:
2024-03-28 18:12:39 +01:00
parent d51516bbbf
commit 2f6ff745c8
4 changed files with 13 additions and 4 deletions
+8 -1
View File
@@ -11,7 +11,6 @@ vim.keymap.set("n", "<C-s>", function ()
vim.cmd.write({ mods = { silent = true, }, })
end)
-- Cycle buffers
-- TODO: change to :bnext and :bprev
vim.keymap.set("n", "<C-End>", vim.cmd.bnext)
vim.keymap.set("n", "<C-Home>", vim.cmd.bprev)
@@ -20,6 +19,14 @@ vim.keymap.set("n", "<C-d>", "<C-d>zz")
vim.keymap.set("n", "<C-u>", "<C-u>zz")
vim.keymap.set("n", "n", "nzzzv")
vim.keymap.set("n", "N", "Nzzzv")
-- nnoremap <expr> j v:count ? 'j' : 'gj'
-- nnoremap <expr> k v:count ? 'k' : 'gk'
vim.keymap.set("n", "j", function ()
return vim.v.count == 0 and "gj" or "j"
end, { expr = true })
vim.keymap.set("n", "k", function ()
return vim.v.count == 0 and "gk" or "k"
end, { expr = true })
--- General mappings ---
-- yank/put using named register
+1 -1
View File
@@ -77,7 +77,7 @@ vim.cmd.filetype("plugin on")
vim.opt.hlsearch = true
vim.opt.laststatus = 3
vim.opt.textwidth = 0
vim.opt.colorcolumn = "81"
vim.opt.colorcolumn = "101"
vim.opt.shortmess:append("a")
vim.opt.autoread = true
-- vim.opt.cmdheight = 0 -- To hide cmdline when not used. Disabled due to