Skip to content

Commit 8b1ce08

Browse files
committed
update dotfiles
1 parent 0731d57 commit 8b1ce08

File tree

5 files changed

+419
-21
lines changed

5 files changed

+419
-21
lines changed

.tmux-powerlinerc

+135
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
# Default configuration file for tmux-powerline.
2+
# Modeline {
3+
# vi: foldmarker={,} foldmethod=marker foldlevel=0 tabstop=4 filetype=sh
4+
# }
5+
6+
# General {
7+
# Show which segment fails and its exit code.
8+
export TMUX_POWERLINE_DEBUG_MODE_ENABLED="false"
9+
# Use patched font symbols.
10+
export TMUX_POWERLINE_PATCHED_FONT_IN_USE="true"
11+
# The theme to use.
12+
export TMUX_POWERLINE_THEME="default"
13+
# Overlay dirctory to look for themes. There you can put your own themes outside the repo. Fallback will still be the "themes" directory in the repo.
14+
export TMUX_POWERLINE_DIR_USER_THEMES=""
15+
# Overlay dirctory to look for segments. There you can put your own segments outside the repo. Fallback will still be the "segments" directory in the repo.
16+
export TMUX_POWERLINE_DIR_USER_SEGMENTS=""
17+
# }
18+
19+
## battery.sh {
20+
# # How to display battery remaining. Can be {percentage, cute}.
21+
# export TMUX_POWERLINE_SEG_BATTERY_TYPE="cute"
22+
# # How may hearts to show if cute indicators are used.
23+
# export TMUX_POWERLINE_SEG_BATTERY_NUM_HEARTS="5"
24+
## }
25+
26+
# date.sh {
27+
# date(1) format for the date. If you don't, for some reason, like ISO 8601 format you might want to have "%D" or "%m/%d/%Y".
28+
export TMUX_POWERLINE_SEG_DATE_FORMAT="%F"
29+
# }
30+
31+
# earthquake.sh {
32+
# The data provider to use. Currently only "goo" is supported.
33+
export TMUX_POWERLINE_SEG_EARTHQUAKE_DATA_PROVIDER="goo"
34+
# How often to update the earthquake data in seconds.
35+
# Note: This is not an early warning detector, use this
36+
# to be informed about recent earthquake magnitudes in your
37+
# area. If this is too often, goo may decide to ban you form
38+
# their server
39+
export TMUX_POWERLINE_SEG_EARTHQUAKE_UPDATE_PERIOD="600"
40+
# Only display information when earthquakes are within this many minutes
41+
export TMUX_POWERLINE_SEG_EARTHQUAKE_ALERT_TIME_WINDOW="60"
42+
# Display time with this format
43+
export TMUX_POWERLINE_SEG_EARTHQUAKE_TIME_FORMAT='(%H:%M)'
44+
# Display only if magnitude is greater or equal to this number
45+
export TMUX_POWERLINE_SEG_EARTHQUAKE_MIN_MAGNITUDE="3"
46+
# }
47+
48+
# hostname.sh {
49+
# Use short or long format for the hostname. Can be {"short, long"}.
50+
export TMUX_POWERLINE_SEG_HOSTNAME_FORMAT="short"
51+
# }
52+
53+
# mailcount.sh {
54+
# Mailbox type to use. Can be any of {apple_mail, gmail, maildir, mbox, mailcheck}
55+
export TMUX_POWERLINE_SEG_MAILCOUNT_MAILBOX_TYPE=""
56+
57+
## Gmail
58+
# Enter your Gmail username here WITH OUT @gmail.com.( OR @domain)
59+
export TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_USERNAME=""
60+
# Google password. Recomenned to use application specific password (https://accounts.google.com/b/0/IssuedAuthSubTokens) Leave this empty to get password from OS X keychain.
61+
# For OSX users : MAKE SURE that you add a key to the keychain in the format as follows
62+
# Keychain Item name : http://<value-you-fill-in-server-variable-below>
63+
# Account name : <username-below>@<server-below>
64+
# Password : Your password ( Once again, try to use 2 step-verification and application-specific password)
65+
# See http://support.google.com/accounts/bin/answer.py?hl=en&answer=185833 for more info.
66+
export TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_PASSWORD=""
67+
# Domain name that will complete your email. For normal GMail users it probably is "gmail.com but can be "foo.tld" for Google Apps users.
68+
export TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_SERVER="gmail.com"
69+
# How often in minutes to check for new mails.
70+
export TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_INTERVAL="5"
71+
72+
## Maildir
73+
# Path to the maildir to check.
74+
export TMUX_POWERLINE_SEG_MAILCOUNT_MAILDIR_INBOX="/Users/uga/.mail/inbox/new"
75+
76+
## mbox
77+
# Path to the mbox to check.
78+
export TMUX_POWERLINE_SEG_MAILCOUNT_MBOX_INBOX=""
79+
80+
## mailcheck
81+
# Optional path to mailcheckrc
82+
export TMUX_POWERLINE_SEG_MAILCOUNT_MAILCHECKRC="/Users/uga/.mailcheckrc"
83+
# }
84+
85+
# now_playing.sh {
86+
# Music player to use. Can be any of {audacious, banshee, cmus, itunes, lastfm, mocp, mpd, mpd_simple, pithos, rdio, rhythmbox, spotify, spotify_wine}.
87+
export TMUX_POWERLINE_SEG_NOW_PLAYING_MUSIC_PLAYER=""
88+
# Maximum output length.
89+
export TMUX_POWERLINE_SEG_NOW_PLAYING_MAX_LEN="40"
90+
# How to handle too long strings. Can be {trim, roll}.
91+
export TMUX_POWERLINE_SEG_NOW_PLAYING_TRIM_METHOD="trim"
92+
# Charcters per second to roll if rolling trim method is used.
93+
export TMUX_POWERLINE_SEG_NOW_PLAYING_ROLL_SPEED="2"
94+
95+
# Hostname for MPD server in the format "[password@]host"
96+
export TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_HOST="localhost"
97+
# Port the MPD server is running on.
98+
export TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_PORT="6600"
99+
# Song display format for mpd_simple. See mpc(1) for delimiters.
100+
export TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_SIMPLE_FORMAT="%artist% - %title%"
101+
102+
# Username for Last.fm if that music player is used.
103+
export TMUX_POWERLINE_SEG_NOW_PLAYING_LASTFM_USERNAME=""
104+
# How often in seconds to update the data from last.fm.
105+
export TMUX_POWERLINE_SEG_NOW_PLAYING_LASTFM_UPDATE_PERIOD="30"
106+
# Fancy char to display before now playing track
107+
export TMUX_POWERLINE_SEG_NOW_PLAYING_NOTE_CHAR=""
108+
# }
109+
110+
# pwd.sh {
111+
# Maximum length of output.
112+
export TMUX_POWERLINE_SEG_PWD_MAX_LEN="40"
113+
# }
114+
115+
# time.sh {
116+
# date(1) format for the time. Americans might want to have "%I:%M %p".
117+
export TMUX_POWERLINE_SEG_TIME_FORMAT="%H:%M"
118+
# }
119+
120+
# weather.sh {
121+
# The data provider to use. Currently only "yahoo" is supported.
122+
export TMUX_POWERLINE_SEG_WEATHER_DATA_PROVIDER="yahoo"
123+
# What unit to use. Can be any of {c,f,k}.
124+
export TMUX_POWERLINE_SEG_WEATHER_UNIT="c"
125+
# How often to update the weather in seconds.
126+
export TMUX_POWERLINE_SEG_WEATHER_UPDATE_PERIOD="600"
127+
# Name of GNU grep binary if in PATH, or path to it.
128+
export TMUX_POWERLINE_SEG_WEATHER_GREP="grep"
129+
130+
# Your location. Find a code that works for you:
131+
# 1. Go to Yahoo weather http://weather.yahoo.com/
132+
# 2. Find the weather for you location
133+
# 3. Copy the last numbers in that URL. e.g. "http://weather.yahoo.com/united-states/california/newport-beach-12796587/" has the numbers "12796587"
134+
export TMUX_POWERLINE_SEG_WEATHER_LOCATION=""
135+
# }

.tmux.conf

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# Prefix
2+
set-option -g prefix C-k
3+
4+
# disable ESC delay
5+
set -s escape-time 0
6+
7+
# set default shell
8+
set-option -g default-shell /bin/zsh
9+
10+
set-option -g default-command "reattach-to-user-namespace -l zsh"
11+
12+
set-window-option -g utf8 on
13+
set-window-option -g xterm-keys on
14+
set-window-option -g mode-keys vi
15+
set-window-option -g automatic-rename on
16+
set -g mode-mouse on
17+
set -g mouse-resize-pane on
18+
set -g mouse-select-pane on
19+
set -g mouse-select-window on
20+
21+
set-option -g history-limit 10000
22+
set-option -g base-index 1
23+
set-option -g pane-base-index 1
24+
set-option -g bell-action none
25+
set-option -g buffer-limit 20
26+
set-option -s escape-time 0
27+
28+
#256色端末を使用
29+
set-option -g default-terminal "xterm-256color"
30+
31+
# pane-active-border
32+
set-window-option -g window-status-current-format "#[fg=colour236, bg=colour124]⮀#[fg=colour255, bg=colour124] #I ⮁ #W #[fg=colour124, bg=colour236]⮀"
33+
set-option -g status on
34+
set-option -g status-interval 2
35+
set-option -g status-utf8 on
36+
set-option -g status-justify "left"
37+
set -g status-bg colour236
38+
set -g status-fg colour255
39+
set-option -g status-left-length 100
40+
set-option -g status-right-length 120
41+
set-option -g status-left "#[fg=colour31]#(pwd-name) #[bg=colour31]#[fg=0]# UGA %% #[bg=colour236]#[fg=colour31]⮀"
42+
#set-option -g status-left "#(~/.tmux/tmux-powerline/powerline.sh left)#[bg=colour0]#[fg=colour255] #[fg=colour198]#(pwd-name) #[bg=colour22]#[fg=white] M #(~/.tmux/bin/used-mem) %% #[bg=colour0]#[fg=colour22]⮀"
43+
44+
set-option -g status-right "#(~/.tmux/tmux-powerline/powerline.sh right)"
45+
46+
# KeyBindings
47+
bind r source-file ~/.tmux.conf\; display-message "Reload Config!!"
48+
49+
#split windows like vim
50+
# vim's definition of a horizontal/vertical split is reversed from tmux's
51+
bind s split-window -v
52+
bind v split-window -h
53+
54+
# vi-style controls for copy mode
55+
setw -g mode-keys vi
56+
bind -t vi-copy 'v' begin-selection
57+
bind -t vi-copy 'y' copy-selection
58+
# move x clipboard into tmux paste buffer
59+
bind C-p run "xclip -o | tmux load-buffer -"
60+
# # move tmux copy buffer into x clipboard
61+
bind C-c run "tmux save-buffer - | xclip -i -selection clipboard"
62+
63+
# copy-mode ^[
64+
unbind ^"["
65+
bind -r ^"[" copy-mode
66+
unbind ^]
67+
bind -r ^] paste-buffer
68+
69+
# paneの移動
70+
bind -r h select-pane -L
71+
bind -r j select-pane -D
72+
bind -r k select-pane -U
73+
bind -r l select-pane -R
74+
75+
bind -r C-h select-pane -L
76+
bind -r C-j select-pane -D
77+
bind -r C-k select-pane -U
78+
bind -r C-l select-pane -R
79+
80+
bind -r C-n next-window
81+
bind -r C-p previous-window
82+
83+
bind -n -r M-1 select-pane -t .1
84+
bind -n -r M-2 select-pane -t .2
85+
bind -n -r M-3 select-pane -t .3
86+
bind -n -r M-4 select-pane -t .4
87+
bind -n -r M-5 select-pane -t .5
88+
89+
bind K confirm-before kill-pane
90+
91+
# 各種ペインの移動
92+
bind < resize-pane -L 1
93+
bind > resize-pane -R 1
94+
bind - resize-pane -D 1
95+
bind + resize-pane -U 1

.tmux/tmux-powerline

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 19afd8812fc1ff8558b7223ce9fb19a28d15d2ff

.vimrc

+56-21
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,25 @@ set showmatch "対応する括弧のハイラ/イト表示する
2020
set backspace=indent,eol,start
2121
set ruler "ルーラーの表示する
2222
set virtualedit=all " 矩形選択で自由に移動する
23+
set textwidth=0 "自動改行しない
24+
set nowrap " 長い行を折り返さないで表示
25+
" j, k による移動を折り返されたテキストでも自然に振る舞うように変更
26+
nnoremap j gj
27+
nnoremap k gk
28+
29+
set ignorecase "検索時に大文字小文字を無視
30+
" 検索後にジャンプした際に検索単語を画面中央に持ってく
31+
nnoremap n nzz
32+
nnoremap N Nzz
33+
nnoremap * *zz
34+
nnoremap # #zz
35+
nnoremap g* g*zz
36+
nnoremap g# g#zz
2337
"set cursorline " カーソル行をハイライト
24-
":hi clear CursorLine
25-
":hi CursorLine gui=underline
2638
autocmd ColorScheme * highlight CursorLineNr ctermfg=250
2739
autocmd ColorScheme * highlight Comment ctermbg=0
40+
autocmd ColorScheme * highlight LineNr ctermbg=0
41+
autocmd ColorScheme * highlight Normal ctermbg=none
2842

2943
" Leader キーを設定
3044
let mapleader = ","
@@ -36,7 +50,7 @@ set clipboard+=unnamed
3650
"ヤンクした文字は、システムのクリップボードに入れる
3751
set clipboard+=autoselect
3852
" 挿入モードでCtrl+kを押すとクリップボードの内容を貼り付けられるようにする
39-
imap <C-p> <ESC>"*pa
53+
"imap <C-p> <ESC>"*pa
4054
" ターミナルでマウスを使用できるようにする
4155
set mouse=a
4256
set guioptions+=a
@@ -171,12 +185,12 @@ endif
171185
call neobundle#rc(expand('~/.vim/bundle/'))
172186
NeoBundleFetch 'Shougo/neobundle.vim'
173187

174-
NeoBundle 'Shougo/vimproc', {
175-
\ 'build' : {
176-
\ 'mac' : 'make -f make_mac.mak',
177-
\ 'unix' : 'make -f make_unix.mak',
178-
\ },
179-
\ }
188+
" NeoBundle 'Shougo/vimproc', {
189+
" \ 'build' : {
190+
" \ 'mac' : 'make -f make_mac.mak',
191+
" \ 'unix' : 'make -f make_unix.mak',
192+
" \ },
193+
" \ }
180194

181195
if has("lua")
182196
NeoBundleLazy 'Shougo/neocomplete', { 'autoload' : {
@@ -354,6 +368,7 @@ nmap <silent><Leader>ig <Plug>IndentGuidesToggle
354368
NeoBundle "deton/jasegment.vim"
355369
" unite
356370
NeoBundle "Shougo/unite.vim"
371+
NeoBundle 'Shougo/neomru.vim'
357372
NeoBundle 'ujihisa/unite-colorscheme'
358373
NeoBundle 'h1mesuke/unite-outline'
359374
" 入力モードで開始する
@@ -414,6 +429,18 @@ function! s:unite_my_settings()
414429
imap <buffer> <C-w> <Plug>(unite_delete_backward_path)
415430
endfunction
416431

432+
"------------------------------------
433+
" javascriptライブラリsyntax
434+
"------------------------------------
435+
NeoBundle 'othree/javascript-libraries-syntax.vim'
436+
autocmd BufReadPre *.js let b:javascript_lib_use_angularjs = 1
437+
438+
NeoBundle 'burnettk/vim-angular'
439+
let g:angular_source_directory = 'app'
440+
let g:angular_test_directory = 'jasmine/spec'
441+
let g:angular_filename_convention = 'camelcased'
442+
NeoBundle 'matthewsimo/angular-vim-snippets'
443+
NeoBundle 'claco/jasmine.vim'
417444
"------------------------------------
418445
"" smooth_scroll.vim
419446
"------------------------------------
@@ -657,7 +684,8 @@ NeoBundleLazy 'tsukkee/unite-tag', {
657684
\ 'unite_sources' : ['tag', 'tag/file', 'tag/include']
658685
\ }}
659686

660-
687+
" restart
688+
NeoBundle 'tyru/restart.vim'
661689
" ------------------------------------
662690
" switch.vim
663691
" ------------------------------------
@@ -810,14 +838,18 @@ NeoBundle 'tpope/vim-haml'
810838
" Slim
811839
NeoBundle 'slim-template/vim-slim'
812840
" CSS
813-
NeoBundle 'mattn/zencoding-vim'
841+
NeoBundle 'mattn/emmet-vim'
814842
NeoBundle 'hail2u/vim-css3-syntax'
815843
NeoBundle 'taichouchou2/html5.vim'
816844
" Less
817845
NeoBundle 'groenewege/vim-less'
818846
"scss
819847
NeoBundle 'cakebaker/scss-syntax.vim'
820848

849+
"----------------------------------------
850+
" gitv
851+
"----------------------------------------
852+
NeoBundle 'gregsexton/gitv'
821853

822854
"----------------------------------------
823855
" Clojure
@@ -893,16 +925,19 @@ endfunction
893925
" CSV
894926
NeoBundle 'chrisbra/csv.vim'
895927

896-
"vimshellの設定
897-
if has('mac')
898-
let g:vimproc_dll_path = $VIMRUNTIME . '/autoload/vimproc_mac.so'
899-
elseif has('win32')
900-
let g:vimproc_dll_path = $HOME . '/.vim/bundle/vimproc/autoload/vimproc_win32.dll'
901-
elseif has('win64')
902-
let g:vimproc_dll_path = $HOME . '/.vim/bundle/vimproc/autoload/vimproc_win64.dll'
903-
else
904-
let g:vimproc_dll_path = $HOME . '/.vim/bundle/vimproc/autoload/vimproc_unix.so'
905-
endif
928+
" 整形
929+
NeoBundle 'thinca/vim-prettyprint'
930+
931+
""vimshellの設定
932+
"if has('mac')
933+
" let g:vimproc_dll_path = $VIMRUNTIME . '/autoload/vimproc_mac.so'
934+
"elseif has('win32')
935+
" let g:vimproc_dll_path = $HOME . '/.vim/bundle/vimproc/autoload/vimproc_win32.dll'
936+
"elseif has('win64')
937+
" let g:vimproc_dll_path = $HOME . '/.vim/bundle/vimproc/autoload/vimproc_win64.dll'
938+
"else
939+
" let g:vimproc_dll_path = $HOME . '/.vim/bundle/vimproc/autoload/vimproc_unix.so'
940+
"endif
906941

907942
" RSpecコマンド
908943
nnoremap <silent> ,rs :RunSpec<CR>

0 commit comments

Comments
 (0)