vim

~/.vimrcの設定
syntax on
set tabstop=4
set autoindent
set expandtab
set shiftwidth=4
set fileencodings=utf-8
set fileformat=unix
set nocompatible
set whichwrap=b,s,h,l,<,>,[,]
set backspace=indent,eol,start
set scrolloff=5
set mouse=a
set ttymouse=xterm2
set nu
au BufRead,BufNewFile *.tt set filetype=html


ファイルの文字コードを変更する
:set fileencoding=文字コード


文字列を置き換える

開いているファイル全てにおいて置換をする。置換をするかどうかを確認したい場合は以下のようにcをつける。

%s/置換前文字列/置換後文字列/gc