{"id":878,"date":"2020-11-20T13:05:13","date_gmt":"2020-11-20T04:05:13","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/?p=878"},"modified":"2020-11-25T12:20:57","modified_gmt":"2020-11-25T03:20:57","slug":"vim-basic","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2020\/11\/20\/vim-basic\/","title":{"rendered":"Vim\u3067\u52b9\u7387\u3088\u304f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u3059\u308b\u305f\u3081\u306b\u3001\u307e\u305a\u77e5\u3063\u3066\u304a\u304f\u3068\u826f\u3044\u64cd\u4f5c\u65b9\u6cd5"},"content":{"rendered":"

\u6982\u8981<\/h2>\n

\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5185\u5c71\u3067\u3059\u3002
\n\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Vim\u3067\u52b9\u7387\u3088\u304f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u3059\u308b\u305f\u3081\u306b\u3001\u307e\u305a\u77e5\u3063\u3066\u304a\u304f\u3068\u826f\u3044\u64cd\u4f5c\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u4ee5\u4e0b\u306e\u66f8\u7c4d\u306e\u7c21\u6613\u7248\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u5b9f\u8df5Vim\u3000\u601d\u8003\u306e\u30b9\u30d4\u30fc\u30c9\u3067\u7de8\u96c6\u3057\u3088\u3046\uff01<\/a><\/p>\n

\u57fa\u672c\u7684\u306aVim\u306e\u64cd\u4f5c\u65b9\u6cd5\u306b\u95a2\u3059\u308b\u3053\u3068\u304c\u5b66\u3079\u308b\u306e\u3067\u3001\u62e1\u5f35\u6a5f\u80fd\u304c\u5165\u3063\u3066\u3044\u306a\u3044Vim\u3084\u4ed6\u30a8\u30c7\u30a3\u30bf\u306eVim\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u969b\u306b\u3082\u5f79\u7acb\u3061\u307e\u3059\u3002\u4f59\u88d5\u304c\u3042\u308c\u3070\u3001\u66f8\u7c4d\u3092\u8aad\u3080\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n

\u30e2\u30fc\u30c9<\/h2>\n

Vim\u3092\u64cd\u4f5c\u3059\u308b\u4e0a\u3067\u3001\u4ee5\u4e0b\u306e3\u3064\u306e\u30e2\u30fc\u30c9\u3092\u7406\u89e3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n

\u30ce\u30fc\u30de\u30eb\u30e2\u30fc\u30c9<\/h3>\n

\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u30e2\u30fc\u30c9\u3067\u3059\u3002\u30ab\u30fc\u30bd\u30eb\u79fb\u52d5\u3084\u30d5\u30a1\u30a4\u30eb\u4fdd\u5b58\u306a\u3069\u306f\u3001\u3053\u306e\u30e2\u30fc\u30c9\u3067\u884c\u3044\u307e\u3059\u3002
\n\u30b3\u30de\u30f3\u30c9\u3092\u99c6\u4f7f\u3059\u308c\u3070\u3001\u30c6\u30ad\u30b9\u30c8\u306e\u7de8\u96c6\u4f5c\u696d\u306f\u30ce\u30fc\u30de\u30eb\u30e2\u30fc\u30c9\u3067\u5b8c\u7d50\u3067\u304d\u307e\u3059\u3002<\/p>\n

\u4ed6\u306e\u30e2\u30fc\u30c9\u304b\u3089\u30ce\u30fc\u30de\u30eb\u30e2\u30fc\u30c9\u306b\u79fb\u308b\u5834\u5408\u306f\u3001ESC<\/code> \u307e\u305f\u306f Control<\/code> + ]<\/code> \u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n

\u633f\u5165\u30e2\u30fc\u30c9<\/h3>\n

\u30c6\u30ad\u30b9\u30c8\u3092\u5165\u529b\u3059\u308b\u30e2\u30fc\u30c9\u3067\u3059\u3002\u4ed6\u306e\u30a8\u30c7\u30a3\u30bf\u3068\u540c\u3058\u3088\u3046\u306a\u52d5\u304d\u3092\u3057\u307e\u3059\u3002<\/p>\n

\u30d3\u30b8\u30e5\u30a2\u30eb\u30e2\u30fc\u30c9<\/h3>\n

\u30c6\u30ad\u30b9\u30c8\u306e\u7bc4\u56f2\u9078\u629e\u3092\u3059\u308b\u30e2\u30fc\u30c9\u3067\u3059\u3002
\n\u30ce\u30fc\u30de\u30eb\u30e2\u30fc\u30c9\u6642\u306b\u3001v<\/code> \u3092\u5165\u529b\u3059\u308b\u3068\u30d3\u30b8\u30e5\u30a2\u30eb\u30e2\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002
\nControl<\/code> + v<\/code> \u3092\u5165\u529b\u3059\u308b\u3068\u77e9\u5f62\u9078\u629e\u306e\u30d3\u30b8\u30e5\u30a2\u30eb\u30e2\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n

\u7bc4\u56f2\u9078\u629e\u3057\u305f\u5f8c\u3001d<\/code> \u3092\u5165\u529b\u3059\u308c\u3070\u524a\u9664\u3001y<\/code>\u3092\u5165\u529b\u3059\u308c\u3070\u30b3\u30d4\u30fc\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n

\u307e\u305a\u306f\u899a\u3048\u308b\u30b3\u30de\u30f3\u30c9<\/h2>\n

\u30ce\u30fc\u30de\u30eb\u30e2\u30fc\u30c9\u3067\u4f7f\u3048\u308b\u30b3\u30de\u30f3\u30c9\u4e00\u89a7<\/h3>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\u30b3\u30de\u30f3\u30c9<\/th>\n\u610f\u5473<\/th>\n<\/tr>\n<\/thead>\n
h<\/code> j<\/code> k<\/code> l<\/code><\/td>\n\u30ab\u30fc\u30bd\u30eb\u79fb\u52d5<\/td>\n<\/tr>\n
:w<\/code><\/td>\n\u30d5\u30a1\u30a4\u30eb\u4fdd\u5b58<\/td>\n<\/tr>\n
:q<\/code><\/td>\n\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u308b<\/td>\n<\/tr>\n
:q!<\/code><\/td>\n\u30d5\u30a1\u30a4\u30eb\u3092\u5f37\u5236\u7684\u306b\u9589\u3058\u308b<\/td>\n<\/tr>\n
dd<\/code><\/td>\n1\u884c\u524a\u9664<\/td>\n<\/tr>\n
yy<\/code><\/td>\n1\u884c\u30b3\u30d4\u30fc<\/td>\n<\/tr>\n
kk<\/code><\/td>\n1\u884c\u30b3\u30d4\u30fc\u3057\u3066\u524a\u9664<\/td>\n<\/tr>\n
p<\/code><\/td>\n\u30da\u30fc\u30b9\u30c8<\/td>\n<\/tr>\n
w<\/code><\/td>\n1\u5358\u8a9e\u305a\u3064\u79fb\u52d5<\/td>\n<\/tr>\n
$<\/code><\/td>\n\u6587\u672b\u306b\u79fb\u52d5<\/td>\n<\/tr>\n
^<\/code><\/td>\n\u884c\u982d\u306b\u79fb\u52d5<\/td>\n<\/tr>\n
:<\/code> + {\u6570\u5b57}<\/code> + Enter<\/code><\/td>\n{\u6570\u5b57} \u306e\u884c\u307e\u3067\u79fb\u52d5<\/td>\n<\/tr>\n
\/<\/code> + {\u6587\u5b57\u5217}<\/code> + Enter<\/code><\/td>\n{\u6587\u5b57\u5217}\u3067\u30d5\u30a1\u30a4\u30eb\u5185\u691c\u7d22\u3002
n<\/code> \u3068 N<\/code> \u3067\u8a72\u5f53\u7b87\u6240\u306b\u79fb\u52d5<\/td>\n<\/tr>\n
<\/td>\n<\/td>\n<\/tr>\n
i<\/code><\/td>\n\u30ab\u30fc\u30bd\u30eb\u306e\u4f4d\u7f6e\u3067\u633f\u5165\u30e2\u30fc\u30c9\u306b\u79fb\u884c<\/td>\n<\/tr>\n
o<\/code><\/td>\n\u30ab\u30fc\u30bd\u30eb\u306e1\u3064\u4e0b\u306b1\u884c\u8ffd\u52a0\u3057\u3066\u3001\u633f\u5165\u30e2\u30fc\u30c9\u306b\u79fb\u884c<\/td>\n<\/tr>\n
Shift<\/code> + o<\/code><\/td>\n\u30ab\u30fc\u30bd\u30eb\u306e1\u3064\u4e0a\u306b1\u884c\u8ffd\u52a0\u3057\u3066\u3001\u633f\u5165\u30e2\u30fc\u30c9\u306b\u79fb\u884c<\/td>\n<\/tr>\n
v<\/code><\/td>\n\u30d3\u30b8\u30e5\u30a2\u30eb\u30e2\u30fc\u30c9\u306b\u79fb\u884c<\/td>\n<\/tr>\n
Shift<\/code> + v<\/code><\/td>\n\u30d3\u30b8\u30e5\u30a2\u30eb\u30e2\u30fc\u30c9(\u77e9\u5f62\u9078\u629e)\u306b\u79fb\u884c<\/td>\n<\/tr>\n
Shift<\/code> + g<\/code><\/td>\n\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u5f8c\u306e\u884c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u7d44\u307f\u5408\u308f\u305b\u30b3\u30de\u30f3\u30c9<\/h3>\n\n\n\n\n\n\n\n\n\n
\u30b3\u30de\u30f3\u30c9<\/th>\n\u610f\u5473<\/th>\n<\/tr>\n<\/thead>\n
:wq<\/code><\/td>\n\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u308b<\/td>\n<\/tr>\n
{\u6570\u5b57}<\/code> + dd<\/code><\/td>\n{\u6570\u5b57}\u884c\u3060\u3051\u524a\u9664<\/td>\n<\/tr>\n
{\u6570\u5b57}<\/code> + yy<\/code><\/td>\n{\u6570\u5b57}\u884c\u3060\u3051\u30b3\u30d4\u30fc<\/td>\n<\/tr>\n
dw<\/code><\/td>\n1\u5358\u8a9e(word)\u524a\u9664<\/td>\n<\/tr>\n
cw<\/code><\/td>\n1\u5358\u8a9e(word)\u524a\u9664\u3057\u3066\u3001\u633f\u5165\u30e2\u30fc\u30c9\u306b\u79fb\u884c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u4e0a\u8a18\u306b\u898b\u3089\u308c\u308b\u3088\u3046\u306b\u3001\u30b3\u30de\u30f3\u30c9\u306f\u898f\u5247\u6027\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u308c\u3092\u624b\u304c\u304b\u308a\u306b\u899a\u3048\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3059\u3002<\/p>\n

\u30de\u30a4\u30af\u30ed\u30de\u30af\u30ed<\/h3>\n\n\n\n\n\n
\u30b3\u30de\u30f3\u30c9<\/th>\n\u610f\u5473<\/th>\n<\/tr>\n<\/thead>\n
.<\/code><\/td>\n\u4e00\u3064\u524d\u306e\u64cd\u4f5c\u3092\u5b9f\u884c(\u30de\u30a4\u30af\u30ed\u30de\u30af\u30ed)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u4f8b\u3048\u3070\u3001 \u4e00\u884c\u524a\u9664\u30b3\u30de\u30f3\u30c9dd<\/code>\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u306b\u3001\u30ab\u30fc\u30bd\u30eb\u79fb\u52d5\u3057\u3066\u3001.<\/code> \u3092\u5165\u529b\u3059\u308b\u3068\u3001\u518d\u3073\u4e00\u884c\u524a\u9664\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n

\u30bf\u30a4\u30d7\u6570\u304c\u6e1b\u3089\u305b\u308b\u306e\u3067\u3001\u30de\u30a4\u30af\u30ed\u30de\u30af\u30ed\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n

Vim\u64cd\u4f5c\u306b\u6163\u308c\u308b\u306b\u306f<\/h2>\n

\u64cd\u4f5c\u65b9\u6cd5\u306b\u95a2\u3057\u3066\u306f\u3001\u77e5\u8b58\u3092\u5b66\u3076\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u5b9f\u969b\u306b\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002
\n\u5b9f\u969b\u306b\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u306b\u306f\u3001\u5b9f\u969b\u306b\u5b66\u3093\u3060\u64cd\u4f5c\u65b9\u6cd5\u3092\u4f7f\u3063\u3066\u898b\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002
\n\u6163\u308c\u306a\u3044\u3046\u3061\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u52b9\u7387\u304c\u843d\u3061\u3066\u3057\u307e\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002
\n\u3057\u304b\u3057\u3001\u4e00\u6642\u7684\u306b\u52b9\u7387\u304c\u843d\u3061\u308b\u3053\u3068\u306f\u899a\u609f\u3057\u3066\u3001\u666e\u6bb5\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u884c\u3046\u6642\u306bVim\u30ad\u30fc\u30d0\u30a4\u30f3\u30c9\u3092\u7d76\u5bfe\u306b\u4f7f\u3046\u3088\u3046\u306b\u3057\u3066\u307f\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002
\n\u3064\u3063\u304b\u3048\u305f\u308a\u8abf\u3079\u305f\u308a\u3057\u306a\u304c\u3089\u306e\u64cd\u4f5c\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u7e70\u308a\u8fd4\u3057\u3066\u3044\u304f\u3046\u3061\u306b\u81ea\u7136\u3068\u624b\u306b\u99b4\u67d3\u3080\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n

\u30b2\u30fc\u30e0\u611f\u899a\u3067\u5b66\u3073\u305f\u3044\u5834\u5408\u306f\u3001VimGolf \u3068\u3044\u3046\u30b5\u30a4\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n

https:\/\/www.vimgolf.com\/<\/a><\/p>\n

\u300c\u304a\u984c\u306b\u306a\u3063\u3066\u3044\u308b\u7de8\u96c6\u4f5c\u696d\u3092\u3001\u3069\u308c\u3060\u3051\u5c11\u306a\u3044\u30bf\u30a4\u30d7\u6570\u3067\u5b8c\u4e86\u3067\u304d\u308b\u304b\u300d\u3092\u7af6\u3046\u30b2\u30fc\u30e0\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u4ed6\u306e\u4eba\u306e\u64cd\u4f5c\u65b9\u6cd5\u3092\u53c2\u8003\u306b\u3067\u304d\u308b\u306e\u3067\u52c9\u5f37\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6982\u8981 \u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5185\u5c71\u3067\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Vim\u3067\u52b9\u7387\u3088\u304f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u3059\u308b\u305f\u3081\u306b\u3001\u307e\u305a\u77e5\u3063\u3066\u304a\u304f\u3068\u826f\u3044\u64cd\u4f5c\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002 \u4ee5\u4e0b\u306e\u66f8\u7c4d\u306e\u7c21\u6613\u7248\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u5b9f\u8df5Vim\u3000\u601d\u8003\u306e\u30b9\u30d4\u30fc\u30c9\u3067\u7de8\u96c6\u3057\u3088\u3046\uff01 \u57fa\u672c\u7684\u306aVim\u306e\u64cd\u4f5c\u65b9\u6cd5\u306b\u95a2\u3059\u308b\u3053\u3068\u304c\u5b66\u3079\u308b\u306e\u3067\u3001\u62e1\u5f35\u6a5f\u80fd\u304c\u5165\u3063\u3066\u3044\u306a\u3044Vim\u3084\u4ed6\u30a8\u30c7\u30a3\u30bf\u306eVim\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u4f7f\u3046\u969b\u306b\u3082\u5f79\u7acb\u3061\u307e\u3059\u3002\u4f59\u88d5\u304c\u3042\u308c\u3070\u3001\u66f8\u7c4d\u3092\u8aad\u3080\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002 \u30e2\u30fc […]<\/p>\n","protected":false},"author":5,"featured_media":879,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/878"}],"collection":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/comments?post=878"}],"version-history":[{"count":1,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/878\/revisions"}],"predecessor-version":[{"id":880,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/878\/revisions\/880"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media\/879"}],"wp:attachment":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media?parent=878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/categories?post=878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/tags?post=878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}