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 let g:lightline = {'colorscheme': 'wombat'}
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
cmap w!! w !sudo tee >/dev/null % cmap w!! w !sudo tee >/dev/null %
:set mouse=a :set mouse=a
syntax on
filetype plugin indent 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-ms-fonts'
- 'ttf-wps-fonts' - 'ttf-wps-fonts'
- 'universal-ctags-git' - 'universal-ctags-git'
- 'vim-pathogen'
- 'visual-studio-code-bin' - 'visual-studio-code-bin'
- 'virtualbox' - 'virtualbox'
- 'vivaldi' - 'vivaldi'

View file

@ -12,7 +12,24 @@
owner: root owner: root
group: users group: users
- git: - file:
repo: https://github.com/amix/vimrc.git path: '{{ home }}/.vim/bundle'
dest: /usr/share/amix_vimrc state: directory
owner: "{{ user }}"
mode: 0755
- name: Install vim packages
git:
repo: "{{ item }}"
dest: "{{ home }}/.vim/bundle/{{ item.split('/')[-1] }}"
force: true 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'