Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added .vimrc for coding standards and updated README so people know h…

…ow to use it
  • Loading branch information...
commit 7c62e072df7d68bab9c532462e91f3d3d37911cc 1 parent 0718ff2
Fotios Lindiakos authored
Showing with 22 additions and 0 deletions.
  1. +16 −0 .vimrc
  2. +6 −0 README.md
View
16 .vimrc
@@ -0,0 +1,16 @@
+" Some basic vim options to make it work better
+set nocompatible
+syntax on
+filetype on
+filetype plugin indent on
+
+" Set tabbing options
+autocmd FileType ruby,yaml setlocal expandtab autoindent shiftwidth=2 softtabstop=2
+" Trim trailing whitespace from Ruby and Yaml files
+autocmd BufWritePre *.rb,*.yml,*.yaml :%s/\s\+$//e
+
+"flag problematic whitespace (trailing and spaces before tabs)
+"Note you get the same by doing let c_space_errors=1 but
+"this rule really applies to everything.
+highlight RedundantSpaces term=standout ctermbg=red guibg=red
+match RedundantSpaces /\s\+$\| \+\ze\t/ "\ze sets end of match so only spaces highlighted
View
6 README.md
@@ -14,3 +14,9 @@ comments. For more information about OpenShift, visit https://openshift.redhat.
or the OpenShift forum
https://openshift.redhat.com/community/forums/openshift.
+Coding Standards
+----------------
+We are following the GitHub Ruby styleguide (https://github.com/styleguide/ruby)
+
+If you use vim, we've included a .vimrc in the root of this project.
+In order to use it, install https://github.com/MarcWeber/vim-addon-local-vimrc
Please sign in to comment.
Something went wrong with that request. Please try again.