{"id":15294,"date":"2024-05-20T13:20:05","date_gmt":"2024-05-20T04:20:05","guid":{"rendered":"https:\/\/www.secuavail.com\/kb\/?p=15294"},"modified":"2024-05-20T13:24:54","modified_gmt":"2024-05-20T04:24:54","slug":"vi-vim-basic-command","status":"publish","type":"post","link":"https:\/\/www.secuavail.com\/kb\/windows-linux\/vi-vim-basic-command\/","title":{"rendered":"vi\/vim\u306e\u4f7f\u3044\u65b9\u3068\u57fa\u672c\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066"},"content":{"rendered":"<p>\u5f53\u8a18\u4e8b\u3067\u306f\u3001vi\u53ca\u3073vim\u306e\u4f7f\u3044\u65b9\u3068\u57fa\u672c\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.secuavail.com\/kb\/windows-linux\/vi-vim-basic-command\/#Linux%E3%81%AE%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3\" >Linux\u306e\u30d0\u30fc\u30b8\u30e7\u30f3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.secuavail.com\/kb\/windows-linux\/vi-vim-basic-command\/#vivim%E3%81%A8%E3%81%AF\" >vi\/vim\u3068\u306f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.secuavail.com\/kb\/windows-linux\/vi-vim-basic-command\/#vim%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >vim\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.secuavail.com\/kb\/windows-linux\/vi-vim-basic-command\/#vivim%E3%81%AE%E5%9F%BA%E6%9C%AC%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89\" >vi\/vim\u306e\u57fa\u672c\u30b3\u30de\u30f3\u30c9<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.secuavail.com\/kb\/windows-linux\/vi-vim-basic-command\/#vivim%E3%81%AE%E8%B5%B7%E5%8B%95\" >vi\/vim\u306e\u8d77\u52d5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.secuavail.com\/kb\/windows-linux\/vi-vim-basic-command\/#%E3%83%A2%E3%83%BC%E3%83%89%E3%81%AE%E5%88%87%E6%9B%BF\" >\u30e2\u30fc\u30c9\u306e\u5207\u66ff<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.secuavail.com\/kb\/windows-linux\/vi-vim-basic-command\/#%E4%BF%9D%E5%AD%98%E3%83%BB%E7%B5%82%E4%BA%86\" >\u4fdd\u5b58\u30fb\u7d42\u4e86<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.secuavail.com\/kb\/windows-linux\/vi-vim-basic-command\/#%E7%A7%BB%E5%8B%95\" >\u79fb\u52d5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.secuavail.com\/kb\/windows-linux\/vi-vim-basic-command\/#%E3%82%B3%E3%83%94%E3%83%BC%E3%83%BB%E3%83%9A%E3%83%BC%E3%82%B9%E3%83%88%E3%81%A8%E6%96%87%E5%AD%97%E5%89%8A%E9%99%A4\" >\u30b3\u30d4\u30fc\u30fb\u30da\u30fc\u30b9\u30c8\u3068\u6587\u5b57\u524a\u9664<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.secuavail.com\/kb\/windows-linux\/vi-vim-basic-command\/#%E6%A4%9C%E7%B4%A2%E3%83%BB%E7%BD%AE%E6%8F%9B\" >\u691c\u7d22\u30fb\u7f6e\u63db<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.secuavail.com\/kb\/windows-linux\/vi-vim-basic-command\/#%E3%81%9D%E3%81%AE%E4%BB%96\" >\u305d\u306e\u4ed6<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.secuavail.com\/kb\/windows-linux\/vi-vim-basic-command\/#%E3%81%BE%E3%81%A8%E3%82%81\" >\u307e\u3068\u3081<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Linux%E3%81%AE%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3\"><\/span>Linux\u306e\u30d0\u30fc\u30b8\u30e7\u30f3<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Alma Linux release 8.9<\/p>\n<h2><span class=\"ez-toc-section\" id=\"vivim%E3%81%A8%E3%81%AF\"><\/span>vi\/vim\u3068\u306f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>vi\u306f\u3001UNIX\u74b0\u5883\u3067\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u30c6\u30ad\u30b9\u30c8\u7de8\u96c6\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e00\u7a2e\u3067\u3001\u201cVisual Editor\u201d\u306e\u7565\u79f0\u3067\u3059\u3002<br \/>\n\u30ab\u30fc\u30bd\u30eb\u306e\u79fb\u52d5\u3084vi\u306e\u7d42\u4e86\u306a\u3069\u306e\u64cd\u4f5c\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u300c\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u300d\u3068<br \/>\n\u6587\u5b57\u306e\u5165\u529b\u306a\u3069\u3092\u884c\u3046\u300c\u30a4\u30f3\u30b5\u30fc\u30c8\u30e2\u30fc\u30c9\u300d\u306e2\u3064\u306e\u30e2\u30fc\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nLinux\u306b\u306f\u3042\u3089\u304b\u3058\u3081\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u6a19\u6e96\u7684\u306a\u30a8\u30c7\u30a3\u30bf\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>vim\u306f\u3001vi\u304b\u3089\u6d3e\u751f\u3057\u305f\u9ad8\u6a5f\u80fd\u306a\u30a8\u30c7\u30a3\u30bf\u3067\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u6027\u304c\u9ad8\u3044\u305f\u3081\u3001<br \/>\n\u81ea\u5206\u597d\u307f\u306e\u74b0\u5883\u306b\u8abf\u6574\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"vim%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>vim\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>vi\u306f\u3042\u3089\u304b\u3058\u3081\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001vim\u306f\u5225\u9014\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u306a\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nvim\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"cpp\">$ vim --version<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u3067\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># dnf -y install vim-enhanced\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"vivim%E3%81%AE%E5%9F%BA%E6%9C%AC%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89\"><\/span>vi\/vim\u306e\u57fa\u672c\u30b3\u30de\u30f3\u30c9<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>vi\/vim\u306e\u57fa\u672c\u30b3\u30de\u30f3\u30c9\u3092\u628a\u63e1\u3059\u308b\u3053\u3068\u3067\u3001\u30c6\u30ad\u30b9\u30c8\u7de8\u96c6\u3092\u30b9\u30e0\u30fc\u30ba\u306b\u884c\u3048\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306f\u305d\u306e\u57fa\u672c\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"vivim%E3%81%AE%E8%B5%B7%E5%8B%95\"><\/span>vi\/vim\u306e\u8d77\u52d5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>vi\u3082vim\u3082\u5927\u5dee\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\nvi\/vim\u30b3\u30de\u30f3\u30c9\u306e\u5f8c\u306b\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3059\u308b\u3068\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u5b58\u5728\u3057\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u65b0\u3057\u304f\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>(vi\u306e\u5834\u5408)<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ vi &lt;\u30d5\u30a1\u30a4\u30eb\u540d&gt;<\/pre>\n<p>(vim\u306e\u5834\u5408)<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ vim &lt;\u30d5\u30a1\u30a4\u30eb\u540d&gt;<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"%E3%83%A2%E3%83%BC%E3%83%89%E3%81%AE%E5%88%87%E6%9B%BF\"><\/span>\u30e2\u30fc\u30c9\u306e\u5207\u66ff<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>vi\/vim\u3092\u8d77\u52d5\u76f4\u5f8c\u306f\u3001\u300c\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u300d\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<table width=\"598\">\n<tbody>\n<tr>\n<td width=\"116\">i<\/td>\n<td width=\"482\">\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u304b\u3089\u30a4\u30f3\u30b5\u30fc\u30c8\u30e2\u30fc\u30c9\u306b\u5207\u308a\u66ff\u3048<\/td>\n<\/tr>\n<tr>\n<td width=\"116\">Esc<\/td>\n<td width=\"482\">\u30a4\u30f3\u30b5\u30fc\u30c8\u30e2\u30fc\u30c9\u304b\u3089\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u306b\u5207\u308a\u66ff\u3048<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"%E4%BF%9D%E5%AD%98%E3%83%BB%E7%B5%82%E4%BA%86\"><\/span>\u4fdd\u5b58\u30fb\u7d42\u4e86<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u3053\u308c\u4ee5\u964d\u306f\u5168\u3066\u300c\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u300d\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u203b\u4e00\u90e8\u4f8b\u5916\u3042\u308a<\/p>\n<table width=\"598\">\n<tbody>\n<tr>\n<td width=\"116\">a<\/td>\n<td width=\"482\">\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u306e\u76f4\u5f8c\u304b\u3089\u30a4\u30f3\u30b5\u30fc\u30c8\u30e2\u30fc\u30c9\u306b\u5207\u308a\u66ff\u3048<\/td>\n<\/tr>\n<tr>\n<td width=\"116\">o<\/td>\n<td width=\"482\">\u65b0\u3057\u3044\u884c\u3092\u73fe\u5728\u306e\u884c\u306e\u4e0b\u306b\u633f\u5165\u3057\u3001\u30a4\u30f3\u30b5\u30fc\u30c8\u30e2\u30fc\u30c9\u306b\u5207\u308a\u66ff\u3048<\/td>\n<\/tr>\n<tr>\n<td width=\"116\">O<\/td>\n<td width=\"482\">\u65b0\u3057\u3044\u884c\u3092\u73fe\u5728\u306e\u884c\u306e\u4e0a\u306b\u633f\u5165\u3057\u3001\u30a4\u30f3\u30b5\u30fc\u30c8\u30e2\u30fc\u30c9\u306b\u5207\u308a\u66ff\u3048<\/td>\n<\/tr>\n<tr>\n<td width=\"116\">:q!<\/td>\n<td width=\"482\">\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u305b\u305a\u306b\u5f37\u5236\u7d42\u4e86(\u5909\u66f4\u304c\u3042\u3063\u305f\u5834\u5408\u3001\u7121\u8996\u3057\u3066\u5f37\u5236\u7d42\u4e86)<\/td>\n<\/tr>\n<tr>\n<td width=\"116\">:q<\/td>\n<td width=\"482\">\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6\u3092\u7d42\u4e86(\u5909\u66f4\u304c\u3042\u3063\u305f\u5834\u5408\u3001\u8b66\u544a\u304c\u51fa\u308b)<\/td>\n<\/tr>\n<tr>\n<td width=\"116\">:w<\/td>\n<td width=\"482\">\u4e0a\u66f8\u304d\u4fdd\u5b58<\/td>\n<\/tr>\n<tr>\n<td width=\"116\">:w &lt;\u30d5\u30a1\u30a4\u30eb\u540d&gt;<\/td>\n<td width=\"482\">\u540d\u524d\u3092\u4ed8\u3051\u3066\u4e0a\u66f8\u304d\u4fdd\u5b58<\/td>\n<\/tr>\n<tr>\n<td width=\"116\">:w!<\/td>\n<td width=\"482\">\u8aad\u307f\u8fbc\u307f\u5c02\u7528\u30d5\u30a1\u30a4\u30eb\u306b\u5f37\u5236\u7684\u306b\u4e0a\u66f8\u304d\u4fdd\u5b58<\/td>\n<\/tr>\n<tr>\n<td width=\"116\">:wq<\/td>\n<td width=\"482\">\u4e0a\u66f8\u304d\u4fdd\u5b58\u3057\u3066\u7d42\u4e86<\/td>\n<\/tr>\n<tr>\n<td width=\"116\">:wq!<\/td>\n<td width=\"482\">\u8aad\u307f\u8fbc\u307f\u5c02\u7528\u30d5\u30a1\u30a4\u30eb\u306b\u5f37\u5236\u7684\u306b\u4e0a\u66f8\u304d\u4fdd\u5b58\u3092\u3057\u3066\u7d42\u4e86<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"%E7%A7%BB%E5%8B%95\"><\/span>\u79fb\u52d5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<td width=\"113\">h<\/td>\n<td width=\"453\">\u5de6\u306b1\u6587\u5b57\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">j<\/td>\n<td width=\"453\">\u4e0b\u306b1\u884c\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">k<\/td>\n<td width=\"453\">\u4e0a\u306b1\u884c\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">l<\/td>\n<td width=\"453\">\u53f3\u306b\uff11\u6587\u5b57\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">\u2191,\u2192,\u2193,\u2190<\/td>\n<td width=\"453\"><strong>\u30a4\u30f3\u30b5\u30fc\u30c8\u30e2\u30fc\u30c9\uff0c\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9<\/strong>\u3067\u306e\u30ab\u30fc\u30bd\u30eb\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">Ctrl+F<\/td>\n<td width=\"453\">1\u30da\u30fc\u30b8\u5206\u4e0b\u306b\u30b9\u30af\u30ed\u30fc\u30eb<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">Ctrl+B<\/td>\n<td width=\"453\">1\u30da\u30fc\u30b8\u5206\u4e0a\u306b\u30b9\u30af\u30ed\u30fc\u30eb<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">Ctrl+D<\/td>\n<td width=\"453\">\u534a\u30da\u30fc\u30b8\u5206\u4e0b\u306b\u30b9\u30af\u30ed\u30fc\u30eb<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">Ctrl+U<\/td>\n<td width=\"453\">\u534a\u30da\u30fc\u30b8\u5206\u4e0a\u306b\u30b9\u30af\u30ed\u30fc\u30eb<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">H<\/td>\n<td width=\"453\">\u753b\u9762\u306e\u4e00\u756a\u4e0a\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">M<\/td>\n<td width=\"453\">\u753b\u9762\u306e\u4e2d\u592e\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">L<\/td>\n<td width=\"453\">\u753b\u9762\u306e\u4e00\u756a\u4e0b\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">gg<\/td>\n<td width=\"453\">\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">G<\/td>\n<td width=\"453\">\u30d5\u30a1\u30a4\u30eb\u306e\u672b\u5c3e\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">nG<\/td>\n<td width=\"453\">n\u884c\u76ee\u306b\u79fb\u52d5(n\u306f\u884c\u6570)<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">w<\/td>\n<td width=\"453\">\u6b21\u306e\u5358\u8a9e\u306e\u5148\u982d\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">e<\/td>\n<td width=\"453\">\u6b21\u306e\u5358\u8a9e\u306e\u672b\u5c3e\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">b<\/td>\n<td width=\"453\">\u524d\u306e\u5358\u8a9e\u306e\u5148\u982d\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">0<\/td>\n<td width=\"453\">\u884c\u306e\u5148\u982d\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">$<\/td>\n<td width=\"453\">\u884c\u306e\u672b\u5c3e\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"%E3%82%B3%E3%83%94%E3%83%BC%E3%83%BB%E3%83%9A%E3%83%BC%E3%82%B9%E3%83%88%E3%81%A8%E6%96%87%E5%AD%97%E5%89%8A%E9%99%A4\"><\/span>\u30b3\u30d4\u30fc\u30fb\u30da\u30fc\u30b9\u30c8\u3068\u6587\u5b57\u524a\u9664<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<td width=\"113\">p<\/td>\n<td width=\"453\">\u30ab\u30fc\u30bd\u30eb\u306e\u6b21\u306e\u884c\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u8cbc\u308a\u4ed8\u3051\u308b<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">P<\/td>\n<td width=\"453\">\u30ab\u30fc\u30bd\u30eb\u306e\u524d\u306e\u884c\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u8cbc\u308a\u4ed8\u3051\u308b<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">x<\/td>\n<td width=\"453\">\u30ab\u30fc\u30bd\u30eb\u304c\u3042\u308b\u4f4d\u7f6e\u306e\u6587\u5b57\u3092\u524a\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">d$<\/td>\n<td width=\"453\">\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u304b\u3089\u884c\u672b\u307e\u3067\u3092\u30ab\u30c3\u30c8<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">dw<\/td>\n<td width=\"453\">\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u304b\u3089\u6b21\u306e\u5358\u8a9e\u306e\u5148\u982d\u307e\u3067\u3092\u30ab\u30c3\u30c8<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">db<\/td>\n<td width=\"453\">\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u304b\u3089\u524d\u306e\u5358\u8a9e\u306e\u5148\u982d\u307e\u3067\u3092\u30ab\u30c3\u30c8<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">dd<\/td>\n<td width=\"453\">\u73fe\u5728\u306e\u884c\u3092\u30ab\u30c3\u30c8<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">d$\u307e\u305f\u306fD<\/td>\n<td width=\"453\">\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u304b\u3089\u884c\u672b\u307e\u3067\u3092\u30ab\u30c3\u30c8<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">X<\/td>\n<td width=\"453\">\u30ab\u30fc\u30bd\u30eb\u306e\u524d\u306e\u6587\u5b57\u3092\u524a\u9664(\u30d0\u30c3\u30af\u30b9\u30da\u30fc\u30b9)<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">u<\/td>\n<td width=\"453\">\u5143\u306b\u623b\u3059<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">ndd<\/td>\n<td width=\"453\">\u73fe\u5728\u306e\u884c\u304b\u3089n\u884c\u5206\u30ab\u30c3\u30c8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u203bd\u3092y\u306b\u7f6e\u304d\u63db\u3048\u308b\u3068\u30b3\u30d4\u30fc\u3067\u304d\u308b<\/p>\n<p>(\u4f8b)yy\uff1a\u73fe\u5728\u306e\u884c\u3092\u30b3\u30d4\u30fc<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E6%A4%9C%E7%B4%A2%E3%83%BB%E7%BD%AE%E6%8F%9B\"><\/span>\u691c\u7d22\u30fb\u7f6e\u63db<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<table width=\"626\">\n<tbody>\n<tr>\n<td width=\"173\">\/(\u691c\u7d22\u8a9e)<\/td>\n<td width=\"453\">\u524d\u65b9\u306b\u691c\u7d22<\/td>\n<\/tr>\n<tr>\n<td width=\"173\">?(\u691c\u7d22\u8a9e)<\/td>\n<td width=\"453\">\u5f8c\u65b9\u306b\u691c\u7d22<\/td>\n<\/tr>\n<tr>\n<td width=\"173\">n<\/td>\n<td width=\"453\">\u6b21\u306e\u691c\u7d22\u7d50\u679c\u306b\u9032\u3080<\/td>\n<\/tr>\n<tr>\n<td width=\"173\">N<\/td>\n<td width=\"453\">\u524d\u306e\u691c\u7d22\u7d50\u679c\u306b\u9032\u3080<\/td>\n<\/tr>\n<tr>\n<td width=\"173\">:s\/(\u691c\u7d22\u8a9e)\/(\u7f6e\u63db\u8a9e)\/<\/td>\n<td width=\"453\">\u73fe\u5728\u306e\u884c\u3067\u6700\u521d\u306b\u30de\u30c3\u30c1\u3057\u305f\u691c\u7d22\u8a9e\u3092\u7f6e\u63db<\/td>\n<\/tr>\n<tr>\n<td width=\"173\">:%s\/(\u691c\u7d22\u8a9e)\/(\u7f6e\u63db\u8a9e)\/g<\/td>\n<td width=\"453\">\u30d5\u30a1\u30a4\u30eb\u5168\u4f53\u3067\u691c\u7d22\u8a9e\u3092\u4e00\u62ec\u7f6e\u63db<\/td>\n<\/tr>\n<tr>\n<td width=\"173\">:%s\/(\u691c\u7d22\u8a9e)\/(\u7f6e\u63db\u8a9e)\/gc<\/td>\n<td width=\"453\">\u30d5\u30a1\u30a4\u30eb\u5168\u4f53\u3067\u691c\u7d22\u8a9e\u3092\u4e00\u62ec\u7f6e\u63db(\u7f6e\u63db\u524d\u306b\u78ba\u8a8d\u3092\u6c42\u3081\u308b)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"%E3%81%9D%E3%81%AE%E4%BB%96\"><\/span>\u305d\u306e\u4ed6<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<td width=\"113\">zfnj<\/td>\n<td width=\"453\">\u73fe\u5728\u306e\u884c\u304b\u3089n\u884c\u4e0b\u306e\u884c\u307e\u3067\u30c6\u30ad\u30b9\u30c8\u3092\u6298\u308a\u305f\u305f\u3080<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">zd<\/td>\n<td width=\"453\">\u73fe\u5728\u306e\u6298\u308a\u7573\u307f\u3092\u89e3\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">:split<\/td>\n<td width=\"453\">\u6c34\u5e73\u65b9\u5411\u306b\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u5206\u5272<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">:vsplot<\/td>\n<td width=\"453\">\u5782\u76f4\u65b9\u5411\u306b\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u5206\u5272<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">Ctrl+w+\u2191<\/td>\n<td width=\"453\">\u4e0a\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">Ctrl+w+\u2193<\/td>\n<td width=\"453\">\u4e0b\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">Ctrl+w+\u2192<\/td>\n<td width=\"453\">\u53f3\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">Ctrl+w+\u2190<\/td>\n<td width=\"453\">\u5de6\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u79fb\u52d5<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">:nohlsearch<\/td>\n<td width=\"453\">\u691c\u7d22\u7d50\u679c\u306e\u30cf\u30a4\u30e9\u30a4\u30c8\u3092\u89e3\u9664<\/td>\n<\/tr>\n<tr>\n<td width=\"113\">:set number<\/td>\n<td width=\"453\">\u884c\u756a\u53f7\u3092\u8868\u793a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%BE%E3%81%A8%E3%82%81\"><\/span>\u307e\u3068\u3081<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u521d\u3081\u306fvi\/vim\u306e\u4f7f\u3044\u306b\u304f\u3055\u3092\u611f\u3058\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u6163\u308c\u308b\u3068\u7de8\u96c6\u4f5c\u696d\u306e\u52b9\u7387\u304c\u683c\u6bb5\u306b\u5411\u4e0a\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u3054\u7d39\u4ecb\u3057\u305f\u3082\u306e\u4ee5\u5916\u306b\u3082\u3001\u307e\u3060\u305f\u304f\u3055\u3093\u306e\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u5c11\u3057\u3067\u3082\u304a\u5f79\u306b\u7acb\u3066\u3066\u3044\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<br \/>\n\u3054\u89a7\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u53c2\u8003\u30b5\u30a4\u30c8<\/p>\n<p>Vim\u306e\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9-Zenn<br \/>\n<a href=\"https:\/\/zenn.dev\/masatotezuka\/articles\/vim_command_220225\">https:\/\/zenn.dev\/masatotezuka\/articles\/vim_command_220225<\/a><\/p>\n<p>Vim\u306b\u3064\u3044\u3066#Linux-Qiita<br \/>\n<a href=\"https:\/\/qiita.com\/taxinumber1729\/items\/b8b5094ea2b5ee4bdf68\">https:\/\/qiita.com\/taxinumber1729\/items\/b8b5094ea2b5ee4bdf68<\/a><\/p>\n<p>vi\u306e\u57fa\u672c\u64cd\u4f5c<br \/>\n<a href=\"https:\/\/www.gi.ce.t.kyoto-u.ac.jp\/user\/susaki\/command\/vi.html\">https:\/\/www.gi.ce.t.kyoto-u.ac.jp\/user\/susaki\/command\/vi.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u5f53\u8a18\u4e8b\u3067\u306f\u3001vi\u53ca\u3073vim\u306e\u4f7f\u3044\u65b9\u3068\u57fa\u672c\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002 Linux\u306e\u30d0\u30fc\u30b8\u30e7\u30f3 Alma Linux release 8.9 vi\/vim\u3068\u306f vi\u306f\u3001UNIX\u74b0\u5883\u3067\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u30c6\u30ad\u30b9\u30c8\u7de8\u96c6\u30d7\u30ed\u30b0\u30e9\u30e0 [&hellip;]","protected":false},"author":45,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[50],"tags":[9],"class_list":["post-15294","post","type-post","status-publish","format-standard","hentry","category-windows-linux","tag-linux"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.secuavail.com\/kb\/wp-json\/wp\/v2\/posts\/15294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.secuavail.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.secuavail.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.secuavail.com\/kb\/wp-json\/wp\/v2\/users\/45"}],"replies":[{"embeddable":true,"href":"https:\/\/www.secuavail.com\/kb\/wp-json\/wp\/v2\/comments?post=15294"}],"version-history":[{"count":5,"href":"https:\/\/www.secuavail.com\/kb\/wp-json\/wp\/v2\/posts\/15294\/revisions"}],"predecessor-version":[{"id":15576,"href":"https:\/\/www.secuavail.com\/kb\/wp-json\/wp\/v2\/posts\/15294\/revisions\/15576"}],"wp:attachment":[{"href":"https:\/\/www.secuavail.com\/kb\/wp-json\/wp\/v2\/media?parent=15294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.secuavail.com\/kb\/wp-json\/wp\/v2\/categories?post=15294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.secuavail.com\/kb\/wp-json\/wp\/v2\/tags?post=15294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}