User Tools

Site Tools


vim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

vim [2010-08-05 19:30 CEST]
dominik created
vim [2010-08-12 18:22 CEST] (current)
dominik
Line 9: Line 9:
 :set ff=unix :set ff=unix
 :set fileformat=unix :set fileformat=unix
 +</​code>​
 +
 +===== Set file encoding =====
 +<code vim>
 +  :set encoding=utf-8
 +</​code>​
 +
 +===== Search and replace =====
 +
 +Replace all occurences of ''​foo''​ with ''​bar'':​
 +<code vim>
 +:​%s/​foo/​bar/​g
 </​code>​ </​code>​
vim.txt · Last modified: 2010-08-12 18:22 CEST by dominik