Skip to content
Browse files

Forces vim to treat tab presses as 4 spaces, makes editing yaml files…

… in vim far easier
  • Loading branch information...
1 parent 2afa636 commit 5b8e3ee847cad191c282eca9f013194d73ac9ca8 @Oneiroi committed Sep 6, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 BoxGrinder/boxgrinder-meta.appl
View
8 BoxGrinder/boxgrinder-meta.appl
@@ -1,7 +1,7 @@
name: boxgrinder-meta
summary: Environment for building new appliances using BoxGrinder
version: 1
-release: 7
+release: 8
hardware:
memory: 1024
partitions:
@@ -27,4 +27,8 @@ post:
- "[[ ! -d '/root/.vim' ]] && /bin/mkdir /root/.vim"
- "/usr/bin/curl http://www.vim.org/scripts/download_script.php?src_id=2249 > /root/.vim/yaml.vim"
- "/bin/echo 'au BufNewFile,BufRead *.appl,*.yaml,*.yml so ~/.vim/yaml.vim' >> /root/.vimrc"
- - "/bin/echo 'syntax on' >> /root/.vimrc"
+ - "/bin/echo 'syntax on' >> /root/.vimrc"
+ # setup tab presses to be 4 spaces
+ - "/bin/echo 'set tabstop=4' >> /root/.vimrc"
+ - "/bin/echo 'set shiftwidth=4' >> /root/.vimrc"
+ - "/bin/echo 'set expandtab' >> /root/.vimrc"

0 comments on commit 5b8e3ee

Please sign in to comment.
Something went wrong with that request. Please try again.