Changed some file permissions
Changed another permission Changed some file permissionsmaster
parent
cfc2d2784f
commit
7f776d0fd2
17
init.vim
17
init.vim
|
@ -1,8 +1,17 @@
|
||||||
" Change leader key to space
|
" The leader key is the main modifier used for keybindings.
|
||||||
" Map leader to space
|
" You can use it inside keybindings by using <leader>
|
||||||
|
" I use space as my leader key
|
||||||
let g:mapleader = ' '
|
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 = "\<tab>"
|
let g:maplocalleader = "\<tab>"
|
||||||
|
|
||||||
" 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
|
runtime! init/*.vim
|
||||||
|
|
|
@ -1,26 +1,30 @@
|
||||||
" Colorscheme
|
" 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 termguicolors
|
||||||
" Set colorscheme
|
" Set colorscheme
|
||||||
colorscheme flattened_dark
|
colorscheme flattened_dark
|
||||||
|
|
||||||
" Line numbers
|
" 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
|
set number
|
||||||
" Show relative line number on all other lines
|
" This shows the relative line numbers
|
||||||
set relativenumber
|
set relativenumber
|
||||||
|
|
||||||
" Splits
|
" Splits
|
||||||
|
" I prefer the logic of 'open your main window first, and all other
|
||||||
|
" afterwards'.
|
||||||
" Make horizontal splits appear below active window
|
" Make horizontal splits appear below active window
|
||||||
set splitbelow
|
set splitbelow
|
||||||
" Same for vertical splits, but to the right of active window
|
" Same for vertical splits, but to the right of active window
|
||||||
set splitright
|
set splitright
|
||||||
|
|
||||||
" Indentation
|
" Indentation
|
||||||
" Replace tabs with spaces
|
" This makes Vim use spaces instead of tabs for indentation
|
||||||
set expandtab
|
set expandtab
|
||||||
" Width of a tab; with expandtab on, this sets by how many spaces it should be
|
" This sets each indent to be 4 characters wide (4 spaces with expandtab on)
|
||||||
" replaced
|
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
" Number of spaces that should be used for auto indentation
|
" Number of spaces that should be used for auto indentation
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
|
|
Reference in New Issue