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

23 lines
931 B
VimL
Raw 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
" 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
2020-08-08 20:27:01 +02:00
runtime! init/*.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