LoginSignup
0
2

More than 5 years have passed since last update.

centos7にvim8をインストール(Ansible)

Last updated at Posted at 2018-06-08

いろいろ辛くてvim8を開発用のvagrantに入れた

環境

$ cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core) 

ansible

roles/vim/tasks/main.yml
- name: check vim.
  stat: path=/usr/local/bin/vim
  register: vim_bin

- block:
  - name: yum install.
    yum: name={{ item }} state=latest
    with_items:
      - lua-devel
      - python-devel
      - ruby-devel
      - ncurses-devel

  - name: clone vim8.
    git: repo=git://github.com/vim/vim.git
         dest=/tmp/vim
         version=v8.1.0037

  - name: make vim8.
    shell: "{{ item }}"
    args:
      chdir: /tmp/vim/src
    with_items:
      - ./configure --with-features=huge --enable-multibyte --enable-luainterp=dynamic --enable-gpm --enable-cscope --enable-fontset --enable-fail-if-missing --prefix=/usr/local --enable-pythoninterp=dynamic --enable-rubyinterp=dynamic
      - make
      - make install
    become: yes

  when: not vim_bin.stat.exists

これで快適

0
2
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
2