Commit be2888ca authored by Jonathan Carter's avatar Jonathan Carter

Add vim role

parent 0f599497
Pipeline #34033 passed with stages
in 2 minutes and 32 seconds
# vim
Install vim and install some more preferential vim defaults.
## Tasks
Everything is in the `tasks/main.yml` file.
## Available variables
There are no available variables in this role.
" == Editor stuff ==
set t_Co=256
set paste
set showmatch
set autoindent
set smartindent
set copyindent
set ruler
set encoding=utf8
"set expandtab
set shiftwidth=4
set mouse=
set ttymouse=
set noai
" == Colours ==
syntax on
colorscheme elflord
let g:elflord_termcolors=256
set background=dark
" highlight 80'th colour
highlight OverLength ctermfg=red
match OverLength /\%80v./
let python_highlight_all=1
filetype on
" highlight bad whitespace
highlight BadWhitespace ctermbg=red guibg=red
" highlight bad whitespace
highlight BadWhitespace ctermbg=red guibg=red
" Use system clipboard
set clipboard=unnamed
---
- name: install vim
apt:
name: vim
- name: set up vimrc.local
copy:
src: files/vimrc.local
dest: /etc/vim/vimrc.local
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment