Make server dotfiles generic: single servers/ folder instead of per-host
Consolidated server/<host>/ into one generic servers/ set applied to any host. Baseline chosen as the superset of the per-host configs: .zshrc (agnoster + kubectl), identical .vimrc, standard .bashrc, fuller htoprc, and the shared neofetch config. install.sh now deploys servers/ unconditionally (no hostname matching); removed the --host flag. README updated accordingly.
This commit is contained in:
67
servers/.vimrc
Normal file
67
servers/.vimrc
Normal file
@@ -0,0 +1,67 @@
|
||||
set nohlsearch
|
||||
set relativenumber
|
||||
set nocompatible
|
||||
set smartindent
|
||||
filetype plugin on
|
||||
syntax on
|
||||
vmap <C-c> "+yi
|
||||
vmap <C-x> "+c
|
||||
vmap <C-v> c<ESC>"+p
|
||||
imap <C-v> <C-r><C-o>+
|
||||
|
||||
let g:NERDTreeWinPos = "left"
|
||||
set tabstop=4
|
||||
set backspace=indent,eol,start
|
||||
|
||||
command WQ wq
|
||||
command Wq wq
|
||||
command W w
|
||||
command Q q
|
||||
|
||||
set rtp+=~/.vim/bundle/Vundle.vim
|
||||
call vundle#begin()
|
||||
Plugin 'itchyny/lightline.vim'
|
||||
Plugin 'itchyny/vim-gitbranch'
|
||||
Plugin 'VundleVim/Vundle.vim'
|
||||
Plugin 'dracula/vim'
|
||||
call vundle#end()
|
||||
|
||||
color dracula
|
||||
|
||||
""" =====> Lightline
|
||||
set laststatus=2
|
||||
let g:lightline = {
|
||||
\ 'colorscheme': 'one',
|
||||
\ 'active': {
|
||||
\ 'left': [ ['mode','paste'],
|
||||
\ ['gitbranch', 'readonly', 'filename', 'modified'] ]
|
||||
\ },
|
||||
\ 'component_function': {
|
||||
\ 'gitbranch': 'fugitive#head'
|
||||
\ },
|
||||
\}
|
||||
|
||||
let g:lightline = {
|
||||
\ 'colorscheme': 'one',
|
||||
\ 'active': {
|
||||
\ 'left': [ ['mode', 'paste'],
|
||||
\ ['fugitive', 'readonly', 'filename', 'modified'] ],
|
||||
\ 'right': [ [ 'lineinfo' ], ['percent'] ]
|
||||
\ },
|
||||
\ 'component': {
|
||||
\ 'readonly': '%{&filetype=="help"?"":&readonly?"🔒":""}',
|
||||
\ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}',
|
||||
\ 'fugitive': '%{exists("*fugitive#head")?fugitive#head():""}'
|
||||
\ },
|
||||
\ 'component_visible_condition': {
|
||||
\ 'readonly': '(&filetype!="help"&& &readonly)',
|
||||
\ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))',
|
||||
\ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())'
|
||||
\ },
|
||||
\ 'separator': { 'left': ' ', 'right': ' ' },
|
||||
\ 'subseparator': { 'left': ' ', 'right': ' ' }
|
||||
\ }
|
||||
|
||||
if !has('gui_running')
|
||||
set t_Co=256
|
||||
endif
|
||||
Reference in New Issue
Block a user