---
# System prepended metadata

title: vim の設定 Ubuntu　2021-04-14
tags: [linux, vim, Ubuntu]

---

---
lang: ja-jp
breaks: true
---
# vim の設定 Ubuntu　2021-04-14

```shell=
$vi ~/.vimrc

----
set ruler
set tabstop=4
set scrolloff=3
set title
set ignorecase
set smartcase
set hlsearch
set backspace=indent,eol,start
set showmatch
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8,iso-2022-jp,euc-jp,sjis
set fileformats=unix,dos,mac
set laststatus=2
set statusline=%{(&fenc!=''?&fenc:&enc)}\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]

colorscheme default
syntax on

hi SpecialKey   term=NONE cterm=NONE ctermfg=3 guifg=Yellow
hi Title        ctermfg=NONE ctermbg=NONE
hi Error        ctermfg=NONE ctermbg=NONE
hi Comment      ctermfg=2
hi Constant     ctermfg=NONE
hi Search       cterm=reverse ctermfg=Yellow ctermbg=black
hi Type         cterm=bold ctermfg=5
hi PreProc      cterm=bold ctermfg=1
hi Statement    cterm=bold ctermfg=4
hi Special      ctermfg=NONE
hi Identifier   ctermfg=NONE
hi Underlined   cterm=NONE ctermfg=NONE
hi Function     cterm=NONE ctermfg=NONE
hi Operator     ctermfg=NONE
hi htmlTag      cterm=bold ctermfg=4
hi htmlEndTag   cterm=bold ctermfg=4
hi htmlTagName  cterm=bold ctermfg=4
hi htmlArg      cterm=NONE ctermfg=5
hi htmlBold     term=standout
hi sqlKeyword   ctermfg=4
hi sqlSpecial   ctermfg=1
----
```

###### tags: `vim` `linux` `Ubuntu`
