Permalink
Browse files

rearrange my vimrc and move some stuff in from my actual ~/.vimrc

  • Loading branch information...
1 parent ef83596 commit 2f51cb250458f211d3be1407411fd94ba4c1ff41 @scrooloose committed Feb 8, 2011
Showing with 88 additions and 58 deletions.
  1. +88 −58 vimrc
View
@@ -2,6 +2,10 @@
"This must be first, because it changes other options as a side effect.
set nocompatible
+"activate pathogen
+call pathogen#runtime_append_all_bundles()
+call pathogen#helptags()
+
"allow backspacing over everything in insert mode
set backspace=indent,eol,start
@@ -11,12 +15,66 @@ set history=1000
set showcmd "show incomplete cmds down the bottom
set showmode "show current mode down the bottom
+set number "show line numbers
+
+"display tabs and trailing spaces
+set list
+set listchars=tab:▷⋅,trail:⋅,nbsp:⋅
+
+
set incsearch "find the next match as we type the search
set hlsearch "hilight searches by default
-set nowrap "dont wrap lines
+set wrap "dont wrap lines
set linebreak "wrap lines at convenient points
+if v:version >= 703
+ "undo settings
+ set undodir=~/.vim/undofiles
+ set undofile
+
+ set colorcolumn=+1 "mark the ideal max text width
+endif
+
+"default indent settings
+set shiftwidth=4
+set softtabstop=4
+set expandtab
+set autoindent
+
+"folding settings
+set foldmethod=indent "fold based on indent
+set foldnestmax=3 "deepest fold is 3 levels
+set nofoldenable "dont fold by default
+
+set wildmode=list:longest "make cmdline tab completion similar to bash
+set wildmenu "enable ctrl-n and ctrl-p to scroll thru matches
+set wildignore=*.o,*.obj,*~ "stuff to ignore when tab completing
+
+set formatoptions-=o "dont continue comments when pushing o/O
+
+"vertical/horizontal scroll off settings
+set scrolloff=3
+set sidescrolloff=7
+set sidescroll=1
+
+"load ftplugins and indent files
+filetype plugin on
+filetype indent on
+
+"turn on syntax highlighting
+syntax on
+
+"some stuff to get the mouse going in term
+set mouse=a
+set ttymouse=xterm2
+
+"tell the term has 256 colors
+set t_Co=256
+
+"hide buffers when not displayed
+set hidden
+
"statusline setup
set statusline=%f "tail of the filename
@@ -185,60 +243,35 @@ function! s:Median(nums)
endif
endfunction
-if v:version >= 703
- "undo settings
- set undodir=~/.vim/undofiles
- set undofile
-
- set colorcolumn=+1
-endif
-
-"activate pathogen
-call pathogen#runtime_append_all_bundles()
-call pathogen#helptags()
-
-"indent settings
-set shiftwidth=4
-set softtabstop=4
-set expandtab
-set autoindent
-
-"folding settings
-set foldmethod=indent "fold based on indent
-set foldnestmax=3 "deepest fold is 3 levels
-set nofoldenable "dont fold by default
-
-set wildmode=list:longest "make cmdline tab completion similar to bash
-set wildmenu "enable ctrl-n and ctrl-p to scroll thru matches
-set wildignore=*.o,*.obj,*~ "stuff to ignore when tab completing
-
-"display tabs and trailing spaces
-set list
-set listchars=tab:▷⋅,trail:⋅,nbsp:⋅
-
-set formatoptions-=o "dont continue comments when pushing o/O
-
-"vertical/horizontal scroll off settings
-set scrolloff=3
-set sidescrolloff=7
-set sidescroll=1
-
-"load ftplugins and indent files
-filetype plugin on
-filetype indent on
-
-"turn on syntax highlighting
-syntax on
-
-"some stuff to get the mouse going in term
-set mouse=a
-set ttymouse=xterm2
-
-"tell the term has 256 colors
-set t_Co=256
-
-"hide buffers when not displayed
-set hidden
+"syntastic settings
+let g:syntastic_enable_signs=1
+let g:syntastic_auto_loc_list=1
+
+"snipmate settings
+let g:snips_author = "Martin Grenfell"
+
+"taglist settings
+let Tlist_Compact_Format = 1
+let Tlist_Enable_Fold_Column = 0
+let Tlist_Exit_OnlyWindow = 0
+let Tlist_WinWidth = 35
+let tlist_php_settings = 'php;c:class;f:Functions'
+let Tlist_Use_Right_Window=1
+let Tlist_GainFocus_On_ToggleOpen = 1
+let Tlist_Display_Tag_Scope = 1
+let Tlist_Process_File_Always = 1
+
+"nerdtree settings
+let g:NERDTreeMouseMode = 2
+let g:NERDTreeWinSize = 40
+
+"explorer mappings
+nnoremap <f1> :BufExplorer<cr>
+nnoremap <f2> :NERDTreeToggle<cr>
+nnoremap <f3> :TlistToggle<cr>
+
+"source project specific config files
+runtime! projects/**/*.vim
"dont load csapprox if we no gui support - silences an annoying warning
if !has("gui")
@@ -255,9 +288,6 @@ noremap Q gq
"make Y consistent with C and D
nnoremap Y y$
-"mark syntax errors with :signs
-let g:syntastic_enable_signs=1
-
"visual search mappings
function! s:VSetSearch()
let temp = @@

0 comments on commit 2f51cb2

Please sign in to comment.