diff options
| author | jdhao <jdhao@hotmail.com> | 2019-09-26 23:18:19 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2019-09-26 23:18:19 +0800 |
| commit | 460ec98052e07bbf16d8143d8f242280662582a6 (patch) | |
| tree | d258f1fcbcd326fb1c4091ca00326f4d08ec66f7 /variables.vim | |
| parent | 08c5c49f181fbadf4a2f518155819a916e351a1a (diff) | |
Split large nvim config into several files for easier management
Diffstat (limited to 'variables.vim')
| -rw-r--r-- | variables.vim | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/variables.vim b/variables.vim new file mode 100644 index 0000000..febf67d --- /dev/null +++ b/variables.vim @@ -0,0 +1,40 @@ +"{ Global Variable +"{{ Builtin variables +" Path to Python 3 interpreter (must be an absolute path), make startup +" faster. See https://neovim.io/doc/user/provider.html. Change this variable +" in accordance with your system. +if executable('python') + " The output of `system()` function contains a newline character which + " should be removed, see https://vi.stackexchange.com/a/2868/15292 + if has('win32') + let g:python3_host_prog=substitute(system('where python'), '.exe\n\+$', '', 'g') + elseif has('unix') + let g:python3_host_prog=substitute(system('which python'), '\n\+$', '', 'g') + endif +else + echoerr 'Python executable not found! You must install Python and set its PATH!' +endif + +" Custom mapping <leader> (see `:h mapleader` for more info) +let mapleader = ',' +"}} + +"{{ Disable loading certain plugins +" Do not load netrw by default since I do not use it, see +" https://github.com/bling/dotvim/issues/4 +let g:loaded_netrwPlugin = 1 + +" Do not load tohtml.vim +let g:loaded_2html_plugin = 1 + +" Do not load zipPlugin.vim, gzip.vim and tarPlugin.vim (all these plugins are +" related to checking files inside compressed files) +let g:loaded_zipPlugin = 1 +let loaded_gzip = 1 +let g:loaded_tarPlugin = 1 + +" Do not use builtin matchit.vim and matchparen.vim +let loaded_matchit = 1 +let g:loaded_matchparen = 1 +"}} +"} |
