From 3df051919736ad68ebfdb294551b9357b61aff7c Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 14 Jan 2012 19:46:03 -0500 Subject: Initial commit --- .gitmodules | 24 +++++++++++ .vimrc | 101 ++++++++++++++++++++++++++++++++++++++++++++++ bundle/Vim-Tomorrow-Theme | 1 + bundle/ctrlp.vim | 1 + bundle/nerdcommenter | 1 + bundle/nerdtree | 1 + bundle/vim-buffergator | 1 + bundle/vim-fugitive | 1 + bundle/vim-pasta | 1 + bundle/vim-pathogen | 1 + 10 files changed, 133 insertions(+) create mode 100644 .gitmodules create mode 100644 .vimrc create mode 160000 bundle/Vim-Tomorrow-Theme create mode 160000 bundle/ctrlp.vim create mode 160000 bundle/nerdcommenter create mode 160000 bundle/nerdtree create mode 160000 bundle/vim-buffergator create mode 160000 bundle/vim-fugitive create mode 160000 bundle/vim-pasta create mode 160000 bundle/vim-pathogen diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..87514d90 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,24 @@ +[submodule "bundle/vim-pathogen"] + path = bundle/vim-pathogen + url = https://github.com/tpope/vim-pathogen.git +[submodule "bundle/ctrlp.vim"] + path = bundle/ctrlp.vim + url = https://github.com/kien/ctrlp.vim.git +[submodule "bundle/Vim-Tomorrow-Theme"] + path = bundle/Vim-Tomorrow-Theme + url = git://github.com/programble/Vim-Tomorrow-Theme.git +[submodule "bundle/vim-pasta"] + path = bundle/vim-pasta + url = https://github.com/sickill/vim-pasta.git +[submodule "bundle/vim-fugitive"] + path = bundle/vim-fugitive + url = https://github.com/tpope/vim-fugitive.git +[submodule "bundle/nerdcommenter"] + path = bundle/nerdcommenter + url = https://github.com/ddollar/nerdcommenter.git +[submodule "bundle/nerdtree"] + path = bundle/nerdtree + url = https://github.com/scrooloose/nerdtree.git +[submodule "bundle/vim-buffergator"] + path = bundle/vim-buffergator + url = https://github.com/jeetsukumaran/vim-buffergator.git diff --git a/.vimrc b/.vimrc new file mode 100644 index 00000000..8d962cc3 --- /dev/null +++ b/.vimrc @@ -0,0 +1,101 @@ +" Load pathogen +runtime bundle/vim-pathogen/autoload/pathogen.vim +call pathogen#infect() + +" Remap leader to , +noremap \ , +let mapleader = "," + +" General +set backspace=indent,eol,start +set hidden +set backup +set history=50 +set ruler +set showcmd +set incsearch +set ignorecase +set smartcase +set autoindent +set smartindent +set nu +set spell +set cc=80 +set title +set shortmess=atI +set visualbell t_vb= +set cursorline +set smarttab +set hlsearch +set list +set listchars=tab:»·,trail:· + +set laststatus=2 " Always show statusline +set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P + +syntax on +colorscheme Tomorrow-Night + +" Enable mouse in terminals +if has('mouse') + set mouse=a +endif + +" GUI options +set guioptions-=tT " Disable tear-off menus and toolbar +set guifont=Monospace\ 9 +set browsedir=buffer " Open dialog starts in working directory + +" Jump to the last cursor position when opening +autocmd BufReadPost * + \ if line("'\"") > 1 && line("'\"") <= line("$") | + \ exe "normal! g`\"" | + \ endif + +" Default to 2-space indents, 4-character tabs +set expandtab +set shiftwidth=2 +set tabstop=4 +filetype plugin indent on + +" Indentation exceptions +autocmd FileType c setlocal sw=4 +autocmd FileType cpp setlocal sw=4 + +" Better tab-complete when opening +set wildmenu +set wildmode=list:longest +set wildignore=*.o,*.d,*~ + +" Smarter % +runtime macros/matchit.vim + +" Disable visible whitespace in insert mode +autocmd InsertEnter * setlocal nolist +autocmd InsertLeave * setlocal list + +" Custom maps +let g:buffergator_suppress_keymaps=1 + +nnoremap ' ` +nnoremap ` ' + +nmap n :silent :nohlsearch " Clear search highlights +nmap s :set list! " Toggle visible whitespace + +nmap p "+p +nmap P "+P +nmap y "+y +nmap Y "+Y +nmap d "+d +nmap D "+D + +imap " Insert hard tab + +nmap Q gq + +nmap t :NERDTreeToggle +nmap b :BuffergatorToggle + +" Custom commands +command! W :w diff --git a/bundle/Vim-Tomorrow-Theme b/bundle/Vim-Tomorrow-Theme new file mode 160000 index 00000000..ae8edac5 --- /dev/null +++ b/bundle/Vim-Tomorrow-Theme @@ -0,0 +1 @@ +Subproject commit ae8edac57291e3e9ac9dd59e1dda6e961836df28 diff --git a/bundle/ctrlp.vim b/bundle/ctrlp.vim new file mode 160000 index 00000000..420174fc --- /dev/null +++ b/bundle/ctrlp.vim @@ -0,0 +1 @@ +Subproject commit 420174fc537ba986a716964db7af0bd189252944 diff --git a/bundle/nerdcommenter b/bundle/nerdcommenter new file mode 160000 index 00000000..093e6b3f --- /dev/null +++ b/bundle/nerdcommenter @@ -0,0 +1 @@ +Subproject commit 093e6b3f765b728c129a4271f1f34bb70e671f08 diff --git a/bundle/nerdtree b/bundle/nerdtree new file mode 160000 index 00000000..eced5f98 --- /dev/null +++ b/bundle/nerdtree @@ -0,0 +1 @@ +Subproject commit eced5f98a0724cd6498b70024b3edec1e7b29b2e diff --git a/bundle/vim-buffergator b/bundle/vim-buffergator new file mode 160000 index 00000000..c6f56eac --- /dev/null +++ b/bundle/vim-buffergator @@ -0,0 +1 @@ +Subproject commit c6f56eac74c9ae9301b640e9f5bb0389a8ffd4fa diff --git a/bundle/vim-fugitive b/bundle/vim-fugitive new file mode 160000 index 00000000..b4b75ef6 --- /dev/null +++ b/bundle/vim-fugitive @@ -0,0 +1 @@ +Subproject commit b4b75ef682da3e946c648d3634ade39d0af49aba diff --git a/bundle/vim-pasta b/bundle/vim-pasta new file mode 160000 index 00000000..ada8a5cf --- /dev/null +++ b/bundle/vim-pasta @@ -0,0 +1 @@ +Subproject commit ada8a5cf9a826db57cf98bde808384d351fd2897 diff --git a/bundle/vim-pathogen b/bundle/vim-pathogen new file mode 160000 index 00000000..ab64b4dd --- /dev/null +++ b/bundle/vim-pathogen @@ -0,0 +1 @@ +Subproject commit ab64b4ddd0c184a528780b498a0b0a5b40248f7c -- cgit 1.4.1