Skip to content

Instantly share code, notes, and snippets.

@hachibeeDI
Last active August 29, 2015 14:01
Show Gist options
  • Save hachibeeDI/a00ee937786f11b91aa1 to your computer and use it in GitHub Desktop.
Save hachibeeDI/a00ee937786f11b91aa1 to your computer and use it in GitHub Desktop.

Vimの会

The power tool for everyone.

vim

はじめの.vimrc

nnoremap <Up> :<C-u>echohl WarningMsg \| echo "Use [k]" \| echohl None<CR>
inoremap <Up> <ESC>:<C-u>echohl WarningMsg \| echo "Use [ESC][k]" \| echohl None<CR>
nnoremap <Down> :<C-u>echohl WarningMsg \| echo "Use [j]" \| echohl None<CR>
inoremap <Down> <ESC>:<C-u>echohl WarningMsg \| echo "Use [ESC][j]" \| echohl None<CR>
nnoremap <Left> :<C-u>echohl WarningMsg \| echo "Use [l]" \| echohl None<CR>
inoremap <Left> <ESC>:<C-u>echohl WarningMsg \| echo "Use [ESC][l]" \| echohl None<CR>
nnoremap <Right> :<C-u>echohl WarningMsg \| echo "Use [h]" \| echohl None<CR>
inoremap <Right> <ESC>:<C-u>echohl WarningMsg \| echo "Use [ESC][h]" \| echohl None<CR>

nnoremap <BS> :<C-u>echohl WarningMsg \| echo "Use [ctrl-h]" \| echohl None<CR>
inoremap <BS> <ESC>:<C-u>echohl WarningMsg \| echo "Use [ctrl-h]" \| echohl None<CR>
nnoremap <Del> :<C-u>echohl WarningMsg \| echo "Use [ctrl-d]" \| echohl None<CR>
inoremap <Del> <ESC>:<C-u>echohl WarningMsg \| echo "Use [ctrl-d]" \| echohl None<CR>

矢印キーが許されるのは小学生まで

ying

高みへのぼるための第一歩

心構え

  1. 特定の エディタ/IDE にこだわる必要はない

  2. 効率を落とすような不便を放置しない

  3. 使うなら最低限は使いこなす

* 大抵の環境でEmacsのカーソル移動は使えるので覚える。3分で覚えて一生使う。

基本操作の解説

$ vimtutor

以上です。

実演

中級者による実演タイムです。

提供: http://glide.so/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment