<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>vim &#8211; richliu&#039;s blog</title>
	<atom:link href="https://richliu.com/tag/vim/feed/" rel="self" type="application/rss+xml" />
	<link>https://richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Thu, 03 Oct 2019 08:40:45 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>python vim setting</title>
		<link>https://richliu.com/2019/01/16/3364/python-vim-setting/</link>
					<comments>https://richliu.com/2019/01/16/3364/python-vim-setting/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Wed, 16 Jan 2019 08:03:40 +0000</pubDate>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[vim]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=3364</guid>

					<description><![CDATA[<p>忘了那邊找來的，不過覺得不錯用 將以下設定存到 /etc/vim/vimrc or ~/.vimrc " co [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2019/01/16/3364/python-vim-setting/">python vim setting</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>忘了那邊找來的，不過覺得不錯用</p>
<p>將以下設定存到 /etc/vim/vimrc or ~/.vimrc</p>


<pre class="wp-block-preformatted">" configure expanding of tabs for various file types
au BufRead,BufNewFile *.py set expandtab
au BufRead,BufNewFile *.c set noexpandtab
au BufRead,BufNewFile *.h set noexpandtab
au BufRead,BufNewFile Makefile* set noexpandtab
" --------------------------------------------------------------------------------
" configure editor with tabs and nice stuff...
" --------------------------------------------------------------------------------
set expandtab " enter spaces when tab is pressed
set textwidth=120 " break lines when line length increases
set tabstop=4 " use 4 spaces to represent tab
set softtabstop=4
set shiftwidth=4 " number of spaces to use for auto indent
set autoindent " copy indent from current line when starting a new line
 " make backspaces more powerfull
set backspace=indent,eol,start
 set ruler " show line and column number
syntax on " syntax highlighting
set showcmd " show (partial) command in status line </pre>



<p></p>
<p>The post <a rel="nofollow" href="https://richliu.com/2019/01/16/3364/python-vim-setting/">python vim setting</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2019/01/16/3364/python-vim-setting/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>[Linux] binary file compare</title>
		<link>https://richliu.com/2009/02/24/738/binary-file-compare/</link>
					<comments>https://richliu.com/2009/02/24/738/binary-file-compare/#comments</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Tue, 24 Feb 2009 08:02:57 +0000</pubDate>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[cmp]]></category>
		<category><![CDATA[compare]]></category>
		<category><![CDATA[dhex]]></category>
		<category><![CDATA[diff]]></category>
		<category><![CDATA[hexdump]]></category>
		<category><![CDATA[hexedit]]></category>
		<category><![CDATA[vbindiff]]></category>
		<category><![CDATA[vim]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=738</guid>

					<description><![CDATA[<p>Linux 下 binary 相關的工具如下.. hexdump: 將 hex 值dump 出來 最快的比較方 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2009/02/24/738/binary-file-compare/">[Linux] binary file compare</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Linux 下 binary 相關的工具如下..</p>
<h3>hexdump:</h3>
<p>將 hex 值dump 出來</p>
<p>最快的比較方式就是, hexdump file 輸出到文字檔之後, 再比較</p>
<h3>hexedit:</h3>
<p>修改 binary file.</p>
<p>常用指令</p>
<p>F2: Save<br />
Ctrl + &gt; 到檔案最尾端<br />
Ctrl + s : Search, 找 binary  string , ex: &#8220;aabbccddee&#8221;</p>
<h3>Ctrl + x : Save and Exit</h3>
<h3>vbindiff</h3>
<p>視窗型的 binary diff 工具</p>
<h3><a href="http://freshmeat.net/projects/dhex/" target="_blank" rel="noopener">dhex</a></h3>
<p>同上, 不過 ubuntu 應該沒有收錄</p>
<h3>cmp</h3>
<p>$ cmp file1 file2 -l</p>
<p>這樣會列出兩個 binary file 的差異處.</p>
<h3>vim</h3>
<p>用 vimdiff 之後<br />
再下command (兩邊的視窗都要下)<br />
:%!xxd<br />
就解決了.</p>
<p>vim 的介面算很親切的.</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2009/02/24/738/binary-file-compare/">[Linux] binary file compare</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2009/02/24/738/binary-file-compare/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
