summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbluezery <ohpowel@gmail.com>2014-11-20 15:01:29 +0900
committerbluezery <ohpowel@gmail.com>2014-11-20 15:01:29 +0900
commit855538e2e5d4d67355c791ee0a365676528b823f (patch)
tree2ceea8413053ba6803d64489475302449610b182
parent5ee09b407652839c5a42890d4f9b8a7ca303be06 (diff)
Update
-rw-r--r--.gitconfig4
-rw-r--r--.vimrc12
-rw-r--r--Sublime/User/Preferences.sublime-settings12
-rwxr-xr-xctags.sh46
-rwxr-xr-xinstall-ubuntu.sh6
5 files changed, 58 insertions, 22 deletions
diff --git a/.gitconfig b/.gitconfig
index a614ded..f3a7801 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -1,3 +1,5 @@
1#[core]
2# gitproxy=gitproxy.sh
1[user] 3[user]
2 name = bluezery 4 name = bluezery
3 email = ohpowel@gmail.com 5 email = ohpowel@gmail.com
@@ -20,3 +22,5 @@
20 tool = meld 22 tool = meld
21[push] 23[push]
22 default = current 24 default = current
25#[url "https://"]
26# insteadOf = git:// \ No newline at end of file
diff --git a/.vimrc b/.vimrc
index 4bbe6dc..5229612 100644
--- a/.vimrc
+++ b/.vimrc
@@ -58,11 +58,11 @@ aug developer
58 au BufRead *.c,*.cpp,*.h match ExtraOver /\s\+\%#\@<!$\|\%81v.*/ 58 au BufRead *.c,*.cpp,*.h match ExtraOver /\s\+\%#\@<!$\|\%81v.*/
59 59
60 " Remove extra white space before save 60 " Remove extra white space before save
61 " au bufwritepre *.c,*.cpp,*.h,*.edc :%s/\s\+$\| \+\ze\t//e 61 "au bufwritepre *.c,*.cpp,*.h,*.edc :%s/\s\+$\| \+\ze\t//e
62 au filetype * map <S-F9> :%s/\s\+$\| \+\ze\t//e 62 map <S-F9> :%s/\s\+$\| \+\ze\t//e
63 63
64 "indent for e17 ref: http://trac.enlightenment.org/e/wiki/ecoding 64 "indent for e17 ref: http://trac.enlightenment.org/e/wiki/ecoding
65 au filetype c,cpp,h,edc map <F9> :set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2p{2(0w1st0<CR> 65 map <F9> :set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2p{2(0w1st0<CR>
66 66
67 " <F2> ---- debugging program ---- 67 " <F2> ---- debugging program ----
68 if has("unix") | au filetype c,cpp map <F2> :!gdb <CR> 68 if has("unix") | au filetype c,cpp map <F2> :!gdb <CR>
@@ -97,7 +97,7 @@ aug developer
97 au filetype c,cpp,h,edc map <C-W><C-\> :vsp<CR>:exec("tag ".expand("<cword>"))<CR> 97 au filetype c,cpp,h,edc map <C-W><C-\> :vsp<CR>:exec("tag ".expand("<cword>"))<CR>
98 98
99 "<C-\><C-]> ----- gtags (gnu global) ------ 99 "<C-\><C-]> ----- gtags (gnu global) ------
100 au filetype c,cpp,h,edc map <C-\><C-]> :GtagsCursor<CR> 100" au filetype c,cpp,h,edc map <C-\><C-]> :GtagsCursor<CR>
101 101
102 " <F6> <S-F6> make cscope db file & read db file 102 " <F6> <S-F6> make cscope db file & read db file
103 if has("unix") 103 if has("unix")
@@ -108,7 +108,8 @@ aug developer
108 au filetype c,cpp,h,edc set cst 108 au filetype c,cpp,h,edc set cst
109 au filetype c,cpp,h,edc set csverb 109 au filetype c,cpp,h,edc set csverb
110 if filereadable("/home/bluezery/.vim/tags/cscope.out") 110 if filereadable("/home/bluezery/.vim/tags/cscope.out")
111 au filetype c,cpp,h,edc cs add /home/bluezery/.vim/tags/cscope.out 111 au filetype c,cpp,h,edc cs kill -1
112 "au filetype c,cpp,h,edc cs add /home/bluezery/.vim/tags/cscope.out
112 endif 113 endif
113 au filetype c,cpp,h,edc map <F6> :!cscope<CR> 114 au filetype c,cpp,h,edc map <F6> :!cscope<CR>
114 au filetype c,cpp,h,edc map <C-F6> :exec("cs find g ".expand("<cword>")) <CR> 115 au filetype c,cpp,h,edc map <C-F6> :exec("cs find g ".expand("<cword>")) <CR>
@@ -197,6 +198,7 @@ call vundle#rc()
197" required! 198" required!
198Bundle 'gmarik/vundle' 199Bundle 'gmarik/vundle'
199 200
201Bundle 'gtags-multiwindow-browsing'
200" My Bundles here: 202" My Bundles here:
201Bundle 'taglist.vim' 203Bundle 'taglist.vim'
202Bundle 'bufexplorer.zip' 204Bundle 'bufexplorer.zip'
diff --git a/Sublime/User/Preferences.sublime-settings b/Sublime/User/Preferences.sublime-settings
index eb8f3de..2546bd7 100644
--- a/Sublime/User/Preferences.sublime-settings
+++ b/Sublime/User/Preferences.sublime-settings
@@ -1,13 +1,21 @@
1{ 1{
2 "color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", 2 "color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
3 "draw_indent_guides": false, 3 "draw_indent_guides": true,
4 "font_face": "Ubuntu Mono", 4 "font_face": "Ubuntu Mono",
5 "font_size": 10.0, 5 "font_size": 10.0,
6 "rulers": 6 "rulers":
7 [ 7 [
8 80 8 80
9 ], 9 ],
10 "margin": 1,
11 "detect_indentation": true,
12 "tab_size": 3,
13 "use_tab_stops": true,
14 "indent_to_bracket": true,
10 "smart_indent": false, 15 "smart_indent": false,
11 "translate_tabs_to_spaces": true, 16 "translate_tabs_to_spaces": true,
12 "trim_trailing_white_space_on_save": true 17 "trim_trailing_white_space_on_save": true,
18 "highlight_line": true,
19 "word_wrap": false,
20 "indent_subsequent_lines": false
13} 21}
diff --git a/ctags.sh b/ctags.sh
index ebf8d05..ebe2a5a 100755
--- a/ctags.sh
+++ b/ctags.sh
@@ -16,25 +16,47 @@ if [[ -z "$TEST" ]]; then
16 exit 16 exit
17fi 17fi
18 18
19PREF=$HOME/work/opensrc 19############ Create ctags & cscope
20DIR="$PREF/efl $PREF/elementary" 20DIR="$HOME/work/opensrc/efl $HOME/work/opensrc/elementary"
21TAGD=$HOME/.vim/tags 21TAGDIR=$HOME/.vim/tags
22 22
23if [[ ! -d $TAGD ]]; then 23if [[ ! -d $TAGDIR ]]; then
24 mkdir $TAGD 24 mkdir -p $TAGDIR
25fi 25fi
26cd $TAGD 26
27if [[ ! "$?" ]]; then 27pushd $TAGDIR
28 echo "$TAGD is not existed" 28#### Upstream
29IGNORE="EINA_ARG_NONNULL"
30echo "Creating ctags for upstream EFL... $DIR"
31rm -rf $TAGDIR/tags && ctags --c-kinds=+p --sort=foldcase --langmap=c:.c.x.s.S.edc -I $IGNORE $TAGDIR -R $DIR
32
33echo "Creating cscope for upstream EFL... $DIR"
34rm -rf cscope.files && \
35 find $DIR -name '*.c' -o -name '*.cpp' -o -name '*.h' -o -name '*.h.in' -o -name '*.s' -o -name '*.x' -o -name '*.edc' > $TAGDIR/cscope.files && \
36 cscope -b -q -k$HOME/work/tizen/MOBILE/EFL
37cd -
38popd
39
40#### Downstream
41TAGDIR="$HOME/work/tizen/MOBILE/EFL"
42DIR="$TAGDIR/eina $TAGDIR/eet $TAGDIR/embryo $TAGDIR/ecore $TAGDIR/evas $TAGDIR/edje $TAGDIR/elementary"
43if [[ ! -d $TAGDIR ]]; then
44 echo "$TAGDIR does not exist"
29 exit 45 exit
30fi 46fi
31 47
32# Create ctags 48pushd $TAGDIR
33IGNORE="EINA_ARG_NONNULL" 49IGNORE="EINA_ARG_NONNULL"
34rm -rf tags && ctags --c-kinds=+p --sort=foldcase --langmap=c:.c.x.s.S.edc -I $IGNORE $TAGD -R $DIR 50echo "Creating ctags for downstream... $DIR"
51rm -rf $TAGDIR/tags && ctags --c-kinds=+p --sort=foldcase --langmap=c:.c.x.s.S.edc -I $IGNORE $PREF -R $DIR
35 52
36# Create cscopes 53echo "Creating cscope for mobile... $DIR"
37rm -rf cscope.files && \ 54rm -rf cscope.files && \
38 find $DIR -name '*.c' -o -name '*.cpp' -o -name '*.h' -o -name '*.h.in' -o -name '*.s' -o -name '*.x' -o -name '*.edc' > cscope.files && \ 55 find $DIR -name '*.c' -o -name '*.cpp' -o -name '*.h' -o -name '*.h.in' -o -name '*.s' -o -name '*.x' -o -name '*.edc' > $TAGDIR/cscope.files && \
39 cscope -b -q -k 56 cscope -b -q -k
57popd
40 58
59# Create gtags
60#echo "Creating gtags... $PREF"
61#pushd $PREF && gtags
62#popd \ No newline at end of file
diff --git a/install-ubuntu.sh b/install-ubuntu.sh
index f8f3a8d..f7e854e 100755
--- a/install-ubuntu.sh
+++ b/install-ubuntu.sh
@@ -12,7 +12,7 @@ function do_link
12 if [ ! -h $L ]; then 12 if [ ! -h $L ]; then
13 ln -s $F $L || echo -e "${RED}FIX: File exists($L) but not symbolic linked!!!! ${NOC}" 13 ln -s $F $L || echo -e "${RED}FIX: File exists($L) but not symbolic linked!!!! ${NOC}"
14 else 14 else
15 echo -e "${GRN}$L already symbolic linked ${NOC}" 15 ln -sf $F $L || echo -e "${RED}Symbolic link($L) failed"
16 fi 16 fi
17} 17}
18 18
@@ -99,11 +99,11 @@ if [ ! -f "$HOME/.vim/plugin/srcexpl.vim" ]; then
99fi 99fi
100 100
101# Sublime Text setting 101# Sublime Text setting
102S="git://github.com/SublimeText/TrailingSpaces.git" 102S="https://github.com/SublimeText/TrailingSpaces.git"
103T="$HOME/work/github/TrailingSpaces" 103T="$HOME/work/github/TrailingSpaces"
104do_clone 104do_clone
105 105
106S="git://github.com/bluezery/CTags.git" 106S="https://github.com/bluezery/CTags.git"
107T="$HOME/work/github/CTags" 107T="$HOME/work/github/CTags"
108do_clone 108do_clone
109 109