Skip to content

Instantly share code, notes, and snippets.

@sifue
Created March 20, 2012 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sifue/2132992 to your computer and use it in GitHub Desktop.
Save sifue/2132992 to your computer and use it in GitHub Desktop.
Eclipse使いがVimで使いたいAlt + j or k で行移動を設定する方法 ref: http://qiita.com/items/a93451fc830e918f2795
" Command + j or k で行を移動する
nnoremap <D-j> :m+<CR>==
nnoremap <D-k> :m-2<CR>==
inoremap <D-j> <Esc>:m+<CR>==gi
inoremap <D-k> <Esc>:m-2<CR>==gi
vnoremap <D-j> :m'>+<CR>gv=gv
vnoremap <D-k> :m-2<CR>gv=gv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment