= GNU nano = 世の中ではemacs派やviまたはvim派などのエディタ論争が絶えないが、ここで新勢力を立ち上げようと思う。 それは[[http://www.nano-editor.org/|nano]]である。 == 特徴 == とにかく軽い。emacs > vim > nano という関係。 == よく使うキーバインド == 注意:後述する設定でキーバインドが大きく変わっています。ここにはデフォルトの設定を示します。 {{{#!format text ^G help ^K cut   #1行カットする。デフォルトでは改行コードを含む M-^ copy #行のコピー ^U uncut #つまりペースト ^^ mark set ^R read file #ファイルを読み込む ^O writeout #保存 ^X Exit #終了 }}} == .nanorc == /usr/share/doc/nano/examples/nanorc.sample.gzにサンプルがある。何故か圧縮されている。 手元のubuntuではここにサンプルがあったが、FreeBSDでは/usr/local/share/examples/nano/nanorc.sampleにあります。<
> .nanorc設定例 {{{#!format text ## Sample initialization file for GNU nano. ## ## Please note that you must have configured nano with --enable-nanorc ## for this file to be read! Also note that this file should not be in ## DOS or Mac format, and that characters specially interpreted by the ## shell should not be escaped here. ## ## To make sure a value is disabled, use "unset