Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions vim/plugin/keyMap.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
"keymap settings
inoremap jk <Esc>

nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;

nnoremap <silent><C-m> :call Setnumber()<CR>
nnoremap O :<C-u>call append(expand('.'), '')<Cr>j

noremap y y:wv<CR>
noremap p :rv!<CR>p

nnoremap <silent><C-p> 0v$hyo<Esc>p

nnoremap s <Nop>
nnoremap sj <C-w>j
nnoremap sk <C-w>k
nnoremap sl <C-w>l
nnoremap sh <C-w>h
nnoremap sJ <C-w>J
nnoremap sK <C-w>K
nnoremap sL <C-w>L
nnoremap sH <C-w>H
nnoremap sn gt
nnoremap sp gT
nnoremap sr <C-w>r
nnoremap s= <C-w>=
nnoremap sw <C-w>w
nnoremap so <C-w>_<C-w>|
nnoremap sO <C-w>=
nnoremap sN :<C-u>bn<CR>
nnoremap sP :<C-u>bp<CR>
nnoremap st :<C-u>tabnew<CR>
nnoremap sT :<C-u>Unite tab<CR>
nnoremap ss :<C-u>sp<CR>
nnoremap sv :<C-u>vs<CR>
nnoremap sq :<C-u>q<CR>
nnoremap sQ :<C-u>bd<CR>
nnoremap sb :<C-u>Unite buffer_tab -buffer-name=file<CR>
nnoremap sB :<C-u>Unite buffer -buffer-name=file<CR>

function Setnumber()
if &number
setlocal nonumber
else
setlocal number
endif
endfunction

" �����줬���̤ο���������褦�ˤ���
nmap n nzz
nmap N Nzz
nmap * *zz
nmap # #zz
nmap g* g*zz
nmap g# g#zz

"" EscϢ�Ǥǥϥ��饤�Ȥ�ä�
nmap <Esc><Esc> :nohlsearch<CR><Esc>

8 changes: 5 additions & 3 deletions vimrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
if &diff
set diffopt-=internal
set diffopt+=vertical
endif

set encoding=utf-8

" Leader
Expand Down Expand Up @@ -172,9 +177,6 @@ set spellfile=$HOME/.vim-spell-en.utf-8.add
" Autocomplete with dictionary words when spell check is on
set complete+=kspell

" Always use vertical diffs
set diffopt+=vertical

" Local config
if filereadable($HOME . "/.vimrc.local")
source ~/.vimrc.local
Expand Down
3 changes: 3 additions & 0 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ _load_settings "$HOME/.zsh/configs"

# aliases
[[ -f ~/.aliases ]] && source ~/.aliases

# Load local PATH configuration (not version controlled)
[[ -f ~/.zshrc.paths ]] && source ~/.zshrc.paths