made separate vimrc files for debian and arch as arch doesn't require packadd

This commit is contained in:
Radar231 2023-12-21 13:46:19 -05:00
parent 1cd73016cc
commit 5e0e815131
3 changed files with 69 additions and 1 deletions

57
files/vimrc-arch Normal file
View File

@ -0,0 +1,57 @@
" #########################################################################
" use vim settings, rather than vi settings
" must be at start of vimrc as it changes other options as a side effect
set nocompatible
" make backspace behave in a sane manner
set backspace=indent,eol,start
" switch syntax highlighting on
syntax on
filetype plugin on
set smartindent
set autoindent
set softtabstop=4
set tabstop=4
set shiftwidth=4
set expandtab
set number
set relativenumber
set showmatch
set nowrap
set smartcase
set noswapfile
set nobackup
set undodir=~/.vim/undodir
set undofile
set incsearch
" turn on full python highlighting
let python_highlight_all = 1
" netrw tweaks
let g:netrw_banner=0 " disable annoying banner
let g:netrw_browse_split=4 " open in prior window
let g:netrw_altv=1 " open splits to the right
let g:netrw_liststyle=3 " tree view
nmap <silent> <C-e> :Lexplore<CR>
"let g:netrw_list_hide=netrw_gitignore#Hide()
"let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
" set 256 colors and use specific color scheme
set t_Co=256
colorscheme calmar256-dark
set background=dark
" from no_plugins page (https://github.com/changemewtf/no_plugins)
set path+=**
set wildmenu

View File

@ -96,10 +96,21 @@
############################################################
- name: Copy vimrc
copy:
src: "files/vimrc"
src: "files/vimrc-debian"
dest: "{{ homedir }}/.vimrc"
owner: "{{ username }}"
group: "{{ username }}"
mode: "0644"
when: ansible_os_family == "Debian"
############################################################
- name: Copy vimrc
copy:
src: "files/vimrc-arch"
dest: "{{ homedir }}/.vimrc"
owner: "{{ username }}"
group: "{{ username }}"
mode: "0644"
when: ansible_os_family == "Archlinux"
# EOF