Commit f13dbdfe by J. Cliff Dyer

add simple vimrc

parent 94f06024
" Python specific syntax handling
" indent according to pep-8 rules (4 char, all spaces)
setlocal tabstop=8
setlocal expandtab
setlocal shiftwidth=4
setlocal softtabstop=4
setlocal smarttab
setlocal smartindent
setlocal cinwords=if,elif,else,for,while,with,try,except,finally,def,class
" Don't auto-align block comments to column 1
inoremap # X#
set nocompatible
" Turn on syntax highlighting
syntax on
" Handle filetypes
filetype on
" Handle filetype-based plugins and indentation rules
filetype plugin indent on
" Highlight matching delimiters (brackets, braces, quotes, etc.)
set showmatch
" Show the following replacement characters on :set list
set listchars=tab:→\ ,trail:·,nbsp:¤,precedes:«,extends:»,eol:↲
" Never autocomplete filenames that match the following
set wildignore+=*.pyc,*.pyo
" Silence error bells
set noerrorbells visualbell
" Standard indentation rules:
" - A tab character is 8 spaces wide
set tabstop=8
" - a block indents four spaces
set shiftwidth=4
" - Pressing the tab key indents by four spaces
set softtabstop=4
" - Always render indentation as spaces
set expandtab
......@@ -64,11 +64,42 @@
src: paver_autocomplete
dest: "{{ item.home }}/.paver_autocomplete"
owner: "{{ item.user }}"
group: "{{ common_web_group }}"
mode: 0755
with_items: localdev_accounts
when: item.user != 'None'
ignore_errors: yes
# Add useful vimrc files
- name: create .vim/plugin directory
file:
path: "{{ item.home }}/.vim/ftplugin"
owner: "{{ item.user }}"
group: "{{ common_web_group }}"
state: directory
with_items: localdev_accounts
when: item.user != 'None'
- name: add .vimrc file
copy:
src: vimrc
dest: "{{ item.home }}/.vimrc"
owner: "{{ item.user }}"
group: "{{ common_web_group }}"
mode: 0644
with_items: localdev_accounts
when: item.user != 'None'
- name: add python.vim ftplugin file
copy:
src: ftplugin-python.vim
dest: "{{ item.home }}/.vim/ftplugin/python.vim"
owner: "{{ item.user }}"
group: "{{ common_web_group }}"
mode: 0644
with_items: localdev_accounts
when: item.user != 'None'
# Edit the /etc/hosts file so that the Preview button will work in Studio
- name: add preview.localhost to /etc/hosts
shell: sed -i -r 's/^127.0.0.1\s+.*$/127.0.0.1 localhost preview.localhost/' /etc/hosts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment