Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Vim and Bash : Chef Integration

  • Loading branch information...
commit 5f361d464fe47ffc8f1b7026a2e2072c54728439 1 parent 25fe699
@Funkmyster authored
Showing with 30 additions and 2 deletions.
  1. +9 −0 bash/bashrc
  2. +21 −2 vim/vimrc
View
9 bash/bashrc
@@ -137,6 +137,7 @@ alias station='screen -c ~/Libs/Terminal/screen/workstation.screen'
alias farm='screen -c ~/Libs/Terminal/screen/farm.screen'
alias vim="/usr/bin/vim --servername JSILVA-$PPID-$SCREENID --remote-tab-silent"
+alias gvim="/usr/bin/gvim --servername JSILVA-$PPID-$SCREENID --remote-tab-silent"
alias python="/usr/bin/python -B "
@@ -191,3 +192,11 @@ export PROJECT_HOME=$HOME/Projects
source /usr/local/bin/virtualenvwrapper.sh
source ~/Libs/Terminal/bash/vagrant-bash-completion.git/vagrant
+
+export PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
+source ~/.rvm/scripts/rvm
+
+function git_push_current_branch() {
+BRANCH=`git branch | grep \* | awk '{print $2}'`
+git push fork $BRANCH
+}
View
23 vim/vimrc
@@ -19,6 +19,17 @@ Bundle 'scrooloose/nerdtree'
Bundle 'Lokaltog/powerline'
Bundle 'scrooloose/syntastic'
Bundle 'kien/ctrlp.vim'
+
+" vim-snipmate depedencies
+Bundle "MarcWeber/vim-addon-mw-utils"
+Bundle "tomtom/tlib_vim"
+Bundle "honza/snipmate-snippets"
+
+Bundle "garbas/vim-snipmate"
+"Bundle "vadv/vim-chef"
+
+
+
Bundle 'Funkmyster/vim-chef'
" ...
@@ -41,6 +52,7 @@ if has("gui_running")
set guioptions-=m "remove menu bar
set guioptions-=T "remove toolbar
set guioptions-=r "remove right-hand scroll bar
+ set guioptions-=e "make gui tab menu more like console tab menu // This solves horizontal overlapping spacing issues
else
colorscheme default
set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:p:h\")})%)%(\ %a%)\ -\ %{v:servername}
@@ -79,6 +91,10 @@ if &diff
endif
" set wildmenu "In help system"
+
+" Disable auto commenting
+autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
+
autocmd BufRead,BufNewFile *.help set filetype=help
autocmd BufRead,BufNewFile *.tags set filetype=tags
@@ -112,5 +128,8 @@ autocmd BufRead,BufNewFile *.py noremap <C-l> :!clear ; pylint --errors-only %<C
"for javascript
autocmd BufRead,BufNewFile *.js noremap <C-l> :!clear ; /home/jsilva/bin/jslint --color --browser true --predef '$' %<CR>
-"for opscode chef
-autocmd BufRead,BufNewFile *.rb call Chef_Helper()
+" for opscode chef
+"autocmd BufRead,BufNewFile *.rb call Chef_Helper()
+
+" for ruby
+autocmd FileType ruby,eruby set filetype=ruby.eruby.chef
Please sign in to comment.
Something went wrong with that request. Please try again.