nixos/modules/base/vim/config.vim

45 lines
740 B
VimL
Raw Normal View History

2023-08-09 03:24:30 +02:00
" Colour scheme
colorscheme kanagawa
set termguicolors
" Show relative line numbers and highlight the current one
set number
set relativenumber
set cursorline
set cursorlineopt=number
" Keep some context above and below the cursor
2023-11-11 22:08:57 +01:00
set scrolloff=3
2023-08-09 03:24:30 +02:00
set sidescrolloff=3
" Tabs are spaces
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
" Better search
set ignorecase
set smartcase
" Jump to new splits automatically
set splitbelow
set splitright
" Visualise trailing whitespace
set list
set listchars=trail,nbsp:␣
" Spelling
set spell
set spelllang=en_us,en_gb,da_dk
" Use space as leader key
nnoremap <Space> <Nop>
let mapleader = "\<Space>"
" Keep visual selection after indenting
vnoremap > >gv
vnoremap < <gv