Skip to content

Commit

Permalink
Add vundle and vimrc template
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardolundgren committed Jun 14, 2014
1 parent 3f5fd0c commit 2609d50
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ module.exports = function(grunt) {
path_z_system: userhome('.z')
},

vim: {
path_vimrc: userhome('.dotfiles/.vimrc'),
path_vimrc_system: userhome('.vimrc'),
path_vundle: userhome('.dotfiles/.vundle')
},

zsh: {
path_oh_my_zsh: userhome('.dotfiles/.oh-my-zsh'),
path_plugin_syntax: userhome('.dotfiles/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting'),
Expand Down Expand Up @@ -220,6 +226,15 @@ module.exports = function(grunt) {
}
},

vim: {
options: {
data: '<%= config %>'
},
files: {
'<%= config.vim.path_vimrc %>': ['templates/.vimrc']
}
},

zsh: {
options: {
data: '<%= config %>'
Expand Down Expand Up @@ -263,6 +278,13 @@ module.exports = function(grunt) {
}
},

vim_vundle: {
options: {
directory: '<%= config.vim.path_vundle %>',
repository: 'https://github.com/gmarik/Vundle.vim.git'
}
},

zsh_syntax_highlighting: {
options: {
directory: '<%= config.zsh.path_plugin_syntax %>',
Expand Down Expand Up @@ -301,6 +323,11 @@ module.exports = function(grunt) {
relativeSrc: '<%= config.zsh.path_zshrc %>'
},

vim: {
dest: '<%= config.vim.path_vimrc_system %>',
relativeSrc: '<%= config.vim.path_vimrc %>'
},

zsh_theme_dracula: {
dest: '<%= config.zsh.path_theme_dracula %>',
relativeSrc: '<%= config.themes.path_dracula %>/zsh/dracula.zsh-theme'
Expand Down Expand Up @@ -358,6 +385,10 @@ module.exports = function(grunt) {

brew_tig: {
command: 'brew install tig'
},

vim_plugins: {
command: 'vim +PluginInstall +qall'
}

}
Expand Down
58 changes: 58 additions & 0 deletions templates/.vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
set cursorline
set expandtab
set hlsearch
set laststatus=2
set matchtime=1
set mouse=a
set nocompatible
set number
set omnifunc=syntaxcomplete#Complete
set rtp+=<%- vim.path_vundle %>
set ruler
set rulerformat=%=%h%m%r%w\ %(%c%V%),%l/%L\ %P
set scrolloff=5
set shiftwidth=8
set showmatch
set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
set tabstop=4
set ttyfast
set ttymouse=xterm2

setlocal shiftwidth=4

let airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:EasyMotion_smartcase = 1

call vundle#rc()

filetype on
filetype off
filetype plugin indent on

Bundle 'bling/vim-airline'
Bundle 'FuzzyFinder'
Bundle 'gmarik/vundle'
Bundle 'kien/ctrlp.vim'
Bundle 'L9'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'nvie/vim-togglemouse'
Bundle 'rizzatti/dash.vim'
Bundle 'rizzatti/funcoo.vim'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'scrooloose/syntastic'
Bundle 'sjl/badwolf'
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-rails.git'

syntax on
colorscheme badwolf

vmap <Tab> >gva
vmap <S-Tab> <gv
map <C-l> gt
map <C-h> gT
map <C-up> <esc>ddkP
map <C-down> ddp
map <C-c> "+y
map <C-x> :q<cr>
3 changes: 3 additions & 0 deletions templates/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ fi
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

# -- Term ----------------------------------------------------------------------
TERM=xterm-256color

# -- Update --------------------------------------------------------------------
dotfiles

0 comments on commit 2609d50

Please sign in to comment.