Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
f13dbdfe
Commit
f13dbdfe
authored
Jun 06, 2016
by
J. Cliff Dyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add simple vimrc
parent
94f06024
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
0 deletions
+77
-0
playbooks/roles/local_dev/files/ftplugin-python.vim
+13
-0
playbooks/roles/local_dev/files/vimrc
+33
-0
playbooks/roles/local_dev/tasks/main.yml
+31
-0
No files found.
playbooks/roles/local_dev/files/ftplugin-python.vim
0 → 100644
View file @
f13dbdfe
" 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#
playbooks/roles/local_dev/files/vimrc
0 → 100644
View file @
f13dbdfe
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
playbooks/roles/local_dev/tasks/main.yml
View file @
f13dbdfe
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment