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
|
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
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue