Commits

Woojong Koh  committed a03f186

Add some Vim plugins and modify update_tags.py to bulid libstdc++_tags

  • Participants
  • Parent commits 5304008

Comments (0)

Files changed (9)

 .vim/bundle/DirDiff.vim = [git]https://github.com/vim-scripts/DirDiff.vim.git
+.vim/bundle/MatlabFilesEdition = [git]https://github.com/vim-scripts/MatlabFilesEdition.git
 .vim/bundle/NrrwRgn = [git]https://github.com/chrisbra/NrrwRgn.git
+.vim/bundle/OmniCppComplete = [git]https://github.com/FromtonRouge/OmniCppComplete.git
 .vim/bundle/a.vim = [git]https://github.com/vim-scripts/a.vim.git
 .vim/bundle/ack.vim = [git]https://github.com/mileszs/ack.vim.git
 .vim/bundle/ctrlp.vim = [git]https://github.com/kien/ctrlp.vim.git
 .vim/bundle/grep.vim = [git]https://github.com/vim-scripts/grep.vim.git
 .vim/bundle/gundo.vim = https://bitbucket.org/sjl/gundo.vim
+.vim/bundle/neocomplcache = [git]https://github.com/Shougo/neocomplcache.git
 .vim/bundle/nerdtree = [git]https://github.com/scrooloose/nerdtree.git
 .vim/bundle/python-mode = [git]https://github.com/klen/python-mode.git
 .vim/bundle/snipmate.vim = [git]https://github.com/msanders/snipmate.vim.git
 244a50c40d93873006c875c5d2ae64fcbc987216 .hgext/hgshelve
 09e6c343a6bc597559abb669a261b5d138c9a9dc .hgext/mercurial_keyring
 30bdbd5f6173041fa3e8726195dc21f8fd6082ea .hgext/onsub
-73f777053725ce61d6fada67ff3f174130dd8c94 .oh-my-zsh
+c2ae9e09ca1f33ff1e13e629a0b2e6bdd19f83a9 .oh-my-zsh
 ca0ce8fcc49a09eca7eb8ff8003554de2f250901 .vim/bundle/DirDiff.vim
+06c1e16a4dcfd1b8b1764e96482af4b063ca7c8a .vim/bundle/MatlabFilesEdition
 698e0c333c1edae8a1d83b04e5674efa7cac3137 .vim/bundle/NrrwRgn
+91d9da162a4dea283f90ee772470cb2dca927a30 .vim/bundle/OmniCppComplete
 2cbe946206ec622d9d8cf2c99317f204c4d41885 .vim/bundle/a.vim
 9895285042a2fd5691b2f6582aa979e4d1bdffea .vim/bundle/ack.vim
 be5842a376f16c16c5dc4cc1879d7168a074f7de .vim/bundle/ctrlp.vim
 1e5658c6d9575cd34be32d0227e06f07c9d58a2e .vim/bundle/grep.vim
 8c570a493d260890242cbdc5a22d8500dc4604cb .vim/bundle/gundo.vim
+73f9a67aca4b5678afc10498a13279db16ce748d .vim/bundle/neocomplcache
 bf79e223aefe0665bcc62b5dcc4c2c23c6f23fc5 .vim/bundle/nerdtree
 e877c7e3e249e5784fcee8feaff7f1a8799335a1 .vim/bundle/python-mode
 f5a75d075d3c005ebe69e3f5e56cf99516e8aa3b .vim/bundle/snipmate.vim
-2e7d73305b70a456abb20b1754e094cccfefa3d3 .vim/bundle/syntastic
+ba17657bc409cf58a95d4214f1c703311ba05f72 .vim/bundle/syntastic
 568ef5fd25468a58723b50cf40a48c5dcb46c802 .vim/bundle/tagbar
 53041fbc45398a9af631a20657e109707a455339 .vim/bundle/taglist.vim
 13fe3d8064647e2cdf07e12840108c3f917f5636 .vim/bundle/vim-autocomplpop
 set noimdisable		" http://tech.groups.yahoo.com/group/vim-mac/message/12312
 set macmeta
 set path+=/usr/local/include,/opt/local/include,./include;,./lib;
-set tags+=./tags;
+set tags+=./tags;,~/.vim/libstdc++_tags
 
 set backup
 set undofile
 
 " Tagbar
 autocmd BufEnter * nested :call tagbar#autoopen(0)
+
+" NeoComplCache
+let g:acp_enableAtStartup = 0
+let g:neocomplcache_enable_at_startup = 1
+
+" OmniCppComplete
+let OmniCpp_ShowPrototypeInAbbr = 1
+let OmniCpp_MayCompleteScope = 1
+autocmd CursorMovedI,InsertLeave * if pumvisible() == 0 | pclose | endif
 typeset -U path
 
-path=($HOME/bin /opt/local/bin /opt/local/sbin $path /Applications/kdiff3.app/Contents/MacOS/)
+path=(/Applications/MacVim.app/Contents/MacOS/ $HOME/bin /opt/local/bin /opt/local/sbin $path /Applications/kdiff3.app/Contents/MacOS/ /Applications/MATLAB_R2011b.app/bin/ /Applications/MATLAB_R2011b.app/bin/maci64/)
+
+EDITOR=vim
+MAC_SYNC="$HOME/Dropbox/Mac Sync/"
 source virtualenvwrapper.sh
 
 # Use MacVim if it exists
+export EDITOR=vim
 if hash mvim &> /dev/null; then
 	export EDITOR="mvim -v"
 	alias vim="mvim -v"

File bin/update_subrepos

-#!/bin/bash
-
-# Git
-hg onsub --ignore-errors "git checkout master"
-hg onsub --ignore-errors "git pull"
-cd .vim/bundle/vim-powerline/; git checkout develop
-
-# Mercurial
-hg onsub --ignore-errors "hg pull --update"

File bin/update_subrepos.sh

+#!/usr/bin/env bash
+
+# Git
+hg onsub --ignore-errors "git checkout master"
+hg onsub --ignore-errors "git pull"
+cd .vim/bundle/vim-powerline/; git checkout develop
+
+# Mercurial
+hg onsub --ignore-errors "hg pull --update"

File bin/update_tags.py

 __author__ = "Woojong Koh"
 __status__ = "Development"
 
+std_include_path = '/opt/local/include/gcc47/c++'
+std_tags_path = '$HOME/.vim/libstdc++_tags'
+std_excludes = ["gcj", "java", "javax"]
+
 ctags_options = ['--sort=foldcase', '--c++-kinds=+p', '--fields=+iaS', '--extra=+q']
 ctags_excludes = ['*/typeof/*', '*/preprocessed/*']
 ignores = ['.hg', '.git', '.svn']
     processes = set()
     max_processes = 100
 
+    p = subprocess.Popen(' '.join(['ctags'] + ctags_options + ['--exclude=' + x for x in std_excludes] + ['--file-scope=no', '-R', '-I _GLIBCXX_VISIBILITY+', '-f', std_tags_path, std_include_path]), shell=True)
+    p.wait()
+
     for root, dirs, files in os.walk('.'):
         dirs[:] = [d for d in dirs if d not in ignores]
         if len(files) > 0:
         if p.poll() is None:
             p.wait()
 
-    p = subprocess.Popen(['ctags'] + ctags_options + ['--exclude=' + x for x in ctags_excludes] + ["--file-scope=no", '-R'])
+    p = subprocess.Popen(['ctags'] + ctags_options + ['--exclude=' + x for x in ctags_excludes] + ['--file-scope=no', '-R'])
     p.wait()
 echo
 echo "* Installing Ack..."
 sudo /usr/bin/cpan App::Ack
+
+svn export --force http://pyp.googlecode.com/svn/trunk/ ~/bin
+chmod u+x ~/bin/pyp