Commits

rride_a  committed f360b5b

Modified vimrc to support 8 color default console on macosx

  • Participants
  • Parent commits 4df2246

Comments (0)

Files changed (2)

+if has("mac") && &term == "xterm"
+    set t_Co=8
+else
+    set t_Co=256
+endif
 
 call pathogen#infect()
 
 
 "nmap! <Leader>t		:TaskList<CR>
 nmap <Leader>nt		:NERDTreeToggle<CR>
+let NERDTreeShowHidden=1
+let NERDTreeIgnore=[ '\.pyc$', '\.pyo$', '\.py\$class$', '\.obj$',
+            \ '\.o$', '\.so$', '\.egg$', '^\.git$' ]
 
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " taskbar plugin
 " Development settings {{{
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 function! SetCppTags()
-    let newtag=&tags.",".s:cpp_tag_dir."/*.tags"
-    exe ":setlocal tags=".newtag
+    if exists("g:cpp_tags_env")
+        exe "set tags+=".g:cpp_tags_env
+    endif
+    if exists("g:cpp_include_dirs")
+        exe "set path=".g:cpp_include_dirs
+    endif
 endfunction
 
 augroup prog
 
     " Cpp
     au BufNewFile,BufRead,BufEnter *.cpp,*.hpp set omnifunc=omni#cpp#complete#Main
-
-    "au BufNewFile,BufRead,BufEnter *.cpp,*.hpp call SetCppTags()
+    au BufNewFile,BufRead,BufEnter *.cpp,*.hpp call SetCppTags()
 
     let OmniCpp_NamespaceSearch = 1
     let OmniCpp_GlobalScopeSearch = 1

File bundle/indexer/plugin/indexer.vim

 let s:DEB_LEVEL__ALL    = 3
 
 " remember default &tags, &path
-let s:sTagsDefault = &tags
-let s:sPathDefault = &path
+function! Indexer_RememberDefaultTags()
+    let s:sTagsDefault = &tags
+    let s:sPathDefault = &path
+endfunction
+
+call Indexer_RememberDefaultTags()
 
 " задаем пустые массивы с данными
 let s:dProjFilesParsed = {}