diff --git a/vim/vim/colors/minimalist.vim b/vim/vim/pack/colors/start/minimalist.vim similarity index 100% rename from vim/vim/colors/minimalist.vim rename to vim/vim/pack/colors/start/minimalist.vim diff --git a/vim/vim/colors/solarized.vim b/vim/vim/pack/colors/start/solarized.vim similarity index 100% rename from vim/vim/colors/solarized.vim rename to vim/vim/pack/colors/start/solarized.vim diff --git a/vim/vimrc b/vim/vimrc index da8f059..11624a7 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -18,10 +18,12 @@ set autoread " Auto-reload modified files set hidden " Allow for un-saved buffers set autochdir " Change directory automatically +set clipboard+=unnamed " Include the global buffer + set autoindent " Enable auto-indentation set expandtab " Spaces for tab -set shiftwidth=4 " Spaces per shift -set softtabstop=4 " Spaces to use when editing +set shiftwidth=2 " Spaces per shift +set softtabstop=2 " Spaces to use when editing set listchars=tab:>-,trail:ยท " Show me tabs and spaces set number " Enable line numbers @@ -47,9 +49,20 @@ let g:netrw_banner=0 " Disable the netrw banner augroup ruby_settings " Custom settings: Ruby{-like} autocmd! autocmd FileType ruby,eruby,yaml - \ setlocal shiftwidth=2 - \ softtabstop=2 - \ makeprg=rubocop + \ setlocal makeprg=rubocop +augroup END + +augroup python_settings " Custom settings: Python-like + autocmd! + autocmd FileType py + \ setlocal shiftwidth=4 + \ softtabstop=4 +augroup END + +augroup shell_settings " Custom settings: Shell-like + autocmd! + autocmd FileType sh + \ setlocal makeprg=shellcheck augroup END augroup spellcheckr " Spelling, for some files... @@ -197,9 +210,3 @@ function! TmuxWrite(pane, line1, line2) abort return 'echoerr '.string(v:exception) endtry endfunction -" ============================================================================== -" Plugins -" ============================================================================== -if filereadable(expand('~/.vimrc-plugins')) - source ~/.vimrc-plugins -endif