From 67a506b91c3cb7281a39dc0cf63b0660e18338c6 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Fri, 3 Jan 2014 16:10:45 +0100 Subject: vim: let's use vundle. --- .gitmodules | 3 +++ vim/bundle/vundle | 1 + vim/bundles.vim | 12 ++++++++++++ vimrc | 16 ++++++++++++---- 4 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 .gitmodules create mode 160000 vim/bundle/vundle create mode 100644 vim/bundles.vim diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8e7bc95 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vim/bundle/vundle"] + path = vim/bundle/vundle + url = https://github.com/gmarik/vundle.git diff --git a/vim/bundle/vundle b/vim/bundle/vundle new file mode 160000 index 0000000..f31aa52 --- /dev/null +++ b/vim/bundle/vundle @@ -0,0 +1 @@ +Subproject commit f31aa52552ceb40240e56e475e6df89cc756507e diff --git a/vim/bundles.vim b/vim/bundles.vim new file mode 100644 index 0000000..d2e06c0 --- /dev/null +++ b/vim/bundles.vim @@ -0,0 +1,12 @@ + +" Vundle setup +set rtp+=~/.vim/bundle/vundle/ +call vundle#rc() +Bundle 'gmarik/vundle' + +" Enable plugins. +filetype plugin indent on + +" My list of plugins. +Bundle 'tpope/vim-surround.git' + diff --git a/vimrc b/vimrc index 5603bbc..d68633a 100644 --- a/vimrc +++ b/vimrc @@ -93,13 +93,21 @@ set expandtab set backspace=indent,eol,start "" -" Filetypes +" Plugins. filetype off filetype indent plugin off + +" Using the Go plugins from the official repo. set runtimepath+=$GOROOT/misc/vim -filetype on -filetype indent plugin on + +" All the plugins are listed in my bundles file, that will be installed +" inside the ~/.vim directory. +source ~/.vim/bundles.vim + +"" +" Filetypes + autocmd FileType ruby set shiftwidth=2 autocmd FileType c set shiftwidth=4 tabstop=4 autocmd FileType yacc set shiftwidth=4 tabstop=4 @@ -110,7 +118,7 @@ autocmd FileType go set shiftwidth=4 tabstop=4 let mapleader = "," -" in insert/normal mode: switch to normal mode and write to disk. +" in normal/insert mode: switch to normal mode and write to disk. inoremap :w nnoremap :w -- cgit v1.2.3