Permalink
Browse files

nerdtree hops to 1st buffer, fold level edits

  • Loading branch information...
1 parent 8250bb0 commit f49ea6522f39b807914999a0b0e9c59aa65f9e47 chr0n1x committed Mar 17, 2013
Showing with 15 additions and 14 deletions.
  1. +15 −14 .vimrc
View
29 .vimrc
@@ -3,17 +3,6 @@ set encoding=utf-8
set backspace=indent,eol,start
set t_Co=256
-" Nerdtree
-autocmd vimenter * NERDTree
-let NERDTreeShowBookmarks=1
-let NERDTreeChDirMode=0
-let NERDTreeMouseMode=2
-let NERDTreeShowHidden=1
-let NERDTreeIgnore=['\.pyc','\~$','\.swo$','\.swp$','\.git','\.hg','\.svn','\.bzr']
-let NERDTreeKeepTreeInNewTab=1
-"let g:NERDTreeWinPos = "right"
-let g:nerdtree_tabs_open_on_gui_startup=0
-
filetype off
set runtimepath+=~/.vim/bundle/vundle/
call vundle#rc()
@@ -28,16 +17,25 @@ Bundle 'gregsexton/MatchTag'
Bundle 'wincent/Command-T'
Bundle 'scrooloose/nerdtree'
Bundle 'sudo.vim'
-" Bundle 'golden-ratio'
-colorscheme railscasts
+" Nerdtree
+autocmd vimenter * NERDTree
+let NERDTreeShowBookmarks=1
+let NERDTreeChDirMode=0
+let NERDTreeMouseMode=2
+let NERDTreeShowHidden=1
+let NERDTreeIgnore=['\.pyc','\~$','\.swo$','\.swp$','\.git','\.hg','\.svn','\.bzr']
+let NERDTreeKeepTreeInNewTab=1
+let g:nerdtree_tabs_open_on_gui_startup=0
+autocmd VimEnter * wincmd l
" Syntax
filetype plugin indent on
syntax on
set guifont=Lucida\ Console
" Editor tweaks
+colorscheme railscasts
set tabstop=4
set shiftwidth=2
set softtabstop=2
@@ -57,7 +55,10 @@ set showmatch
" Folding
set foldmethod=syntax
-set foldlevelstart=3
+" force zM to close everything IN a class
+set foldlevelstart=2
+set foldlevel=2
+set foldminlines=1
" Beeping
set visualbell t_vb=

0 comments on commit f49ea65

Please sign in to comment.