User Tools

Site Tools


vim

vim

Set file format (line-endings)

:set ff=dos
:set fileformat=dos
 
:set ff=unix
:set fileformat=unix

Set file encoding

  :set encoding=utf-8

Search and replace

Replace all occurences of foo with bar:

:%s/foo/bar/g
vim.txt · Last modified: 2010-08-12 18:22 CEST by dominik