bundles/users: add vim

This commit is contained in:
Franzi 2020-04-11 12:26:02 +02:00
parent 2990216a8b
commit 411d22d404
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 33 additions and 0 deletions

28
bundles/users/files/vimrc Normal file
View file

@ -0,0 +1,28 @@
set number
set lbr
set fdc=0
set vb
set expandtab
set shiftwidth=4
set tabstop=4
set softtabstop=4
set linespace=0
set autoindent
set smartindent
set mouse=a
set cursorline
syntax on
set showcmd
set encoding=utf-8
set autowrite
set noautochdir
set list
set listchars=trail:␣,tab:→\ ,extends:>,precedes:<
set hlsearch
map <silent> <c-k> :nohlsearch<CR>
set colorcolumn=72,120
hi colorcolumn ctermbg=NONE ctermfg=red cterm=bold guibg=NONE guifg=red gui=bold
au BufRead /tmp/neomutt-* set tw=72
au BufRead /tmp/mutt-* set tw=72

View file

@ -21,6 +21,10 @@ files['/etc/tmux.conf'] = {
'content_type': 'mako', 'content_type': 'mako',
} }
files['/etc/vim/vimrc.local'] = {
'source': 'vimrc',
}
for username, attrs in node.metadata['users'].items(): for username, attrs in node.metadata['users'].items():
home = attrs.get('home', '/home/{}'.format(username)) home = attrs.get('home', '/home/{}'.format(username))

View file

@ -5,6 +5,7 @@ def apt(metadata):
'packages': { 'packages': {
'fish': {}, 'fish': {},
'tmux': {}, 'tmux': {},
'vim': {},
}, },
}, },
}, DEFAULTS, DONE }, DEFAULTS, DONE