Skip to content

Instantly share code, notes, and snippets.

View soarpenguin's full-sized avatar

soarpenguin soarpenguin

View GitHub Profile
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@soarpenguin
soarpenguin / gist:5176135
Created March 16, 2013 12:12
解决vim/gvim中使用tags或cscope.out文件更新问题
添加如下代码到.vimrc文件中
function UpdateCtags()
let curdir=getcwd()
while !filereadable("./tags")
cd ..
if getcwd() == "/"
break
endif
endwhile