M .bashrc => .bashrc +6 -1
@@ 17,7 17,12 @@ export PATH="$HOME/.local/bin:$XDG_CONFIG_HOME/composer/vendor/bin/:$PATH"
[ ! -d "$XDG_CACHE_HOME" ] && mkdir "$XDG_CACHE_HOME"
HISTFILE="$XDG_CACHE_HOME/bash_history"
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
-export VIMINIT=":source $XDG_CONFIG_HOME/vim/vimrc"
+if [ -n "$(grep -F 'ID=arch' /etc/os-release)" ] ||
+ [ -n "$(grep -F 'ID_LIKE=arch' /etc/os-release)" ];then
+ export VIMINIT=":source $XDG_CONFIG_HOME/vim/vimrc"
+else
+ export VIMINIT=":source $XDG_CONFIG_HOME/vim/vimrc-nonarch"
+fi
export SCREENRC="$XDG_CONFIG_HOME/screen/screenrc"
export GRADLE_USER_HOME="$XDG_CACHE_HOME/gradle"
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
A .config/vim/vimrc-nonarch => .config/vim/vimrc-nonarch +24 -0
@@ 0,0 1,24 @@
+source /etc/vimrc
+highlight Pmenu ctermbg=none ctermfg=none
+highlight PmenuSbar ctermbg=none
+highlight PmenuThumb ctermbg=gray
+highlight PmenuSel ctermbg=darkgray ctermfg=white
+highlight ALEErrorLine ctermbg=darkblue
+set title
+set mouse=
+set viminfo='20,<1000,s1000,n$HOME/.cache/vim/viminfo
+set backupdir=$HOME/.cache/vim/backup
+set directory=$HOME/.cache/vim/swap
+set viewdir=$HOME/.cache/vim/view
+set undodir=$HOME/.cache/vim/undo
+let g:ale_set_signs=0
+let g:c_parse_compile_commands=1
+let g:ale_linters={
+\ 'c': ['clangd']
+\}
+"let g:ale_c_build_dir='build'
+"let g:ale_c_clangd_options='--compile-commands-dir=.'
+let g:ale_php_phpcs_options = "--standard=PSR2"
+let g:ale_completion_enabled=1
+let g:SuperTabDefaultCompletionType='<c-n>'
+autocmd User ALELintPost let tmp=ale#statusline#Count(bufnr(''))['total'] | set rulerformat=%{tmp},%l,%c%V%=%P