% bin/knife solo cook dev
... snip ...
Recipe: vim-plugin::default
* directory[/home/vagrant/.vim] action create
- create new directory /home/vagrant/.vim
- change mode from '' to '0755'
- change owner from '' to 'vagrant'
- change group from '' to 'vagrant'
- restore selinux security context
* directory[/home/vagrant/.vim/backup] action create
- create new directory /home/vagrant/.vim/backup
- change mode from '' to '0755'
- change owner from '' to 'vagrant'
- change group from '' to 'vagrant'
- restore selinux security context
* directory[/home/vagrant/.vim/bundle] action create
- create new directory /home/vagrant/.vim/bundle
- change mode from '' to '0755'
- change owner from '' to 'vagrant'
- change group from '' to 'vagrant'
- restore selinux security context
* directory[/home/vagrant/.vim/swap] action create
- create new directory /home/vagrant/.vim/swap
- change mode from '' to '0755'
- change owner from '' to 'vagrant'
- change group from '' to 'vagrant'
- restore selinux security context
* execute[install neobundle] action run
- execute curl -L https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh | sh
* cookbook_file[/home/vagrant/.vimrc_scss_indent] action create
- create new file /home/vagrant/.vimrc_scss_indent
- update content in file /home/vagrant/.vimrc_scss_indent from none to 05be8b
--- /home/vagrant/.vimrc_scss_indent 2016-02-24 09:24:30.773395982 +0000
+++ /home/vagrant/..vimrc_scss_indent20160224-22510-1ok5kzu 2016-02-24 09:24:30.773395982 +0000
@@ -1 +1,48 @@
+setlocal indentexpr=GetMyIndent()
+function! GetMyIndent()
+ let cline= getline(v:lnum)
+
+ " Find a non-blank line above the current line. + let lnum = prevnonblank(v:lnum - 1) + " Hit the start of the file, use zero indent.
+ iflnum== 0
+ return 0
+ endif
+ let line= getline(lnum)
+ let ind= indent(lnum)
+
+ " Indent blocks enclosed by {}, (), or [] + " Find a real opening brace
+ let bracepos= match(line, '[(){}\[\]]', matchend(line, '^\s*[)}\]]'))
+ while bracepos != -1
+ let brace= strpart(line, bracepos, 1)
+ ifbrace=='('||brace=='{'||brace=='['
+ let ind= ind + &sw
+ else
+ let ind= ind - &sw
+ endif
+ let bracepos= match(line, '[(){}\[\]]', bracepos + 1)
+ endwhile
+ let bracepos= matchend(cline, '^\s*[)}\]]')
+ if bracepos != -1
+ let ind= ind - &sw
+ endif
+
+ return ind
+endfunction
+
+setlocal expandtab
+setlocal tabstop=4
+setlocal shiftwidth=4
+setlocal softtabstop=0
+
+if !exists('b:undo_indent')
+ let b:undo_indent =''
+endif
+
+let b:undo_indent ='setlocal '.join([
+ \ 'tabstop<',
+ \ 'shiftwidth<',
+ \ 'softtabstop<',
+ \ ])
- change mode from '' to '0644'
- change owner from '' to 'vagrant'
- change group from '' to 'vagrant'
- restore selinux security context
* cookbook_file[/home/vagrant/.vimrc] action create
- create new file /home/vagrant/.vimrc
- update content in file /home/vagrant/.vimrc from none to bd2581
(new content is binary, diff output suppressed)
- change mode from '' to '0644'
- change owner from '' to 'vagrant'
- change group from '' to 'vagrant'
- restore selinux security context
Running handlers:
Running handlers completeChef Client finished, 9/33 resources updated in 19 seconds