From 7f776d0fd234e2a1a41677a6a23befd249413c43 Mon Sep 17 00:00:00 2001 From: chewingbever Date: Thu, 20 Aug 2020 14:42:18 +0200 Subject: [PATCH] Changed some file permissions Changed another permission Changed some file permissions --- init.vim | 17 +++++++++++++---- init/settings.vim | 16 ++++++++++------ 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/init.vim b/init.vim index 9a9c0ee..b98c55a 100644 --- a/init.vim +++ b/init.vim @@ -1,8 +1,17 @@ -" Change leader key to space -" Map leader to space +" The leader key is the main modifier used for keybindings. +" You can use it inside keybindings by using +" I use space as my leader key let g:mapleader = ' ' -" Map local leader to tab +" Local leader is the same principle as leader, but it's used +" for keybindings that are local to the current buffer, to +" avoid confusion +" I use tab as my local leader let g:maplocalleader = "\" -" Source plugins +" This sources all the files inside the init directory +" The directory must be in your runtimepath; my init directory +" is inside my ~/.config/nvim directory, this one is always in +" runtimepath +" Without the !, runtime only sources the first file in the list, +" instead of all runtime! init/*.vim diff --git a/init/settings.vim b/init/settings.vim index 2588815..e6afa41 100644 --- a/init/settings.vim +++ b/init/settings.vim @@ -1,26 +1,30 @@ " Colorscheme -" Tell Neovim to use 256 colors +" This forces (Neo)Vim to assume the terminal supports 256 colors. +" Without this, some colorschemes (including mine) don't work properly. set termguicolors " Set colorscheme colorscheme flattened_dark " Line numbers -" Show absolute line number on current line +" I use the combination of absolute and relative line numbers. On the +" current line, it shows the absolute; on all the others, the relative. +" This shows the absolute line number set number -" Show relative line number on all other lines +" This shows the relative line numbers set relativenumber " Splits +" I prefer the logic of 'open your main window first, and all other +" afterwards'. " Make horizontal splits appear below active window set splitbelow " Same for vertical splits, but to the right of active window set splitright " Indentation -" Replace tabs with spaces +" This makes Vim use spaces instead of tabs for indentation set expandtab -" Width of a tab; with expandtab on, this sets by how many spaces it should be -" replaced +" This sets each indent to be 4 characters wide (4 spaces with expandtab on) set tabstop=4 " Number of spaces that should be used for auto indentation set shiftwidth=4