{"id":12005,"date":"2022-09-01T09:38:26","date_gmt":"2022-09-01T01:38:26","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=12005"},"modified":"2022-09-01T16:43:37","modified_gmt":"2022-09-01T08:43:37","slug":"how-using-vim","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/how-using-vim.html","title":{"rendered":"VIM\u7684\u4f7f\u7528\u65b9\u6cd5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nVim\u662f\u4ecevi\u53d1\u5c55\u51fa\u6765\u7684\u4e00\u4e2a\u6587\u672c\u7f16\u8f91\u5668\u3002\u4ee3\u7801\u8865\u5168\u3001\u7f16\u8bd1\u53ca\u9519\u8bef\u8df3\u8f6c\u7b49\u65b9\u4fbf\u7f16\u7a0b\u7684\u529f\u80fd\u7279\u522b\u4e30\u5bcc\uff0c\u5728\u7a0b\u5e8f\u5458\u4e2d\u88ab\u5e7f\u6cdb\u4f7f\u7528\uff0c\u548cEmacs\u5e76\u5217\u6210\u4e3a\u7c7bUnix\u7cfb\u7edf\u7528\u6237\u6700\u559c\u6b22\u7684\u6587\u672c\u7f16\u8f91\u5668\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u4e00\u3001vi\u3001vim\u4ecb\u7ecd<\/strong><\/div>\n

(1)\u57fa\u4e8e\u56fe\u5f62\u754c\u9762\uff0c\u5982gedit\u3001geany\u7b49\uff1b
\n(2)\u57fa\u4e8e\u547d\u4ee4\u884c\uff0c\u5982nano\u3001vi\u3001joe\u7b49\uff1b<\/p>\n

\u6bcf\u4e2a\u547d\u4ee4\u884c\u754c\u9762\u7684\u6587\u672c\u7f16\u8f91\u5668\u90fd\u6709\u5404\u81ea\u4e0d\u540c\u7684\u5feb\u6377\u952e\uff0c\u6bd4\u5982nano\u7684\u4fdd\u5b58\u4e3aCTRL+W\uff0cvim\u7684\u4fdd\u5b58\u4e3a:w\uff1b\r\n\u57fa\u4e8e\u547d\u4ee4\u884c\u7684\u6587\u672c\u7f16\u8f91\u5668\u662f\u5fc5\u8981\u7684\uff0cLinux\u7684tty1~tty6\u90fd\u662f\u547d\u4ee4\u884c\u754c\u9762\uff0c\u662f\u6253\u4e0d\u5f00\u56fe\u5f62\u754c\u9762\u7684\u6587\u672c\u7f16\u8f91\u5668\u7684\uff1b\r\nvi\u662f\u6bcf\u4e2aLinux Distribution\u90fd\u9ed8\u8ba4\u5b89\u88c5\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u5e76\u4e14\u5f88\u591a\u8f6f\u4ef6\u7684\u9ed8\u8ba4\u7f16\u8f91\u5668\u90fd\u662fvi\uff0c\u56e0\u6b64\u5b66\u4e60vi\u662f\u5f88\u5fc5\u8981\u7684\uff1b\r\nvim\u662fvi\u7684\u9ad8\u7ea7\u7248\u672c\uff0cvi\u662f\u6587\u672c\u7f16\u8f91\u5668\uff0c\u800cvim\u5e94\u8be5\u8bf4\u662f\u7a0b\u5e8f\u7f16\u8f91\u5668\uff0c\u56e0\u4e3a\u80fd\u591f\u50cf\u4e00\u822c\u7684IDE\u4e00\u6837\uff0c\u6839\u636e\u6587\u4ef6\u540d\u8f7d\u5165\u4e0d\u540c\u7684\u8bed\u6cd5\u9ad8\u4eae\uff0c\u5373\u989c\u8272\u533a\u5206\uff0c\u6bd4\u5982java\u6587\u4ef6\u4f1a\u9075\u5faajava\u7684\u8bed\u6cd5\u9ad8\u4eae\uff1b<\/pre>\n

\u4e0b\u9762\u6211\u4eec\u5c31\u7f16\u5199\u4e00\u4e2a\"hello world\"\u7684java\u7a0b\u5e8f\u6765\u770b\u770bvim\u7684\u8bed\u6cd5\u9ad8\u4eae\uff1b
\n\"vim1\"
\n\u53ef\u4ee5\u770b\u51favim\u6709\u5f88\u597d\u7684\u8bed\u6cd5\u68c0\u67e5\u529f\u80fd\uff0c\u56e0\u4e3a\u5173\u952e\u5b57\u90fd\u4f7f\u7528\u4e86\u4e0d\u540c\u7684\u989c\u8272\u6807\u51fa\uff1b
\nvi\u6709\u4e09\u79cd\u6a21\u5f0f\uff1a<\/p>\n

(1)\u4e00\u822c\u6a21\u5f0f\uff1a\u8fdb\u5165vi\u7684\u9ed8\u8ba4\u6a21\u5f0f\uff0c\u80fd\u591f\u8fdb\u884c\u590d\u5236\u3001\u9ecf\u8d34\u3001\u5220\u9664\u7b49\u64cd\u4f5c\uff1b\r\n(2)\u7f16\u8f91\u6a21\u5f0f\uff1a\u4ece\u4e00\u822c\u6a21\u5f0f\u6309\u4e0b\u2018i\u2019\u5373\u53ef\u8fdb\u5165\uff1b\r\n(3)\u547d\u4ee4\u884c\u6a21\u5f0f\uff1a\u4ece\u4e00\u822c\u6a21\u5f0f\u6309\u4e0b\u201c:\u201d\u3001'?'\u3001'\/'\u5373\u53ef\u8fdb\u5165\uff1b<\/pre>\n

\u6ce8\u610f\uff1a\u5982\u679c\u5b89\u88c5\u4e86vim\u540e\uff0c\u8f93\u5165vi\u540e\u4e5f\u662f\u4f7f\u7528vim\u7f16\u8f91\u5668\uff0c\u6211\u4eec\u8f93\u5165alias\u540e\u770b\u5230\u201calias vi='vim'\u201d\uff1b<\/p>\n

\u4e8c\u3001vi\/vim\u6309\u952e<\/strong><\/div>\n
\u201c\u4e00\u822c\u6a21\u5f0f\u201d\u7684\u5e38\u7528\u6309\u952e\uff1a<\/strong><\/span><\/div>\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\u201c\u4e00\u822c\u6a21\u5f0f\u201d\u7684\u5e38\u7528\u6309\u952e<\/b><\/span><\/th>\n\u6309\u952e\u542b\u4e49<\/b><\/span><\/th>\n<\/tr>\n<\/thead>\n
h<\/span><\/td>\n\u5411\u5de6<\/span><\/td>\n<\/tr>\n
J<\/span><\/td>\n\u5411\u4e0b<\/span><\/td>\n<\/tr>\n
K<\/span><\/td>\n\u5411\u4e0a<\/span><\/td>\n<\/tr>\n
l<\/span><\/td>\n\u5411\u53f3<\/span><\/td>\n<\/tr>\n
20h<\/span><\/td>\n\u5411\u5de620\u4e2a\u5b57\u7b26<\/span><\/td>\n<\/tr>\n
20j<\/span><\/td>\n\u5411\u4e0b20\u884c<\/span><\/td>\n<\/tr>\n
20k<\/span><\/td>\n\u5411\u4e0a20\u884c<\/span><\/td>\n<\/tr>\n
20l<\/span><\/td>\n\u5411\u53f320\u4e2a\u5b57\u7b26<\/span><\/td>\n<\/tr>\n
Page Up<\/span><\/td>\n\u5411\u4e0a\u7ffb\u9875<\/span><\/td>\n<\/tr>\n
Page Down<\/span><\/td>\n\u5411\u4e0b\u7ffb\u9875<\/span><\/td>\n<\/tr>\n
Home<\/span><\/td>\n\u5149\u6807\u79fb\u5230\u5f53\u524d\u884c\u7684\u6700\u5de6\u7aef<\/span><\/td>\n<\/tr>\n
End<\/span><\/td>\n\u5149\u6807\u79fb\u5230\u5f53\u524d\u822a\u7684\u6700\u53f3\u7aef<\/span><\/td>\n<\/tr>\n
n [\u7a7a\u683c]<\/span><\/td>\n\u5149\u6807\u5411\u53f3\u79fb\u52a8n\u4e2a\u5b57\u7b26<\/span><\/td>\n<\/tr>\n
N[Enter]<\/span><\/td>\n\u5149\u6807\u5411\u4e0bN\u884c<\/span><\/td>\n<\/tr>\n
G<\/span><\/td>\n\u5149\u6807\u79fb\u5230\u6700\u540e\u4e00\u884c<\/span><\/td>\n<\/tr>\n
nG<\/span><\/td>\n\u5149\u6807\u79fb\u52a8\u5230\u7b2cn\u884c<\/span><\/td>\n<\/tr>\n
gg\u62161G<\/span><\/td>\n\u5149\u6807\u79fb\u52a8\u5230\u7b2c\u4e00\u884c<\/span><\/td>\n<\/tr>\n
\/word<\/span><\/td>\n\u5411\u4e0b\u67e5\u627eword<\/span><\/td>\n<\/tr>\n
?word<\/span><\/td>\n\u5411\u4e0a\u67e5\u627eword<\/span><\/td>\n<\/tr>\n
n<\/span><\/td>\n\u5982\u679c\u662f\/word\u540e\u4f7f\u7528\uff0c\u5219\u8868\u793a\u5411\u4e0b\u7ee7\u7eed\u67e5\u627e;
\n\u5982\u679c\u662f?word\u540e\u4f7f\u7528\uff0c\u5219\u8868\u793a\u5411\u4e0a\u7ee7\u7eed\u67e5\u627e\uff1b
\n<\/span><\/td>\n<\/tr>\n
N<\/span><\/td>\n\u5982\u679c\u662f\/word\u540e\u4f7f\u7528\uff0c\u5219\u8868\u793a\u5411\u4e0a\u7ee7\u7eed\u67e5\u627e\uff1b
\n\u5982\u679c\u662f?word\u540e\u4f7f\u7528\uff0c\u5219\u8868\u793a\u5411\u4e0b\u7ee7\u7eed\u67e5\u627e\uff1b<\/span><\/td>\n<\/tr>\n
:n,m\/old\/new\/g<\/span><\/td>\n\u4ece\u7b2cn\u884c\u5230\u7b2cm\u884c\u4e2d\uff0c\u5c06old\u66ff\u6362\u4e3anew<\/span><\/td>\n<\/tr>\n
:n,$s\/old\/new\/g<\/span><\/td>\n\u4ece\u7b2cn\u884c\u5230\u6700\u540e\u4e00\u884c\u4e2d\uff0c\u5c06old\u66ff\u6362\u4e3anew<\/span><\/td>\n<\/tr>\n
u<\/span><\/td>\n\u7c7b\u4f3cwindows\u4e2d\u7684CTRL+Z\uff0c\u524d\u4e00\u6b65<\/span><\/td>\n<\/tr>\n
x<\/span><\/td>\n\u5411\u540e\u5220\u9664\u4e00\u4e2a\u5b57\u7b26<\/span><\/td>\n<\/tr>\n
X<\/span><\/td>\n\u5411\u524d\u5220\u9664\u4e00\u4e2a\u5b57\u7b26<\/span><\/td>\n<\/tr>\n
3x<\/span><\/td>\n\u5411\u540e\u5220\u96643\u4e2a\u5b57\u7b26<\/span><\/td>\n<\/tr>\n
3X<\/span><\/td>\n\u5411\u524d\u5220\u96643\u4e2a\u5b57\u7b26<\/span><\/td>\n<\/tr>\n
dd<\/span><\/td>\n\u5220\u9664\u5f53\u524d\u884c<\/span><\/td>\n<\/tr>\n
3dd<\/span><\/td>\n\u5220\u9664\u5f53\u524d\u884c\u5f00\u59cb\u76843\u884c<\/span><\/td>\n<\/tr>\n
yy<\/span><\/td>\n\u590d\u5236\u5f53\u524d\u884c<\/span><\/td>\n<\/tr>\n
3yy<\/span><\/td>\n\u590d\u5236\u5f53\u524d\u884c\u5f00\u59cb\u76843\u884c<\/span><\/td>\n<\/tr>\n
p<\/span><\/td>\n\u9ecf\u8d34\u5230\u5f53\u524d\u5149\u6807\u7684\u4e0b\u4e00\u884c<\/span><\/td>\n<\/tr>\n
P<\/span><\/td>\n\u9ecf\u8d34\u5230\u5f53\u524d\u5149\u6807\u7684\u4e0a\u4e00\u884c<\/span><\/td>\n<\/tr>\n
CTRL+r<\/span><\/td>\n\u91cd\u505a\u524d\u4e00\u4e2a\u64cd\u4f5c<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u201c\u547d\u4ee4\u884c\u6a21\u5f0f\u201d\u7684\u5e38\u7528\u6309\u952e\uff1a<\/strong><\/span><\/div>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\u201c\u547d\u4ee4\u884c\u6a21\u5f0f\u201d\u7684\u5e38\u7528\u6309\u952e<\/b><\/span><\/th>\n\u6309\u952e\u542b\u4e49<\/b><\/span><\/th>\n<\/tr>\n<\/thead>\n
:w<\/span><\/td>\n\u4fdd\u5b58<\/span><\/td>\n<\/tr>\n
:q<\/span><\/td>\n\u9000\u51favim<\/span><\/td>\n<\/tr>\n
:wq<\/span><\/td>\n\u4fdd\u5b58\u5e76\u9000\u51fa<\/span><\/td>\n<\/tr>\n
:wq!<\/span><\/td>\n\uff08\u5728\u53ef\u4ee5\u8f6c\u6362\u6743\u9650\u7684\u60c5\u51b5\u4e0b\uff09\u5f3a\u5236\u4fdd\u5b58\u5e76\u9000\u51fa<\/span><\/td>\n<\/tr>\n
:q!<\/span><\/td>\n\u76f4\u63a5\u9000\u51fa\u4e0d\u4fdd\u5b58<\/span><\/td>\n<\/tr>\n
:w filename<\/span><\/td>\n\u53e6\u5b58\u4e3afilename<\/span><\/td>\n<\/tr>\n
:n,m w filename<\/span><\/td>\n\u5c06\u7b2cn\u884c\u5230\u7b2cm\u884c\u53e6\u5b58\u4e3afilename<\/span><\/td>\n<\/tr>\n
:set nu<\/span><\/td>\n\u663e\u793a\u884c\u53f7<\/span><\/td>\n<\/tr>\n
:set nonu<\/span><\/td>\n\u4e0d\u663e\u793a\u884c\u53f7<\/span><\/td>\n<\/tr>\n
:! command<\/span><\/td>\n\u6682\u65f6\u79bb\u5f00vim\uff0c\u5e76\u6267\u884ccommand\uff0c\u6267\u884c\u5b8c\u540e\u518d\u8fdb\u5165vim<\/span><\/td>\n<\/tr>\n
:r filename<\/span><\/td>\n\u5c06filename\u6587\u4ef6\u7684\u6570\u636e\u8bfb\u5165\u5f53\u524d\u6587\u4ef6<\/span><\/td>\n<\/tr>\n
:set all<\/span><\/td>\n\u663e\u793a\u5f53\u524dvim\u7684\u73af\u5883\u914d\u7f6e<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u4e09\u3001vim\u7684\u6062\u590d\u673a\u5236<\/strong><\/div>\n

vim\u6b63\u5728\u7f16\u8f91\u67d0\u4e2a\u6587\u4ef6\u65f6\u90fd\u4f1a\u540c\u65f6\u5b58\u5728.file.swp\uff0c\u6b64\u6587\u4ef6\u7528\u6765\u6682\u5b58\uff0c\u5e2e\u52a9\u6062\u590d\u6587\u4ef6\u5185\u5bb9\uff0c\u5f53vim\u6b63\u5e38\u5173\u95ed\u6b64\u6587\u4ef6\u65f6\uff0c.filename.swp\u6587\u4ef6\u4f1a\u6d88\u5931\u3002
\n\"vim2\"
\n\u6211\u4eec\u770b\u5230\u56fe\u4e2d\u8bf4\u660e\u4e86\u51fa\u73b0\u6b64\u754c\u9762\u7684\u4e24\u4e2a\u539f\u56e0\uff1a<\/p>\n

(1)\u591a\u4eba\u540c\u65f6\u7f16\u8f91\u6b64\u6587\u4ef6\uff1a\u56e0\u4e3aLinux\u662f\u591a\u7528\u6237\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u56e0\u6b64\u53ef\u80fd\u4e24\u4e2a\u4eba\u540c\u65f6\u767b\u9646\u5e76\u7f16\u8f91\u6b64\u6587\u4ef6\uff0c\u5982\u679cA\u8fdb\u5165\u7cfb\u7edf\u5f00\u59cb\u7f16\u8f911.txt\u6587\u4ef6\uff0c\u5219\u4f1a\u51fa\u73b0.1.txt.swp\uff0c\u5f53A\u8fd8\u6ca1\u7f16\u8f91\u5b8c\u4f46B\u4e5f\u60f3\u8fdb\u53bb\u7f16\u8f91\u65f6\uff0c\u56e0\u4e3a\u6b64\u6587\u4ef6\u7684\u76ee\u5f55\u4e2d\u5b58\u5728.1.txt.swp\uff0c\u5219\u5c31\u4f1a\u51fa\u73b0\u4e0a\u56fe\u7684\u754c\u9762\uff1b\r\n(2)\u975e\u6b63\u5e38\u5173\u95ed\u6587\u4ef6\uff1b<\/pre>\n

\u56fe\u4e2d\u6700\u540e\u4e00\u884c\u8bf4\u660e\u4e86\u6211\u4eec\u6b64\u65f6\u53ef\u4ee5\u91c7\u53d6\u7684\u51e0\u4e2a\u52a8\u4f5c\uff1a<\/p>\n

(1)o\uff1a\u4ee5\u53ea\u8bfb\u65b9\u5f0f\u6253\u5f00\uff1b\r\n(2)R\uff1a\u6062\u590d\uff0c\u5373\u4eceswp\u6587\u4ef6\u4e2d\u6062\u590d\uff0c\u4f46\u662fswp\u6587\u4ef6\u4e0d\u4f1a\u968f\u7740vim\u5173\u95ed\u800c\u5220\u9664\uff0c\u9700\u8981\u624b\u52a8\u5220\u9664\uff1b\r\n(3)d\uff1a\u5220\u9664swp\u6587\u4ef6\uff1b\r\n(4)q\uff1a\u9000\u51favim\uff1b<\/pre>\n
\u56db\u3001vim\u8bb0\u5f55\u53ca\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6<\/strong><\/div>\n

\/etc\/vimrc\u6587\u4ef6\u4e3a\u5168\u5c40vim\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n

1.\u5982\u679c\u6211\u4eec\u7528xiazdong\u8d26\u6237\u4f7f\u7528vim\u540e\uff0c\u5728\/home\/xiazdong\u5c31\u4f1a\u51fa\u73b0.viminfo\u6587\u4ef6\uff0c\u6b64\u6587\u4ef6\u7528\u6765\u4f5c\u4e3avim\u7684\u65e5\u5fd7\uff0c\u8bb0\u5f55\u7528\u6237\u4f7f\u7528vim\u6253\u5f00\u4e86\u4ec0\u4e48\u6587\u4ef6\uff0c\u505a\u4e86\u4ec0\u4e48\u64cd\u4f5c\uff1b\r\n2.\u5982\u679cxiazdong\u8d26\u6237\u60f3\u8981\u914d\u7f6evim\u7684\u9ed8\u8ba4\u73af\u5883\uff0c\u5219\u53ef\u4ee5\u5728\/home\/xiazdong\u521b\u5efa.vimrc\uff0c\u5e76\u4e14\u914d\u7f6e\u4e00\u4e9b\u7279\u5f81\uff0c\u6bd4\u5982\u663e\u793a\u884c\u53f7\uff0c\u8bed\u6cd5\u68c0\u67e5\u7b49\uff1b<\/pre>\n

\u4e00\u822c\u4f7f\u7528\u5982\u4e0b\u914d\u7f6e\uff1a<\/p>\n

set hlsearch\r\nset backspace=2\r\nset autoindent\r\nset nu\r\nset ruler\r\nset showmode\r\nset bg=dark\r\nsyntax on<\/pre>\n
\u4e94\u3001Visual Block\u529f\u80fd<\/strong><\/div>\n

Visual Block\u529f\u80fd\u53ef\u4ee5\u7528\u4e8e\u5757\u590d\u5236\u3002<\/p>\n

(1)CTRL+v\uff1a\u5f00\u59cb\u590d\u5236\u5757\uff1b\r\n(3)y\uff1a\u590d\u5236\u5757\uff1b\r\n(4)p\uff1a\u9ecf\u8d34\u5757\uff1b\r\n(5)d\uff1a\u5220\u9664\u5757<\/pre>\n

\"vim3\"<\/p>\n

\u516d\u3001\u540c\u65f6\u7f16\u8f91\u591a\u4e2a\u6587\u4ef6<\/strong><\/div>\n

\u591a\u6587\u4ef6\u7f16\u8f91\u7684\u597d\u5904\u662f\u80fd\u591f\u5c06\u4e00\u4e2a\u6587\u4ef6\u7684\u67d0\u4e9b\u5185\u5bb9yy\u540e\uff0cp\u5230\u53e6\u4e00\u4e2a\u6587\u4ef6\u4e2d\u3002
\nvim file1 file2 \u5373\u53ef\u540c\u65f6\u7f16\u8f91\u4e24\u4e2a\u6587\u4ef6\uff0c\u4f46\u662f\u5c4f\u5e55\u4e2d\u540c\u65f6\u53ea\u4f1a\u51fa\u73b0\u4e00\u4e2a\u6587\u4ef6\u5185\u5bb9\uff0c\u9700\u8981\u8fdb\u884c\u5207\u6362\u3002<\/p>\n

(1):n\uff1a\u5411\u4e0b\u5207\u6362\uff1b\r\n(2):N\uff1a\u5411\u4e0a\u5207\u6362\uff1b\r\n(3):files\uff1a\u5217\u51fa\u5f53\u524d\u7f16\u8f91\u7684\u6240\u6709\u6587\u4ef6\uff1b<\/pre>\n
\u4e03\u3001\u591a\u7a97\u53e3\u7f16\u8f91<\/strong><\/div>\n

\u5982\u4e0b\u56fe\uff1a\u4e00\u4e2a\u754c\u9762\u80fd\u591f\u663e\u793a\u591a\u4e2a\u6587\u4ef6\u5185\u5bb9\u3002
\n\"vim4\"<\/p>\n

(1):sp\uff1a\u6253\u5f00\u5f53\u524d\u6587\u4ef6\uff1b\r\n(2):sp filename\uff1a\u6253\u5f00filename\u6587\u4ef6\uff1b\r\n(3)CTRL+w+\u2193\uff1a\u5149\u6807\u5207\u6362\u5230\u4e0b\u4e00\u4e2a\u7a97\u53e3\uff1b\r\n(4)CTRL+w+\u2191\uff1a\u5149\u6807\u5207\u6362\u5230\u4e0a\u4e00\u4e2a\u7a97\u53e3\uff1b\r\n(5):q\uff1a\u5173\u95ed\u5149\u6807\u6240\u5728\u7684\u7a97\u53e3\uff1b<\/pre>\n
\u516b\u3001\u7f16\u7801\u95ee\u9898<\/strong><\/div>\n

\u53ef\u80fd\u4f1a\u51fa\u73b0\u4e71\u7801\u95ee\u9898\uff0c\u89e3\u51b3\u65b9\u6cd5\uff1a\u4fdd\u6301\u7ec8\u7aef\u7684\u5b57\u7b26\u7f16\u7801\u4e0e\u6587\u4ef6\u7684\u5b57\u7b26\u7f16\u7801\u4e00\u81f4\uff01tty1~tty6\u4e0d\u652f\u6301\u663e\u793a\u4e2d\u6587\uff0c\u56e0\u6b64\u5728tty1~tty6\u4e2d\u663e\u793a\u4e2d\u6587\u5fc5\u51fa\u73b0\u4e71\u7801\uff0c\u8bbe\u7f6e\u7ec8\u7aef\u7684\u5b57\u7b26\u7f16\u7801\u3002
\n\"vim5\"<\/p>\n

\u7f16\u7801\u8f6c\u6362\u547d\u4ee4\uff1aiconv\r\niconv -f\u6587\u4ef6\u7684\u539f\u672c\u7f16\u7801-t\u6587\u4ef6\u7684\u65b0\u7f16\u7801filename -o newfilename\r\n\u6bd4\u5982\u6709\u4e00\u4e2abig5\u7f16\u7801\u7684\u6587\u4ef6\uff1a1.big5\uff0c\u8981\u8f6c\u6362\u6210utf8\u7684\u6587\u4ef6\uff1a2.utf8\uff0c\u5219iconv -f big5 -t utf8 1.big5 -o 2.utf8<\/pre>\n
\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/blog.csdn.net\/xiazdong\/article\/details\/7959495<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/how-using-vim.html<\/a>\u7f16\u8f91\uff1a\u51af\u632f\u534e\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb Vim\u662f\u4ecevi\u53d1\u5c55\u51fa\u6765\u7684\u4e00\u4e2a\u6587\u672c\u7f16\u8f91\u5668\u3002\u4ee3\u7801\u8865\u5168\u3001\u7f16\u8bd1\u53ca\u9519\u8bef\u8df3\u8f6c\u7b49\u65b9\u4fbf\u7f16\u7a0b\u7684\u529f\u80fd\u7279\u522b\u4e30\u5bcc\uff0c\u5728\u7a0b\u5e8f\u5458\u4e2d\u88ab\u5e7f […]<\/p>\n","protected":false},"author":63,"featured_media":12047,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-12005","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/12005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=12005"}],"version-history":[{"count":30,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/12005\/revisions"}],"predecessor-version":[{"id":251881,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/12005\/revisions\/251881"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/12047"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=12005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=12005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=12005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}