-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvimrc
More file actions
executable file
·35 lines (27 loc) · 1.07 KB
/
vimrc
File metadata and controls
executable file
·35 lines (27 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"========================== Setup ===========================
" Make sure Vim settings is used (Needs to be first)
set nocompatible
" Make sure Vim uses english as language. Also needs to be early.
set langmenu=en_US.UTF-8 " sets the language of the menu (gvim)
language en_US.UTF-8 " sets the language of the messages / ui (vim)
" Set the leader to be comma, I find it easy to reach and it's not
" as disturbing as space.
" Make sure this is loaded before loading plugins.
"let mapleader=","
" ========================= Plugins ==========================
" https://github.com/junegunn/vim-plug
if filereadable(expand("~/.vimrc.bundles"))
source ~/.vimrc.bundles
endif
" ====================== Custom configs ======================
function! s:SourceConfigFilesIn(directory)
let directory_splat = '~/.vim/' . a:directory . '/*'
for config_file in split(glob(directory_splat), '\n')
if filereadable(config_file)
execute 'source' config_file
endif
endfor
endfunction
call s:SourceConfigFilesIn('configs')
call s:SourceConfigFilesIn('plug_configs')
" vim:ft=vim