Simplify vim setup
This commit is contained in:
parent
62e7ebcb49
commit
22c0a6c9a5
3 changed files with 33 additions and 8 deletions
17
files/vimrc
17
files/vimrc
|
@ -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
|
||||
|
|
|
@ -183,6 +183,7 @@
|
|||
- 'ttf-ms-fonts'
|
||||
- 'ttf-wps-fonts'
|
||||
- 'universal-ctags-git'
|
||||
- 'vim-pathogen'
|
||||
- 'visual-studio-code-bin'
|
||||
- 'virtualbox'
|
||||
- 'vivaldi'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue