bundles/users: add vim
This commit is contained in:
parent
2990216a8b
commit
411d22d404
3 changed files with 33 additions and 0 deletions
28
bundles/users/files/vimrc
Normal file
28
bundles/users/files/vimrc
Normal 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
|
|
@ -21,6 +21,10 @@ files['/etc/tmux.conf'] = {
|
|||
'content_type': 'mako',
|
||||
}
|
||||
|
||||
files['/etc/vim/vimrc.local'] = {
|
||||
'source': 'vimrc',
|
||||
}
|
||||
|
||||
for username, attrs in node.metadata['users'].items():
|
||||
home = attrs.get('home', '/home/{}'.format(username))
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ def apt(metadata):
|
|||
'packages': {
|
||||
'fish': {},
|
||||
'tmux': {},
|
||||
'vim': {},
|
||||
},
|
||||
},
|
||||
}, DEFAULTS, DONE
|
||||
|
|
Loading…
Reference in a new issue