From bcce8c63baa1abeeced700bb7761e43e80cafbc4 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 1 Jul 2021 22:49:44 +0100 Subject: [PATCH] Massively thin out vimrc I don't need all that. And this way I can copy it to servers easier (coming soon) --- files/vimrc | 17 ++++++++++------- tasks/vim.yml | 26 +------------------------- 2 files changed, 11 insertions(+), 32 deletions(-) diff --git a/files/vimrc b/files/vimrc index 9424268..c954284 100644 --- a/files/vimrc +++ b/files/vimrc @@ -1,18 +1,21 @@ -execute pathogen#infect() - -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 + +" Tab inserts 4 spaces +set expandtab +set ts=4 sw=4 sts=4 + +" Autocomplete in command mode (Tab to invoke) +set wildmenu + +" Set the 'default but not default' colour scheme +colo default diff --git a/tasks/vim.yml b/tasks/vim.yml index b478e28..e68c1af 100644 --- a/tasks/vim.yml +++ b/tasks/vim.yml @@ -1,11 +1,10 @@ -- name: Install dev packages +- name: Install vim aur: name: "{{ item }}" become: true become_user: aur_builder loop: - gvim - - vim-pathogen - name: Install vimrc copy: @@ -22,26 +21,3 @@ mode: 0644 owner: root group: users - -- name: Create vim packages directory - 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 }}" - loop: - - 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