Skip to content

Instantly share code, notes, and snippets.

@miminashi
Last active August 12, 2021 13:49
Show Gist options
  • Save miminashi/19873ba70222981302e4f93a862433e0 to your computer and use it in GitHub Desktop.
Save miminashi/19873ba70222981302e4f93a862433e0 to your computer and use it in GitHub Desktop.
サーバ上でvimをセットアップするスクリプト
#!/bin/sh
#
# Copyright (c) 2021 Shiro Miminashi Nohara
# Released under the MIT license
# https://opensource.org/licenses/mit-license.php
#
# USAGE 使い方:
# curl -s https://gist.githubusercontent.com/miminashi/19873ba70222981302e4f93a862433e0/raw | sh -s
#
set -eu
# vim
sudo apt-get -y install vim
sudo sh -c 'cat > /etc/vim/vimrc.local' <<'EOF'
set tabstop=2
set autoindent
set expandtab
set shiftwidth=2
nmap <C-h> 10h
nmap <C-l> 10l
nmap <C-j> 10j
nmap <C-k> 10k
set mouse=
set ttymouse=
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment