This repository has been archived on 2021-12-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
neovim-config/init.vim

23 lines
959 B
VimL

" The leader key is the main modifier used for keybindings.
" You can use it inside keybindings by using <leader>
" I use space as my leader key
let g:mapleader = ' '
" 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>"
" 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/plugins/*.vim
" This sources a .vim/local.vim file in the current directory, if it exists.
" This allows for project-specific settings, such as on-write autocmd's etc.
" The silent! prevents it from showing an error if no local.vim file is found
silent! source .vim/local.vim