This repository has been archived on 2021-12-21. You can view files and clone it, but cannot push or open issues/pull-requests.
neovim-config/init.vim

26 lines
1.0 KiB
VimL
Raw Permalink Normal View History

" 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
2020-08-09 07:49:51 +02:00
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
2020-08-09 07:49:51 +02:00
let g:maplocalleader = "\<tab>"
2020-08-08 20:27:01 +02:00
" Here, I source the various config files. I explicitely source them one by one
" to ensure their order is always the same (the autocmds are needed later, e.g.
" when the colorscheme is sourced)
runtime init/autocmds.vim
runtime init/keys.vim
runtime init/netrw.vim
runtime init/settings.vim
" The configs for the various plugins don't have a particular order to them
2021-02-01 09:48:09 +01:00
runtime! init/plugins/*.vim
2020-10-23 09:45:55 +02:00
" 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.
2020-10-30 11:27:40 +01:00
" The silent! prevents it from showing an error if no local.vim file is found
2020-10-23 09:45:55 +02:00
silent! source .vim/local.vim