daiki41ti (owner)

Revisions

gist: 228623 Download_button fork
public
Public Clone URL: git://gist.github.com/228623.git
Embed All Files: show embed
.vimrc #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
set nocompatible
set backupdir=$HOME/vimbackup
set clipboard=unnamed
set directory=$HOME/vimbackup
set ignorecase
set number
 
set shiftwidth=4
set expandtab
 
set wrap
set showmatch
set smartcase
set autoindent smartindent
 
set tabstop=4
"set tabstop=8
"set tabstop=4
 
set whichwrap=b,s,h,l,<,>,[,]
set backspace=indent,eol,start
set scrolloff=5
set nobackup
set noswapfile
set tags=tags
 
 " use GNU global to replace cscope
   set csprg=gtags-cscope
   " use quickfix window
   set cscopequickfix=s-,c-,d-,i-,t-,e-
   " search both cscope database and tags file
   set cscopetag
   " search database first
   set cscopetagorder=0
   set nocsverb
   " add any database in current directory
   if filereadable("cscope.out")
       "set csprg=/usr/bin/cscope
       cs add cscope.out
   elseif filereadable("GTAGS")
       cs add GTAGS
   " else add database pointed to by environment
   elseif $CSCOPE_DB != ""
       cs add $CSCOPE_DB
   endif
   set csverb
 
filetype plugin on
filetype plugin indent on
 
nmap <C-J> <C-W>j
nmap <C-K> <C-W>k
nmap <C-h> <C-w>h
nmap <C-l> <C-w>l
 
map ,y "+y
map ,p "+p
 
syntax enable
.zshrc #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
PROMPT="%B%{%}%n@%m $%{%}%b "
RPROMPT="%B%{%}[%~]%{%}%b"
#SPROMPT="correct: %R -> %r ? "
 
## Command history configuration
#
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt hist_ignore_dups # ignore duplication command history list
setopt share_history # share command history data
 
case "${TERM}" in
kterm*|xterm)
    precmd() {
        echo -ne "\033]0;${USER}@${HOST%%.*}: ${PWD}\007"
    }
    ;;
esac
 
# auto change directory
#
setopt auto_cd
 
# auto directory pushd that you can get dirs list by cd -[tab]
#
setopt auto_pushd
 
# command correct edition before each completion attempt
#
#setopt correct
 
# compacked complete list display
#
setopt list_packed
 
# no beep sound when complete list displayed
#
setopt nolistbeep
 
## Keybind configuration
#
# emacs like keybind (e.x. Ctrl-a goes to head of a line and Ctrl-e goes
# to end of it)
#
bindkey -e
 
# historical backward/forward search with linehead string binded to ^P/^N
#
autoload history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^P" history-beginning-search-backward-end
bindkey "^N" history-beginning-search-forward-end
 
## Command history configuration
#
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt hist_ignore_dups # ignore duplication command history list
setopt share_history # share command history data
 
## Completion configuration
#
autoload -U compinit
compinit
 
if [ -x /usr/bin/dircolors ]; then
   eval "`dircolors -b`"
   alias ls='ls --color=auto'
   #alias dir='dir --color=auto'
   #alias vdir='vdir --color=auto'
   #alias grep='grep --color=auto'
   #alias fgrep='fgrep --color=auto'
   #alias egrep='egrep --color=auto'
fi
 
alias "erlc+"="erlc +\'{parse_transform, smart_exceptions}\'"