I want comment continuation!
This commit is contained in:
parent
96372bd1de
commit
153a9068ea
1 changed files with 5 additions and 12 deletions
|
@ -14,18 +14,11 @@ vim.opt.clipboard = "unnamedplus" -- yank to system clipboard
|
||||||
-- from my original vimrc
|
-- from my original vimrc
|
||||||
vim.opt.expandtab = true
|
vim.opt.expandtab = true
|
||||||
|
|
||||||
-- formatoptions
|
-- :help fo-table
|
||||||
-- https://vimdoc.sourceforge.net/htmldoc/change.html#fo-table
|
|
||||||
-- my original was cqr:
|
vim.opt.formatoptions:prepend ( "c" )
|
||||||
-- c: Auto-wrap comments using textwidth, inserting the current comment leader automatically.
|
vim.opt.formatoptions:prepend ( "q" )
|
||||||
-- q: Allow formatting of comments with "gq".
|
vim.opt.formatoptions:prepend ( "r" )
|
||||||
-- r: Automatically insert the current comment leader after hitting <Enter> in Insert mode.
|
|
||||||
-- default is jcroql:
|
|
||||||
-- j: (nvim) Where it makes sense, remove a comment leader when joining lines.
|
|
||||||
-- o: Automatically insert the current comment leader after hitting 'o' or 'O' in Normal mode.
|
|
||||||
-- l: Long lines are not broken in insert mode: When a line was longer than 'textwidth' when the insert command started, Vim does not automatically format it.
|
|
||||||
--
|
|
||||||
-- the defaults seem fine
|
|
||||||
|
|
||||||
vim.opt.shiftwidth = 4
|
vim.opt.shiftwidth = 4
|
||||||
vim.opt.tabstop = 4
|
vim.opt.tabstop = 4
|
||||||
|
|
Loading…
Reference in a new issue