From 3b02022de978956d83dcb5536e468914b7d5ec0b Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sat, 26 Sep 2020 16:15:53 +0100 Subject: [PATCH] VIM: Adds some simple settings from my old vimrc * New windows opening right and down * spellcheck language en_gb * Tell vim it's a fast terminal * number and relativenumber * allow buffers to be backgrounded * Try and keep cursor 5 lines from the bottom / top when scrolling --- nvim/.config/nvim/plugin/settings.vim | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/nvim/.config/nvim/plugin/settings.vim b/nvim/.config/nvim/plugin/settings.vim index 9ed4e383..541fd7f0 100644 --- a/nvim/.config/nvim/plugin/settings.vim +++ b/nvim/.config/nvim/plugin/settings.vim @@ -1,4 +1,24 @@ +" Set colourscheme to gruvbox let g:gruvbox_italic=1 set termguicolors colorscheme gruvbox +" Set spellcheck language to english +set spelllang=en_gb + +" Set default split to be right or bottom +set splitright +set splitbelow + +" Tell vim it's a fast terminal +set ttyfast + +" set relative ruler with current line as real line number +set relativenumber +set number + +" Allows vim to background buffers without saving +set hidden + +" Makes vim try to keep 5 lines visible at the top and bottom +set scrolloff=5