]> Vexing Labs - dotfiles.git/commitdiff
Add team-specific .vimrc changes.
authorAdam A.G. Shamblin <adam.shamblin@mapquest.com>
Wed, 10 Sep 2014 15:50:23 +0000 (09:50 -0600)
committerAdam A.G. Shamblin <adam.shamblin@mapquest.com>
Wed, 10 Sep 2014 15:50:23 +0000 (09:50 -0600)
Makefile
dotbash_profile
dotvimrc

index e78dda2ef691c96df1c2c1f2182c3bed82937a58..8e3126da92c140d57b7796bf0599734738874c58 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,3 +9,5 @@ build:
        ln -s $(CURDIR)/dotbash_profile ~/.bash_profile
        ln -s $(CURDIR)/dotvimrc ~/.vimrc
        ln -s $(CURDIR)/dotgvimrc ~/.gvimrc
+       mkdir ~/env
+       mkdir ~/.saves
index 9822c1bed3dae81804d6fe4a50ae192d3109ebe3..da445e504c97b94bebd6548238358e550a51811c 100644 (file)
@@ -81,6 +81,14 @@ complete -F _envdir activate
 
 [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
 
+##################################################
+#
+#   Scala/Play Stuffs
+#
+##################################################
+
+export JAVA_OPTS="-server -Xms512m -Xmx2048m -XX:PermSize=512M -XX:MaxPermSize=1024M -XX:+CMSClassUnloadingEnabled"
+
 ##################################################
 #
 #   Aliases
index a3c8525279d43022629620ccc04c040b3969483c..4946bfbc4f1b11b616a564e42732e1b1710d0598 100644 (file)
--- a/dotvimrc
+++ b/dotvimrc
@@ -1,5 +1,6 @@
 set nocompatible
 
+filetype plugin indent on
 syntax on
 
 set autoindent
@@ -20,10 +21,19 @@ set hlsearch
 set mouse=a
 set ttymouse=xterm2
 
-filetype plugin indent on
+function! SetupEnvironment()
+    let l:path = expand('%:p')
+    " MapQuest project-specific configurations
+    if l:path =~ '/Users/ashamblin14/workspace'
+        if &filetype == "javascript"
+            setlocal tabstop=2 softtabstop=2 shiftwidth=2
+        endif
+    endif
+endfunction
 
 autocmd FileType make setlocal noexpandtab
 
+au BufNewFile,BufRead *.js set filetype=javascript
 au BufNewFile,BufRead *.json set filetype=javascript
 au BufNewFile,BufRead Podfile,*.podspec set filetype=ruby
 au BufNewFile,BufRead /usr/local/nginx/conf/* set filetype=nginx
@@ -35,4 +45,6 @@ au BufWritePost *.js :JSHint
 au BufNewFile,BufRead *.dat setlocal noexpandtab
 au BufNewFile,BufRead *.jade setlocal noexpandtab
 
+au BufNewFile,BufRead * call SetupEnvironment()
+
 call pathogen#infect()