Basic cut and paste gets the job done, but if you're going for speed and efficiency, you'll need a clipboard manger to keep your copy-fu strong. Let's take a closer look at five of the most popular clipboard managers. Image created with Wordle. Earlier this week we asked you to share your favorite clipboard mangers. You responded, demonstrating that just because something is small and usually hidd
exコマンドを呼び出すコマンドを定義する :command! WriteCommand :w test.txt :WriteCommand ":command! AlignCommand :normal gg=G :AlignCommand ファンクションを呼び出すコマンドを定義する :function! SimpleFunction() :echo "SimpleFunction() is called." :endfunction :command! SimpleCommand :call SimpleFunction() :SimpleCommand "# => SimpleFunction() is called. パラメータ数チェックつきのコマンドを定義する :function! SimpleFunction() :echo "SimpleFunction() is called
シェルで,上のディレクトリに行くのがめんどくさくて,cd ../../../../とかしないといけなくて,指を痛める. 上に行くためのupっていうコマンドを作ることにした. その1 up 3ってやると,3つ上に行くのを作った. function up() { i=0 while [ $i -lt $1 ] do cd ../ i=`expr $i + 1` done } 使い方 % pwd /Users/fkd/co/dev/dotfiles % up 3 % pwd /Users/fkd %これは使いにくくて,cd ../../って打つときは,いくつ上に行くか考えながら,../って打ってる.これだと,先に数えておかないといけなくて,難しかった. その2 考えながら入力できるようにしてみた.引数の数だけ見る. function up() { i=0 while [ $i -lt $# ]
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く