LoginSignup
1
3

More than 5 years have passed since last update.

Windows10のVimの設定(molokaiとか使う)

Posted at

Vimでmolokai使いたくてmacで設定した内容をgithubに入れてwindowsでも使おうと思ったらmolokaiが反映されなかったのでメモ。

Macの場合

一応ここに入っている.vimrcと.vimの内容でmolokaiになった。
.vimrcは下記。

set ttyfast
set cursorline
set cursorcolumn
syntax on
colorscheme molokai
set title
set number
set ambiwidth=double
set tabstop=4
set noexpandtab
set shiftwidth=4
set softtabstop=0
set smartindent
set cursorline
set cursorcolumn

Windows10の場合

deinというプラグイン管理ツールを使って、molokaiを入れた。

deinのダウンロード

参考:dein.vimを使ってみる

$ cd
$ mkdir .vim
$ cd .vim
$ git clone https://github.com/Shougo/dein.vim.git

.vimrcの設定

$ cd
$ vim .vimrc

.vimrc

if &compatible
    set nocompatible
endif
set runtimepath+=~/.vim/dein.vim

call dein#begin(expand('~/.vim/dein'))
call dein#add('tomasr/molokai')
call dein#end()

if dein#check_install()
    call dein#install()
endif

colorscheme molokai
syntax on
set t_Co=256
set title
set number
set ambiwidth=double
set tabstop=4
set noexpandtab
set shiftwidth=4
set softtabstop=0
set smartindent
1
3
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
1
3