Skip to content

Latest commit

 

History

History
209 lines (143 loc) · 2.96 KB

File metadata and controls

209 lines (143 loc) · 2.96 KB

日本語Englishvim

技術文書

目次

基本設定

set cursorline
set nobackup
set nocompatible
set number
set wrap

set encoding=utf-8
set laststatus=2

カーソルがある行を強調表示する。

set cursorline

バックアップファイルを保存しない。

set nobackup

Vimの前身となるテキスト編集器であるViとの互換性を無効化する。この設定を無効化することで、想定していない問題を未然に回避できる。

set nocompatible

各行の先頭にその行番号を表示する。

set number

画面の幅より長い行を折り返して、残りを次の行に表示する。

set wrap

文字エンコードをUTF-8に設定する。

set encoding=utf-8

常にステータス行を表示する。

set laststatus=2

ファイル型設定

filetype on
filetype plugin on
filetype indent on

ファイル型を検出する。

filetype on

検出されたファイル型に応じてプラグインを読み込む。

filetype plugin on

検出されたファイル型に応じてインデントを読み込む。

filetype indent on

構文設定

syntax enable

構文ハイライトを有効化する。

syntax enable

Technical Document

Table of Contents

Basic Settings

set cursorline
set nobackup
set nocompatible
set number
set wrap

set encoding=utf-8
set laststatus=2

Highlight the line the cursor exists.

set cursorline

Do not save backup files.

set nobackup

Disable compatibility with Vi, a text editor on which Vim bases. By disabling this configuration, you can avoid unexpected issues.

set nocompatible

Precede each line with its line number.

set number

Wrap lines longer than the width of the window and display the rest on the next line.

set wrap

Configure the character encoding to UTF-8.

set encoding=utf-8

Always display the status line.

set laststatus=2

Enable syntax highlighting.

syntax enable

Filetype Settings

filetype on
filetype plugin on
filetype indent on

Detect filetypes.

filetype on

Load plugins based on the detected filetype.

filetype plugin on

Load indents based on the detected filetype.

filetype indent on

Syntax Settings

syntax enable

Enable syntax highlighting.

syntax enable