Simplify vim setup

This commit is contained in:
Jake Howard 2019-01-04 22:47:25 +00:00
parent 62e7ebcb49
commit 22c0a6c9a5
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 33 additions and 8 deletions

View file

@ -1,11 +1,18 @@
set runtimepath+=/usr/share/amix_vimrc
execute pathogen#infect()
source /usr/share/amix_vimrc/vimrcs/basic.vim
source /usr/share/amix_vimrc/vimrcs/filetypes.vim
source /usr/share/amix_vimrc/vimrcs/plugins_config.vim
source /usr/share/amix_vimrc/vimrcs/extended.vim
let g:lightline = {'colorscheme': 'wombat'}
cmap w!! w !sudo tee >/dev/null %
:set mouse=a
syntax on
filetype plugin indent on
set laststatus=2
if !has('gui_running')
set t_Co=256
endif
set background=dark
colorscheme peaksea

View file

@ -183,6 +183,7 @@
- 'ttf-ms-fonts'
- 'ttf-wps-fonts'
- 'universal-ctags-git'
- 'vim-pathogen'
- 'visual-studio-code-bin'
- 'virtualbox'
- 'vivaldi'

View file

@ -12,7 +12,24 @@
owner: root
group: users
- git:
repo: https://github.com/amix/vimrc.git
dest: /usr/share/amix_vimrc
- file:
path: '{{ home }}/.vim/bundle'
state: directory
owner: "{{ user }}"
mode: 0755
- name: Install vim packages
git:
repo: "{{ item }}"
dest: "{{ home }}/.vim/bundle/{{ item.split('/')[-1] }}"
force: true
become: true
become_user: "{{ user }}"
with_items:
- 'https://github.com/junegunn/goyo.vim'
- 'https://github.com/itchyny/lightline.vim'
- 'https://github.com/scrooloose/nerdtree'
- 'https://github.com/vim-scripts/peaksea'
- 'https://github.com/terryma/vim-multiple-cursors'
- 'https://github.com/jremmen/vim-ripgrep'
- 'https://github.com/amix/vim-zenroom2'