Commits

zhihu committed 4ea668f

add submodule

Comments (0)

Files changed (2)

 [submodule "bundle/flake8"]
 	path = bundle/flake8
 	url = git://github.com/avidal/flake8.vim.git
+[submodule "bundle/snipMate"]
+	path = bundle/snipMate
+    url = git://github.com/youngking/snipMate.git
+[submodule "bundle/command-t"]
+	path = bundle/command-t
+	url = git://git.wincent.com/command-t.git
+[submodule "bundle/minibufexpl"]
+	path = bundle/minibufexpl
+	url = git://github.com/fholgado/minibufexpl.vim.git
 set hlsearch      " highlight search terms
 set incsearch     " show search matches as you type
 " set nobackup
-" set noswapfile
+" Turn off annoying swapfiles
+set noswapfile
 set pastetoggle=<F2>
 set nocompatible
 
+set hidden
+
+
+" Set persistent undo (v7.3 only)
+set undodir=~/.vim/undodir
+set undofile
+
+" The PC is fast enough, do syntax highlight syncing from start
+autocmd BufEnter * :syntax sync fromstart
+
+" Activate a permanent ruler 
+set ruler
+  
+" clear search highlight
+nnoremap <leader><space> :noh<cr>
+
+" clipboard
+set clipboard=unnamed
+
 filetype on
 filetype plugin on
 
 " nmap <F8> :TagbarToggle<CR> 
 let g:tagbar_usearrows = 1
 nnoremap <leader>l :TagbarToggle<CR>
+  
+" clear ^M messup
+noremap <Leader>m mmHmt:%s/<C-V><cr>//ge<cr>'tzt'm
+
+noremap <leader>o <Esc>:CommandT<CR>
+noremap <leader>O <Esc>:CommandTFlush<CR>
+noremap <leader>m <Esc>:CommandTBuffer<CR
+
+" Tab configuration
+map <leader>tn :tabnew<cr>
+map <leader>te :tabedit
+map <leader>tc :tabclose<cr>
+map <leader>tm :tabmove
+
+" minibuf
+let g:miniBufExplMapWindowNavVim = 1 
+let g:miniBufExplMapWindowNavArrows = 1 
+let g:miniBufExplMapCTabSwitchBufs = 1 
+let g:miniBufExplModSelTarget = 1 
+
+" MiniBufExpl Colors
+hi MBEVisibleActive guifg=#A6DB29 guibg=fg
+hi MBEVisibleChangedActive guifg=#F1266F guibg=fg
+hi MBEVisibleChanged guifg=#F1266F guibg=fg
+hi MBEVisibleNormal guifg=#5DC2D6 guibg=fg
+hi MBEChanged guifg=#CD5907 guibg=fg
+hi MBENormal guifg=#808080 guibg=fg
+
+" Command-T
+let g:CommandTMaxHeight = 15
+set wildignore+=*.o,*.obj,.git,*.pyc,*.egg-info
+noremap <leader>j :CommandT<cr>
+noremap <leader>y :CommandTFlush<cr>