config: set changes preview

- Sets the `inccommand` option to `nosplit` to preview the changes
  before accepting them with the substitute command.
- Removes unused configuration.

Co-Authored-by: iGor milhit <igor@milhit.ch>
iGor milhit 2023-06-30 16:30:44 +02:00
parent 8543c689b0
commit af95122e63
Signed by: igor
GPG Key ID: 692D97C3D0228A99
1 changed files with 4 additions and 4 deletions

View File

@ -237,6 +237,10 @@ vim.opt.rtp:append (vim.fn.stdpath ('data') .. '/site')
-- Set highlight on search
vim.o.hlsearch = true
-- Preview changes when searching and substituing
-- nosplit avoid to display the preview in a separate split
vim.o.inccommand = "nosplit"
-- Make line numbers default
vim.wo.number = true
@ -245,10 +249,6 @@ vim.opt.textwidth = 79
-- Display the cusor column at 79+1 column
vim.opt.colorcolumn:append('+1')
-- Set text formatting options
-- 'a' is for autoformat
-- vim.opt.formatoptions:append('a')
-- Enable mouse mode
vim.o.mouse = 'a'