VimScript
#vim #プログラミング言語
チートシート
alternate-file
現在のウィンドウで最後に編集されたファイル
https://stackoverflow.com/questions/5182852/in-vim-what-is-the-alternate-file
tips
Windowsかどうか判定する
has('win32') || has('win64')
現在開いているファイルを評価する
:so %
http://nanasi.jp/articles/code/coding/reload.html
パスを追加
code:viml
let $PATH = '/path/to/bin' . ':' . $PATH
大文字・小文字を区別して比較
a ==# b
cpoptions
code:vim
let s:save_cpo = &cpo
set cpo&vim
...
let &cpo = s:save_cpo
unles s:save_cpo
プラグイン
vui
Text-based UI framework for Vim
webapi-vim