Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
fixed pathogen order
Browse files Browse the repository at this point in the history
  • Loading branch information
brablc committed Jun 15, 2011
1 parent 06f5827 commit 63689f2
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 41 deletions.
8 changes: 8 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

export EDITOR="/usr/bin/vim"
export VISUAL="/usr/bin/vim"
alias vi="/usr/bin/vim"
alias vimr="vim -c :MRU"
alias vimp='vim "+Project `find -maxdepth 1 -name .vimprojects`"'

File renamed without changes.
2 changes: 2 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
[submodule "bundle/mru"]
path = bundle/mru
url = https://github.com/vim-scripts/mru.vim
ignore = untracked
[submodule "bundle/project"]
path = bundle/project
url = https://github.com/shemerey/vim-project.git
ignore = untracked
65 changes: 25 additions & 40 deletions .vimrc
Original file line number Diff line number Diff line change
@@ -1,45 +1,34 @@
" Forget VI it's <current year>!
"" Forget VI - must be first command
set nocompatible

" Pathogen
" Needed on some linux distros.
" see http://www.adamlowe.me/2009/12/vim-destroys-all-other-rails-editors.html
call pathogen#helptags()
" Pathogen - processes bundles as if they were installed properly
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()

" Generic VIM settings
"" Generic VIM settings

set history=50 " keep 50 lines of command line history
set autochdir
" set foldenable
" set viewoptions=folds,options,cursor,unix,slash
set foldenable
set viewoptions=folds,options,cursor,unix,slash
set pastetoggle=<F2>
set showmode

" Search
set incsearch " do incremental searching
set hlsearch
set ignorecase
set smartcase

let mapleader = ","
nnoremap <Leader><space> a<c-x><c-o>
" Clear search highlight
nnoremap <Leader>h :noh<cr>
" Delete trailing spaces
nnoremap <Leader>b :silent :%s/\s\+$//<cr>:noh<cr>``
" Go fullscreen
" set fu

set ruler " show the cursor position all the time

" tabs
" Tabs
set ts=4
set sw=4
set expandtab
set smarttab

" Colors and fonts
colorscheme vividchalk
" colorscheme vividchalk

" Nicer status line
set statusline=%F%m%r%h%w\ [%{&ff}/%Y]%=[%04l,%04v][%p%%/%L]
Expand All @@ -49,23 +38,20 @@ set laststatus=2
set guioptions+=c
set showcmd " display incomplete commands

" Display extra whitespace
nmap <Leader>l :set list!<CR>
if has("gui_running")
" Maximize gvim window.
set lines=999 columns=999
else
set list listchars=tab:»·,trail:·
endif

set nolist
set listchars=tab:»·,trail:·

" Tab completion options
" (only complete to the longest unambiguous match, and show a menu)
set completeopt=menu,preview
" set wildmode=list:longest,list:full
set wildmenu
set wildchar=<Tab>
set wildmode=full
set wildmode=list:longest,list:full
set complete=.,t

set cf " Enable error files & error jumping.
Expand All @@ -76,15 +62,19 @@ syntax enable
filetype plugin indent on
au FileType php set omnifunc=phpcomplete

" Disable autoindent on paste
nnoremap <F2> :set invpaste paste?<CR>
set pastetoggle=<F2>
set showmode
" Leader Mappings

" Mappings
let mapleader = ","
" - Completion?
nnoremap <Leader><space> a<c-x><c-o>
" - Clear search highlight
nnoremap <silent> <Leader>h :nohlsearch<cr>
" - Delete trailing blanks (spaces)
nnoremap <Leader>b :silent :%s/\s\+$//<cr>:noh<cr>``
" - Display extra whitespace
nnoremap <Leader>l :set list!<CR>
" - Clearing highlighted search
nmap <silent> <leader>/ :nohlsearch<CR>
" Regular Mappings

" - Add to ZZ and ZQ builtins
nnoremap ZW :w<CR>
Expand All @@ -100,8 +90,3 @@ nnoremap <F10> :MRU<CR>
vnoremap < <gv
vnoremap > >gv
" Plugins

let g:backup_directory="~/tmp/.vim-backup"


6 changes: 5 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ Installation:

Init .vim directory:

~/.vim/init.sh
~/.vim/.dotvim-init

Add following line to your .bashrc to import aliases:

. ~/.vim/.bashrc

0 comments on commit 63689f2

Please sign in to comment.