{"id":698,"date":"2012-12-02T02:59:01","date_gmt":"2012-12-01T17:59:01","guid":{"rendered":"http:\/\/appsweets.net\/blog\/?p=698"},"modified":"2012-12-02T16:42:42","modified_gmt":"2012-12-02T07:42:42","slug":"brushing-up-input-mode-3","status":"publish","type":"post","link":"https:\/\/appsweets.net\/blog\/2012\/12\/02\/brushing-up-input-mode-3\/","title":{"rendered":"brushing up, input mode #3"},"content":{"rendered":"<div class=\"db9cc8cdb64025d13c1cc9dad0a0e262\" data-index=\"1\" style=\"float: left; margin: 16px 16px 16px 0;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-5825700137064158\";\r\n\/* 250sq, appsweets-blog *\/\r\ngoogle_ad_slot = \"4837931762\";\r\ngoogle_ad_width = 250;\r\ngoogle_ad_height = 250;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<p>input \u30e2\u30fc\u30c9\u306e\u52d5\u4f5c\u3068\u300c.\u300d\u30ec\u30b8\u30b9\u30bf\u3001\u300c.\u300d\u30b3\u30de\u30f3\u30c9\u3001\u304a\u3088\u3073 undo \u30ed\u30b0\u3068\u306e\u6574\u5408\u6027\u3092\u3068\u308b\u4f5c\u696d\u3002\u3060\u3044\u3076\u826f\u304f\u306a\u3063\u3066\u304d\u305f\u3002<\/p>\n<p>\u6b21\u306b\u3001^W \u3042\u305f\u308a\u3092\u7247\u4ed8\u3051\u3088\u3046\u3002\u3053\u308c\u306f input \u30e2\u30fc\u30c9\u4e2d\u3001\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u306e\u76f4\u524d\u306e\u5358\u8a9e\u3092\u524a\u9664\u3059\u308b\u3002<\/p>\n<ul>\n<li>input \u30e2\u30fc\u30c9\u306b\u5165\u3063\u305f\u5165\u529b\u958b\u59cb\u884c\u30fb\u6841\u4f4d\u7f6e\u307e\u3067\u306f\u3001undo \u30ed\u30b0\u3067\u306f\u306a\u304f\u3066\u73fe\u5728\u306e\u5165\u529b\u6587\u5b57\u5217\u3092\u64cd\u4f5c\u3059\u308b\uff08undo \u30ed\u30b0\u306f backspace\/delete\/escape \u306a\u3069\u306e\u30ad\u30fc\u304c\u62bc\u3055\u308c\u305f\u3068\u304d\u306b\u751f\u6210\u3055\u308c\u308b\u306e\u3067\uff09\u3002\u5165\u529b\u958b\u59cb\u4f4d\u7f6e\u3092\u3055\u3089\u306b\u3055\u304b\u306e\u307c\u308b\u5834\u5408\u306f\u3001undo \u30ed\u30b0\u3092\u751f\u6210\u3059\u308b\u3002\u5358\u8a9e\u306e\u4e21\u7aef\u304c\u5165\u529b\u958b\u59cb\u4f4d\u7f6e\u306e\u524d\u3001\u5f8c\u306b\u4e98\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3069\u3046\u3059\u308b\u304b\uff1f<\/li>\n<li>\u3061\u306a\u307f\u306b\u3001^W \u304c\u5165\u529b\u958b\u59cb\u4f4d\u7f6e\u3092\u3055\u304b\u306e\u307c\u308c\u308b\u306e\u306f\uff08[cci]:set bs=2[\/cci] \u3057\u305f\u5834\u5408\u306e\uff09vim \u306e\u6a5f\u80fd\u3067\u3042\u3063\u3066 vi \u3084 nvi \u3067\u306f\u5165\u529b\u958b\u59cb\u4f4d\u7f6e\u3088\u308a\u524d\u306b\u306f\u623b\u308c\u306a\u3044\u3002wasavi \u306f\u623b\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u3002\u3064\u307e\u308a vim \u4e92\u63db\u306b\u3059\u308b<\/li>\n<li>^W \u306e\u52d5\u304d\u306f\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u3067 db \u3057\u305f\u5834\u5408\u306b\u4f3c\u3066\u308b\u306e\u3060\u304c\u3001\u5fae\u5999\u306b\u9055\u3046\u3002\u305f\u3068\u3048\u3070 ^W \u306f \u5404\u884c\u306e 1 \u6841\u76ee\u3067\u5fc5\u305a\u6b62\u307e\u308b\u3068\u304b\u3002\u3053\u308c\u306f\u306a\u3093\u3067\uff1f<\/li>\n<\/ul>\n<p>\u3053\u306e\u8fba\u306b\u7559\u610f\u3057\u3064\u3064 vim \u306e\u30bd\u30fc\u30b9\u3092\u773a\u3081\u3066\u307f\u308b\u3002<\/p>\n<p>\u3000\uff0a\u3000\uff0a\u3000\uff0a<\/p>\n<p>\u305f\u3068\u3048\u3070 [cci]ifoo^[[\/cci] \u3068\u6253\u3061\u3001\u7d9a\u3051\u3066 [cci]abar[\/cci] \u5de6\u77e2\u5370 [cci]^W^[[\/cci] \u3068\u6253\u3063\u305f\u3068\u304d\u3002\u3064\u307e\u308a<br \/>\n<code><br \/>\nfoobar<br \/>\n   ^ ^\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e<br \/>\n   |<br \/>\n   +\u633f\u5165\u958b\u59cb\u4f4d\u7f6e<br \/>\n<\/code>\u3068\u3044\u3046\u95a2\u4fc2\u3002\u305f\u3060\u3057\u3001^W \u3092\u6253\u3064\u524d\u306b\u5de6\u77e2\u5370\u30ad\u30fc\u3092\u6253\u3063\u3066\u3044\u308b\u306e\u3067\u305d\u3053\u3067\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u306f\u66f4\u65b0\u3055\u308c\uff08input \u30e2\u30fc\u30c9\u4e2d\u306e\u77e2\u5370\u30ad\u30fc\u306f\u3001\u3044\u3046\u306a\u308c\u3070 [cci]^[i[\/cci] \u3068\u6253\u3064\u3088\u3046\u306a\u3082\u306e\u3067\u3042\u308b\u3002\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u306f\u305d\u306e\u6642\u70b9\u306e\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u306b\u66f4\u65b0\u3055\u308c\u308b\uff09\u3001<br \/>\n<code><br \/>\nfoobar<br \/>\n     ^\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u3001\u633f\u5165\u958b\u59cb\u4f4d\u7f6e<br \/>\n<\/code>\u3068\u3044\u3046\u95a2\u4fc2\u306b\u306a\u308b\u3002<\/p>\n<ul>\n<li>\u5165\u529b\u6587\u5b57\u5217: &#8220;^W&#8221;<\/li>\n<li>\u5165\u529b\u30b3\u30de\u30f3\u30c9: &#8220;a^W^[&#8220;<\/li>\n<li>undo \u30ed\u30b0:\n<ol>\n<li>\u6841 0 \u3078 &#8216;foo&#8217; \u3092\u633f\u5165<\/li>\n<li>\u6841 2 \u3078 &#8216;bar&#8217; \u3092\u633f\u5165<\/li>\n<li>\u6841 0 \u304b\u3089 &#8216;fooba&#8217; \u3092\u524a\u9664<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p>\u3068\u306a\u308b\u3002\u3064\u307e\u308a\u3053\u306e\u30b1\u30fc\u30b9\u3067\u306f\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u3068\u524a\u9664\u3055\u308c\u308b\u5358\u8a9e\u306e\u4f4d\u7f6e\u95a2\u4fc2\u306f\u3001\u5358\u8a9e\u304c\u5b8c\u5168\u306b\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u306e\u524d\u65b9\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002\u3059\u306a\u308f\u3061\u3001undo \u30ed\u30b0\u3092\u751f\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<p>\u4e00\u65b9\u3001[cci]ifoo^[[\/cci] \u3068\u6253\u3061\u3001\u7d9a\u3051\u3066 [cci]abar^W^[[\/cci] \u3068\u6253\u3063\u305f\u5834\u5408\u306f\u3001\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u3068\u306e\u95a2\u4fc2\u304c\u5909\u308f\u308b\u3002<\/p>\n<ul>\n<li>\u5165\u529b\u6587\u5b57\u5217: &#8220;bar^W&#8221;<\/li>\n<li>\u5165\u529b\u30b3\u30de\u30f3\u30c9: &#8220;abar^W^[&#8220;<\/li>\n<li>undo \u30ed\u30b0:\n<ol>\n<li>\u6841 0 \u3078 &#8216;foo&#8217; \u3092\u633f\u5165<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p>vim \u3067\u306f input \u30e2\u30fc\u30c9\u4e2d\u306e\u5358\u8a9e\u524a\u9664\u3092\u884c\u3046\u305f\u3081\u306b\u3001\u524a\u9664\u3055\u308c\u308b\u9818\u57df\u306e\u5de6\u7aef\u3092\u8d70\u67fb\u3059\u308b\u30eb\u30fc\u30d7\u3092\u884c\u3046\u306e\u3060\u304c\u3001\u3053\u306e\u30eb\u30fc\u30d7\u306f\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u3067\u5fc5\u305a\u629c\u3051\u308b\u3088\u3046\u3060\u3002\u3064\u307e\u308a\u3001\u524a\u9664\u9818\u57df\u304c\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u3092\u307e\u305f\u3050\u3053\u3068\u306f\u306a\u3044\u3002\u5358\u306b\u9818\u57df\u5168\u4f53\u304c\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u3088\u308a\u524d\u65b9\u304b\u5f8c\u65b9\u304b\u306e 2 \u30d1\u30bf\u30fc\u30f3\u3067\u8003\u3048\u308c\u3070\u3044\u3044\u3002\u3053\u306e\u30b1\u30fc\u30b9\u3067\u306f\u524a\u9664\u9818\u57df\u306f\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u3088\u308a\u5f8c\u65b9\u3067\u3042\u308a\u3001\u73fe\u5728\u306e\u633f\u5165\u6587\u5b57\u5217\u3092\u64cd\u4f5c\u3060\u3051\u3067 undo \u30ed\u30b0\u306f\u751f\u6210\u3057\u306a\u3044\u3002<\/p>\n<p>\u3053\u306e\u4ed5\u69d8\u304c\u59a5\u5f53\u306a\u306e\u304b\u3069\u3046\u304b\u306f\u3001\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3002\u3053\u306e\u4ed5\u69d8\u3060\u3068\u9014\u4e2d\u3067\u6253\u3063\u305f &#8220;bar&#8221; \u306f undo \u30ed\u30b0\u304b\u3089\u5b8c\u5168\u306b\u5931\u308f\u308c\u308b\u3002\u3082\u3063\u3068\u3060\u3060\u9577\u3044\u5358\u8a9e\u3060\u3063\u305f\u3089\u518d\u5229\u7528\u3057\u305f\u3044\u5834\u5408\u3082\u3042\u308b\u306e\u3067\u306f\u306a\u3044\u3060\u308d\u3046\u304b\uff1f\u3000\u3042\u308b\u3044\u306f\u3001[cci]:set bs=2[\/cci] \u306a vim \u3067 input \u30e2\u30fc\u30c9\u4e2d\u306b\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u3088\u308a\u524d\u306b\u3082\u81ea\u7531\u306b\u30ab\u30fc\u30bd\u30eb\u3092\u518d\u914d\u7f6e\u3067\u304d\u308b\u3068\u3044\u3046\u306e\u306f\u3001\u3064\u307e\u308a\u30e6\u30fc\u30b6\u306b\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u3092\u610f\u8b58\u3055\u305b\u306a\u3044\u305f\u3081\u306e\u3082\u306e\u3067\u3042\u308b\u306f\u305a\u3060\u304c\u3001\u3057\u304b\u3057\u5358\u8a9e\u524a\u9664\u6642\u306b\u3064\u3044\u3066\u306f\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u3092\u610f\u8b58\u3055\u305b\u308b\u3053\u3068\u3092\u5f37\u3044\u308b\u306e\u306f\u5909\u306a\u8a71\u306a\u306e\u3067\u306f\u306a\u3044\u304b\uff1f<\/p>\n<p>^W \u304c\u62bc\u3055\u308c\u305f\u3068\u304d\u306b\u5fc5\u8981\u306a\u3089\u305d\u3053\u307e\u3067\u306b\u751f\u6210\u3055\u308c\u305f\u633f\u5165\u6587\u5b57\u5217\u304b\u3089 undo \u30ed\u30b0\u3092\u751f\u6210\u3057\u3001\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u3092\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u306b\u66f4\u65b0\u3059\u308c\u3070\u3001\u524a\u9664\u51e6\u7406\u306f\u5e38\u306b undo \u30ed\u30b0\u3092\u751f\u6210\u3059\u308b backspace \u3067\u307e\u304b\u306a\u3046\u3053\u3068\u3082\u3067\u304d\u308b\u3002\u3069\u3061\u3089\u304c\u3044\u3044\u3060\u308d\u3046\u304b\u60a9\u3080\u3068\u3053\u308d\u3060\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u5358\u7d14\u5316\u3057\u305f\u51e6\u7406\u306f ^U \u306b\u306f\u9069\u7528\u3067\u304d\u306a\u3044\u306e\u3067\uff08^U \u306f\u300c\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u304b\u3089\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u307e\u3067\u306e\u5165\u529b\u6587\u5b57\u5217\u3092\u53d6\u308a\u6d88\u3059\u300d\u3002\u6697\u9ed9\u7684\u306b\u633f\u5165\u958b\u59cb\u4f4d\u7f6e\u3092\u53c2\u7167\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u3044\uff09\u3001vim \u4e92\u63db\u306e\u51e6\u7406\u304c\u5b8c\u5168\u306b\u4e0d\u8981\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u3044\u3002<\/p>\n<p>vim \u3067\u306f\u3001\u3053\u306e\u3078\u3093\u306f edit.c \u3067\u3084\u3063\u3066\u3044\u308b\u3002input \u30e2\u30fc\u30c9\u4e2d\u306e backspace \u51e6\u7406\u306f ins_bs() \u304c\u62c5\u5f53\u3057\u3066\u3044\u308b\u3002\u3053\u306e\u6a5f\u80fd\u306f\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u3067 db \u3057\u305f\u5834\u5408\u3068\u78ba\u304b\u306b\u4f3c\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u51e6\u7406\u306f ins_bs() \u3067\u5b8c\u7d50\u3057\u3066\u3044\u308b\u3002<\/p>\n<div class=\"db9cc8cdb64025d13c1cc9dad0a0e262\" data-index=\"1\" style=\"float: left; margin: 16px 16px 16px 0;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-5825700137064158\";\r\n\/* 250sq, appsweets-blog *\/\r\ngoogle_ad_slot = \"4837931762\";\r\ngoogle_ad_width = 250;\r\ngoogle_ad_height = 250;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>input \u30e2\u30fc\u30c9\u306e\u52d5\u4f5c\u3068\u300c.\u300d\u30ec\u30b8\u30b9\u30bf\u3001\u300c.\u300d\u30b3\u30de\u30f3\u30c9\u3001\u304a\u3088\u3073 undo \u30ed\u30b0\u3068\u306e\u6574\u5408\u6027\u3092\u3068\u308b\u4f5c\u696d\u3002\u3060\u3044\u3076\u826f\u304f\u306a\u3063\u3066\u304d\u305f\u3002 \u6b21\u306b\u3001^W \u3042\u305f\u308a\u3092\u7247\u4ed8\u3051\u3088\u3046\u3002\u3053\u308c\u306f input \u30e2\u30fc\u30c9\u4e2d\u3001\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u306e\u76f4\u524d\u306e\u5358\u8a9e\u3092\u524a\u9664\u3059\u308b\u3002 input \u30e2\u30fc\u30c9\u306b\u5165\u3063\u305f\u5165\u529b\u958b\u59cb\u884c\u30fb\u6841\u4f4d\u7f6e\u307e\u3067\u306f\u3001undo \u30ed\u30b0\u3067\u306f\u306a\u304f\u3066\u73fe\u5728\u306e\u5165\u529b\u6587\u5b57\u5217\u3092\u64cd\u4f5c\u3059\u308b\uff08undo \u30ed\u30b0\u306f backspace\/delete\/escape \u306a\u3069\u306e\u30ad\u30fc\u304c\u62bc\u3055\u308c\u305f\u3068\u304d\u306b\u751f\u6210\u3055\u308c\u308b\u306e\u3067\uff09\u3002\u5165\u529b\u958b\u59cb\u4f4d\u7f6e\u3092\u3055\u3089\u306b\u3055\u304b\u306e\u307c\u308b\u5834\u5408\u306f\u3001undo \u30ed\u30b0\u3092\u751f\u6210\u3059\u308b\u3002\u5358\u8a9e\u306e\u4e21\u7aef\u304c\u5165\u529b\u958b\u59cb\u4f4d\u7f6e\u306e\u524d\u3001\u5f8c\u306b\u4e98\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3069\u3046\u3059\u308b\u304b\uff1f \u3061\u306a\u307f\u306b\u3001^W \u304c\u5165\u529b\u958b\u59cb\u4f4d\u7f6e\u3092\u3055\u304b\u306e\u307c\u308c\u308b\u306e\u306f\uff08[cci]:set bs=2[\/cci] \u3057\u305f\u5834\u5408\u306e\uff09vim \u306e\u6a5f\u80fd\u3067\u3042\u3063\u3066 vi \u3084 nvi \u3067\u306f\u5165\u529b\u958b\u59cb\u4f4d\u7f6e\u3088\u308a\u524d\u306b\u306f\u623b\u308c\u306a\u3044\u3002wasavi \u306f\u623b\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u3002\u3064\u307e\u308a vim \u4e92\u63db\u306b\u3059\u308b ^W \u306e\u52d5\u304d\u306f\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u3067 db \u3057\u305f\u5834\u5408\u306b\u4f3c\u3066\u308b\u306e\u3060\u304c\u3001\u5fae\u5999\u306b\u9055\u3046\u3002\u305f\u3068\u3048\u3070 ^W \u306f \u5404\u884c\u306e 1 \u6841\u76ee\u3067\u5fc5\u305a\u6b62\u307e\u308b\u3068\u304b\u3002\u3053\u308c\u306f\u306a\u3093\u3067\uff1f \u3053\u306e\u8fba\u306b\u7559\u610f\u3057\u3064\u3064 vim \u306e\u30bd\u30fc\u30b9\u3092\u773a\u3081\u3066\u307f\u308b\u3002 \u3000\uff0a\u3000\uff0a\u3000\uff0a &hellip; <a href=\"https:\/\/appsweets.net\/blog\/2012\/12\/02\/brushing-up-input-mode-3\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5,3,4],"class_list":["post-698","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-javascript","tag-vi","tag-wasavi"],"_links":{"self":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/comments?post=698"}],"version-history":[{"count":4,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/698\/revisions"}],"predecessor-version":[{"id":702,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/698\/revisions\/702"}],"wp:attachment":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/media?parent=698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/categories?post=698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/tags?post=698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}