This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/apps/neovim/init.vim

43 lines
894 B
VimL
Raw Normal View History

2017-12-21 12:18:17 -06:00
" vim compatibility
let $vimdir = $HOME.'/.vim'
if has('nvim')
let $vimdir = $HOME.'/.config/nvim'
endif
" utf8 encoding
if has('vim_starting')
set encoding=utf8
endif
" os detection functions
silent function! OSX()
return has('macunix')
endfunction
silent function! LINUX()
return has('unix') && !has('macunix') && !has('win32unix')
endfunction
silent function! WINDOWS()
return (has('win32') || has('win64'))
endfunction
" load a per-environment file if one exists
if filereadable(expand('$HOME/.env_init.vim'))
source "$HOME/.env_init.vim"
endif
let pluginsfile=$vimdir.'/plugins.vim'
exec 'source ' . pluginsfile
filetype on
filetype indent on
filetype plugin on
2017-12-21 12:18:17 -06:00
let settingsfile=$vimdir.'/settings.vim'
exec 'source ' . settingsfile
2017-07-12 02:20:50 -05:00
let commandsfile=$vimdir.'/commands.vim'
exec 'source ' . commandsfile
2017-12-21 12:18:17 -06:00
let bindingsfile=$vimdir.'/bindings.vim'
exec 'source ' . bindingsfile