Skip to content

Commit 5426324

Browse files
committed
add vim how to replace tab to space
1 parent 1d1d193 commit 5426324

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

memo/memo.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,15 @@ Git
204204
j git diff master --no-prefix -U999
205205
206206
207+
vim
208+
----
209+
210+
.. code-block:: vim
211+
212+
" http://stackoverflow.com/questions/9104706/how-can-i-convert-spaces-to-tabs-in-vim-or-linux
213+
:set tabstop=2 " To match the sample file
214+
:set noexpandtab " Use tabs, not spaces
215+
:%retab! " Retabulate the whole file,替换tab为空格
207216
208217
用markdown文件制作html ppt
209218
-------------------------------------------------------------

0 commit comments

Comments
 (0)