0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

vimrcに関するメモ

Posted at

vimrcに色々と設定を書いていたのですが,反映されずに,バージョンとか絡んでんのかな?と思って放置していました.

重い腰をあげて調べて,解決に至ったので,そのためのメモです.

肝心のvimrcの中身

set nocompatible
set fenc=utf-8
set nobackup
set noswapfile
set autoread
set hidden
set showcmd 
set number
set cursorline
set cursorcolumn
set virtualedit=onemore
set smartindent
set visualbell
set showmatch
set laststatus=2
set wildmode=list:longest 
set list listchars=tab:\>\-
set expandtab
set tabstop=2
set shiftwidth=2
set ignorecase
set smartcase
set incsearch
set wrapscan
set hlsearch
syntax on

syntax onを反映したくて...

なんで反映されないん?
嫌がらせすか?
エラーは吐かない.
ただ,vi上で:syntax onと入力すると,反映されるそうですが,
私の場合はあなたのバージョンではサポートしていません!
くそなめエラーを表示される始末......

そこで色々調べると,新規で拡張パックのようなもののインストールが必要らしい.

$sudo apt-get update
$sudo apt-get install vim-nox -y

このvim-noxってものが必要らしいです.
ubuntuではvim-tinyという最小構成しかインストールされないそうなので
私が使っているDebianでもおそらく同じでしょう.調べてません.

なにはともあれ,syntax onが反映されたので良しとしますか.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?