Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Vim and Bash : Chef Integration

  • Loading branch information...
commit 5f361d464fe47ffc8f1b7026a2e2072c54728439 1 parent 25fe699
Jacob Silva authored

Showing 2 changed files with 30 additions and 2 deletions. Show diff stats Hide diff stats

  1. 9  bash/bashrc
  2. 23  vim/vimrc
9  bash/bashrc
@@ -137,6 +137,7 @@ alias station='screen -c ~/Libs/Terminal/screen/workstation.screen'
137 137
 alias    farm='screen -c ~/Libs/Terminal/screen/farm.screen'
138 138
 
139 139
 alias vim="/usr/bin/vim --servername JSILVA-$PPID-$SCREENID --remote-tab-silent"
  140
+alias gvim="/usr/bin/gvim --servername JSILVA-$PPID-$SCREENID --remote-tab-silent"
140 141
 
141 142
 alias python="/usr/bin/python -B "
142 143
 
@@ -191,3 +192,11 @@ export PROJECT_HOME=$HOME/Projects
191 192
 source /usr/local/bin/virtualenvwrapper.sh
192 193
 
193 194
 source ~/Libs/Terminal/bash/vagrant-bash-completion.git/vagrant
  195
+
  196
+export PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
  197
+source ~/.rvm/scripts/rvm
  198
+
  199
+function git_push_current_branch() {
  200
+BRANCH=`git branch | grep \* | awk '{print $2}'`
  201
+git push fork $BRANCH
  202
+}
23  vim/vimrc
@@ -19,6 +19,17 @@ Bundle 'scrooloose/nerdtree'
19 19
 Bundle 'Lokaltog/powerline'
20 20
 Bundle 'scrooloose/syntastic'
21 21
 Bundle 'kien/ctrlp.vim'
  22
+
  23
+" vim-snipmate depedencies
  24
+Bundle "MarcWeber/vim-addon-mw-utils"
  25
+Bundle "tomtom/tlib_vim"
  26
+Bundle "honza/snipmate-snippets"
  27
+
  28
+Bundle "garbas/vim-snipmate"
  29
+"Bundle "vadv/vim-chef"
  30
+
  31
+
  32
+
22 33
 Bundle 'Funkmyster/vim-chef'
23 34
 
24 35
 " ...
@@ -41,6 +52,7 @@ if has("gui_running")
41 52
     set guioptions-=m  "remove menu bar
42 53
     set guioptions-=T  "remove toolbar
43 54
     set guioptions-=r  "remove right-hand scroll bar
  55
+    set guioptions-=e  "make gui tab menu more like console tab menu // This solves horizontal overlapping spacing issues
44 56
 else
45 57
     colorscheme default
46 58
     set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:p:h\")})%)%(\ %a%)\ -\ %{v:servername}
@@ -79,6 +91,10 @@ if &diff
79 91
 endif
80 92
 
81 93
 " set wildmenu		"In help system"
  94
+
  95
+" Disable auto commenting
  96
+autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
  97
+
82 98
 autocmd BufRead,BufNewFile *.help set filetype=help
83 99
 autocmd BufRead,BufNewFile *.tags set filetype=tags
84 100
 
@@ -112,5 +128,8 @@ autocmd BufRead,BufNewFile *.py noremap <C-l> :!clear ; pylint --errors-only %<C
112 128
 "for javascript
113 129
 autocmd BufRead,BufNewFile *.js noremap <C-l> :!clear ; /home/jsilva/bin/jslint --color --browser true --predef '$' %<CR>
114 130
 
115  
-"for opscode chef
116  
-autocmd BufRead,BufNewFile *.rb call Chef_Helper()
  131
+" for opscode chef
  132
+"autocmd BufRead,BufNewFile *.rb call Chef_Helper()
  133
+
  134
+" for ruby
  135
+autocmd FileType ruby,eruby set filetype=ruby.eruby.chef

0 notes on commit 5f361d4

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