diff --git a/.gitignore b/.gitignore
index a0e76af..fcd2c90 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
.netrwhist
+autoload/plug.vim
+plugged/
diff --git a/.gitmodules b/.gitmodules
deleted file mode 100644
index 65eb403..0000000
--- a/.gitmodules
+++ /dev/null
@@ -1,63 +0,0 @@
-[submodule "bundle/fugitive"]
- path = bundle/fugitive
- url = git://github.com/tpope/vim-fugitive.git
-[submodule "bundle/vim-erlang"]
- path = bundle/vim-erlang
- url = git://github.com/jimenezrick/vimerl.git
-[submodule "bundle/surround"]
- path = bundle/surround
- url = git://github.com/tpope/vim-surround.git
-[submodule "bundle/snipmate"]
- path = bundle/snipmate
- url = git://github.com/msanders/snipmate.vim.git
-[submodule "bundle/ctrlp.vim"]
- path = bundle/ctrlp.vim
- url = https://github.com/kien/ctrlp.vim.git
-[submodule "bundle/vimerl"]
- path = bundle/vimerl
- url = git://github.com/jimenezrick/vimerl.git
-[submodule "bundle/hybrid.vim"]
- path = bundle/hybrid.vim
- url = git://github.com/w0ng/vim-hybrid.git
-[submodule "bundle/syntastic.vim"]
- path = bundle/syntastic.vim
- url = git://github.com/scrooloose/syntastic.git
-[submodule "bundle/scala.vim"]
- path = bundle/scala.vim
- url = git://github.com/jergason/scala.vim.git
-[submodule "bundle/tagbar.vim"]
- path = bundle/tagbar.vim
- url = git://github.com/majutsushi/tagbar.git
-[submodule "bundle/nginx-syntax.vim"]
- path = bundle/nginx-syntax.vim
- url = git://github.com/evanmiller/nginx-vim-syntax.git
-[submodule "bundle/vim-airline"]
- path = bundle/vim-airline
- url = git://github.com/bling/vim-airline.git
-[submodule "bundle/bling"]
- path = bundle/bling
- url = https://github.com/ivyl/vim-bling.git
-[submodule "bundle/emmet.vim"]
- path = bundle/emmet.vim
- url = https://github.com/mattn/emmet-vim.git
-[submodule "bundle/lion.vim"]
- path = bundle/lion.vim
- url = https://github.com/tommcdo/vim-lion.git
-[submodule "bundle/quickfixsigns.vim"]
- path = bundle/quickfixsigns.vim
- url = https://github.com/tomtom/quickfixsigns_vim.git
-[submodule "bundle/gitv.vim"]
- path = bundle/gitv.vim
- url = https://github.com/gregsexton/gitv.git
-[submodule "bundle/gocode.vim"]
- path = bundle/gocode.vim
- url = https://github.com/Blackrush/vim-gocode.git
-[submodule "bundle/json.vim"]
- path = bundle/json.vim
- url = https://github.com/leshill/vim-json.git
-[submodule "bundle/rust.vim"]
- path = bundle/rust.vim
- url = https://github.com/wting/rust.vim.git
-[submodule "bundle/coffee.vim"]
- path = bundle/coffee.vim
- url = https://github.com/kchmck/vim-coffee-script.git
diff --git a/autoload/pathogen.vim b/autoload/pathogen.vim
deleted file mode 100644
index a7edd06..0000000
--- a/autoload/pathogen.vim
+++ /dev/null
@@ -1,233 +0,0 @@
-" pathogen.vim - path option manipulation
-" Maintainer: Tim Pope
-" Version: 2.0
-
-" Install in ~/.vim/autoload (or ~\vimfiles\autoload).
-"
-" For management of individually installed plugins in ~/.vim/bundle (or
-" ~\vimfiles\bundle), adding `call pathogen#infect()` to your .vimrc
-" prior to `filetype plugin indent on` is the only other setup necessary.
-"
-" The API is documented inline below. For maximum ease of reading,
-" :set foldmethod=marker
-
-if exists("g:loaded_pathogen") || &cp
- finish
-endif
-let g:loaded_pathogen = 1
-
-" Point of entry for basic default usage. Give a directory name to invoke
-" pathogen#runtime_append_all_bundles() (defaults to "bundle"), or a full path
-" to invoke pathogen#runtime_prepend_subdirectories(). Afterwards,
-" pathogen#cycle_filetype() is invoked.
-function! pathogen#infect(...) abort " {{{1
- let source_path = a:0 ? a:1 : 'bundle'
- if source_path =~# '[\\/]'
- call pathogen#runtime_prepend_subdirectories(source_path)
- else
- call pathogen#runtime_append_all_bundles(source_path)
- endif
- call pathogen#cycle_filetype()
-endfunction " }}}1
-
-" Split a path into a list.
-function! pathogen#split(path) abort " {{{1
- if type(a:path) == type([]) | return a:path | endif
- let split = split(a:path,'\\\@,'edit',,0)
-command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit :execute s:find(,'edit',,0)
-command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen :execute s:find(,'edit',,1)
-command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit :execute s:find(,'split',,1)
-command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit :execute s:find(,'vsplit',,1)
-command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(,'tabedit',,1)
-command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit :execute s:find(,'pedit',,1)
-command! -bar -bang -count=1 -nargs=1 -complete=customlist,s:Findcomplete Vread :execute s:find(,'read',,1)
-
-" vim:set ft=vim ts=8 sw=2 sts=2:
diff --git a/bundle/bling b/bundle/bling
deleted file mode 160000
index 2aa1034..0000000
--- a/bundle/bling
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 2aa1034081528442aed439e364c661abcd407de8
diff --git a/bundle/coffee.vim b/bundle/coffee.vim
deleted file mode 160000
index 18c6852..0000000
--- a/bundle/coffee.vim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 18c68524ab8a043a566bbe227ea8f81ab922d092
diff --git a/bundle/ctrlp.vim b/bundle/ctrlp.vim
deleted file mode 160000
index b5d3fe6..0000000
--- a/bundle/ctrlp.vim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit b5d3fe66a58a13d2ff8b6391f4387608496a030f
diff --git a/bundle/emmet.vim b/bundle/emmet.vim
deleted file mode 160000
index fb11bd8..0000000
--- a/bundle/emmet.vim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit fb11bd8b28fe30a4e95f8daacab34ccc2e6377e3
diff --git a/bundle/fugitive b/bundle/fugitive
deleted file mode 160000
index 8f0b8ed..0000000
--- a/bundle/fugitive
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 8f0b8edfbd246c0026b7a2388e1d883d579ac7f6
diff --git a/bundle/gitv.vim b/bundle/gitv.vim
deleted file mode 160000
index 05792bd..0000000
--- a/bundle/gitv.vim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 05792bd103d2b4cb939108b5c25b79f0cba76881
diff --git a/bundle/gocode.vim b/bundle/gocode.vim
deleted file mode 160000
index 76f1ece..0000000
--- a/bundle/gocode.vim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 76f1ece5b6950f64f56f3c5d70a3c33e4f1e25af
diff --git a/bundle/hybrid.vim b/bundle/hybrid.vim
deleted file mode 160000
index 1539ae7..0000000
--- a/bundle/hybrid.vim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 1539ae714dbaa1ab01c67fae44bd80a38cf51364
diff --git a/bundle/json.vim b/bundle/json.vim
deleted file mode 160000
index 3029554..0000000
--- a/bundle/json.vim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 3029554ee1619f478fc5222bf4c6c08909b1be9c
diff --git a/bundle/lion.vim b/bundle/lion.vim
deleted file mode 160000
index 7420c77..0000000
--- a/bundle/lion.vim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 7420c7739366d307641c3cc6ef7240cb84f0d1ac
diff --git a/bundle/nginx-syntax.vim b/bundle/nginx-syntax.vim
deleted file mode 160000
index 4ea8c14..0000000
--- a/bundle/nginx-syntax.vim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 4ea8c1453c7aa9393e94fe33594fbd4c60307a7b
diff --git a/bundle/quickfixsigns.vim b/bundle/quickfixsigns.vim
deleted file mode 160000
index b9dc037..0000000
--- a/bundle/quickfixsigns.vim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit b9dc037cfede96f99cc0697b94960d9cfe99bc54
diff --git a/bundle/rust.vim b/bundle/rust.vim
deleted file mode 160000
index f08c1ea..0000000
--- a/bundle/rust.vim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit f08c1eafe936cd1c899fadcc052116494098941b
diff --git a/bundle/scala.vim b/bundle/scala.vim
deleted file mode 160000
index eb0bd6a..0000000
--- a/bundle/scala.vim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit eb0bd6a546f73e3b869b4ffc996e97a1136257d5
diff --git a/bundle/snipmate b/bundle/snipmate
deleted file mode 160000
index f5a75d0..0000000
--- a/bundle/snipmate
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit f5a75d075d3c005ebe69e3f5e56cf99516e8aa3b
diff --git a/bundle/surround b/bundle/surround
deleted file mode 160000
index 6f0984a..0000000
--- a/bundle/surround
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 6f0984a5ca1430047fe760fc680c6cf98ae94b01
diff --git a/bundle/syntastic.vim b/bundle/syntastic.vim
deleted file mode 160000
index e5dfcc3..0000000
--- a/bundle/syntastic.vim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit e5dfcc3488e407c8e28b308cb6e631336e77d060
diff --git a/bundle/tagbar.vim b/bundle/tagbar.vim
deleted file mode 160000
index a93fb86..0000000
--- a/bundle/tagbar.vim
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit a93fb868d805f55888c0ae6342ba744f539d1810
diff --git a/bundle/vim-airline b/bundle/vim-airline
deleted file mode 160000
index 942c6ae..0000000
--- a/bundle/vim-airline
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 942c6ae382390421edad259edb09a441ae76540b
diff --git a/bundle/vim-erlang b/bundle/vim-erlang
deleted file mode 160000
index 9bd2432..0000000
--- a/bundle/vim-erlang
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 9bd24327eb55146190275a78c36402835a53bae6
diff --git a/bundle/vimerl b/bundle/vimerl
deleted file mode 160000
index e36e0e8..0000000
--- a/bundle/vimerl
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit e36e0e8d694a0b64e982697ff9a4d3caf1e2b12e
diff --git a/setup.sh b/setup.sh
index 1dd622f..ce03c48 100755
--- a/setup.sh
+++ b/setup.sh
@@ -2,4 +2,3 @@
ln -s ~/.vim/vimrc ~/.vimrc
cd ~/.vim
-git submodule update --recursive --init
diff --git a/vimrc b/vimrc
index 565efb1..8d5b24d 100644
--- a/vimrc
+++ b/vimrc
@@ -1,8 +1,38 @@
set shell=/bin/bash
scriptencoding utf-8
set encoding=utf-8
+set shortmess=I "turn off splash screen
+
+let have_plug=filereadable(expand('~/.vim/autoload/plug.vim'))
+if(!have_plug && executable('curl'))
+ echo "Installing Plug"
+
+ !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
+endif
+
+if(have_plug)
+ call plug#begin('~/.vim/plugged')
+ Plug 'ivyl/vim-bling' "blink search results
+ Plug 'kien/ctrlp.vim' "Fuzzy search
+ Plug 'mattn/emmet-vim' "ZenCoding
+ Plug 'tpope/vim-fugitive' "Work with git repos
+ Plug 'gregsexton/gitv' "GitK for Fugitive
+ Plug 'w0ng/vim-hybrid' "Hybrid colorscheme
+ Plug 'leshill/vim-json' "JSON support
+ Plug 'tommcdo/vim-lion' "Align stuff
+ Plug 'evanmiller/nginx-vim-syntax' "Nginx Syntax
+ Plug 'msanders/snipmate.vim' "Snippets
+ Plug 'tpope/vim-surround' "Surround with quotes
+ Plug 'scrooloose/syntastic' "Syntax checker
+ Plug 'majutsushi/tagbar' "Ctags integration
+ Plug 'bling/vim-airline' "Status bar
+ call plug#end()
+
+ if empty(glob("~/.vim/plugged"))
+ PlugInstall
+ endif
+endif
-call pathogen#infect()
syntax on "enable syntax hightlighting
set autoindent "enable autoindent
@@ -17,7 +47,7 @@ set visualbell
set wildmenu "show autocomplete menu
set wildmode=full
-colorscheme hybrid
+silent! colorscheme hybrid
"Set before any key remapping
let mapleader = '\'
@@ -49,7 +79,7 @@ if has("autocmd")
autocmd filterwritepre * if &diff | map } :diffget \\3| endif
- augroup javascript
+ augroup javascript
"Custom mappings
au!
autocmd BufRead *.js nmap f* :call JsFunctionLookup()zz