Vim config section

This commit is contained in:
Nox Sluijtman 2023-02-26 11:52:29 +01:00
parent 86fa148846
commit 18b5126a32

View file

@ -52,18 +52,25 @@ In NeoVim terminals are handled significantly worse and is the main reason I wen
## Tips ## Tips
Something I came across some time ago is that you can interpet the current line with whatever you want using Something I came across some time ago is that you can interpet the current line with whatever you want using
``` ```
:.!<interpeter> :.!<interpeter>
``` ```
So for instance running... So for instance running...
``` ```
:.!bash :.!bash
``` ```
...while highlighting the line... ...while highlighting the line...
``` bash ``` bash
echo Line{1..5} | sed 's/ /\n/g' echo Line{1..5} | sed 's/ /\n/g'
``` ```
...will result in:
...will result in:
``` ```
Line1 Line1
Line2 Line2
@ -71,3 +78,26 @@ Line3
Line4 Line4
Line5 Line5
``` ```
# Configuration
Some settings I like putting in my git configuration files.
```vimrc
set nocompatible
set termguicolors
set cursorline
set hlsearch
set ignorecase
set smartcase
set number
set relativenumber
set wildmeny
set mouse=
set scrolloff=3
set listchars=tab:│\ ,lead:·,trail:·,eol:¬ "'lead' is a NeoVim specific option
set list
" I haven't tried if this works in base vim.
match ExtraWhitespace /\s\+$/
highlight ExtraWhitespace guifg=red
```