LoginSignup
10
7

More than 5 years have passed since last update.

Macターミナルvim設定

Posted at

自分用にターミナルvim設定のメモ。

OSバージョン

macOS Sierra 10.12.2

vimインストール

brew install vim

行番号追加

touch ~/.vimrc
vim ~/.vimrcで下記を追加
  set number

カーソルライン・カーソルカラム

参考(http://qiita.com/marrontan619/items/541a1374e1ac672977e6)

vim ~/.vimrcで下記を追加
  set cursorline
  set cursorcolumn
  syntax on
  colorscheme molokai
  set title
  set number
  set ambiwidth=double
  set tabstop=4
  set expandtab
  set shiftwidth=4
  set smartindent
  set cursorline
  set cursorcolumn

カラースキームのmorokaiインストール

mkdir ~/.vim
cd ~/.vim
mkdir colors
git clone https://github.com/tomasr/molokai
mv molokai/colors/molokai.vim ~/.vim/colors/

表示名変更

vim /etc/bashrc で下記に書き換え
  PS1='[\u:\w]\$ '
10
7
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
10
7