Line wrap cursor movement option (#855)

This commit is contained in:
rob 2021-07-11 09:00:15 +01:00 committed by GitHub
parent 38d118d9b2
commit f2e4f540a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,7 @@ USER = vim.fn.expand "$USER"
O = {
leader_key = "space",
colorscheme = "spacegray",
line_wrap_cursor_movement = true,
transparent_window = false,
format_on_save = true,
vnsip_dir = vim.fn.stdpath "config" .. "/snippets",

View file

@ -9,7 +9,11 @@ cmd "filetype plugin on"
cmd('let &titleold="' .. TERMINAL .. '"')
cmd "set inccommand=split"
cmd "set iskeyword+=-"
cmd "set whichwrap+=<,>,[,],h,l"
if O.line_wrap_cursor_movement then
cmd "set whichwrap+=<,>,[,],h,l"
end
if O.transparent_window then
cmd "au ColorScheme * hi Normal ctermbg=none guibg=none"
cmd "au ColorScheme * hi SignColumn ctermbg=none guibg=none"