set nocompatible "Function to source only if file exists { function! SourceIfExist(file) if filereadable(expand(a:file)) exe 'source' a:file endif endfunction " } call SourceIfExist("/etc/vimrc") "Vim Plug Plugins call SourceIfExist("~/.vim/plugins.vim") let mapleader = " " " Plugin configurations call SourceIfExist("~/.vim/config.vim") syntax on filetype on filetype plugin indent on set mouse=v set clipboard=unnamedplus set autoindent set incsearch set hlsearch set showmatch set t_RV= set tabstop=4 set shiftwidth=4 set termguicolors "set is highlight ai ic scs " Theme call SourceIfExist("~/.vim/themes/onedark.vim") " Import Keymaps call SourceIfExist("~/.vim/keymaps.vim") autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab autocmd FileType lua setlocal ts=2 sts=2 sw=2 expandtab