Last active
August 12, 2021 13:49
-
-
Save miminashi/19873ba70222981302e4f93a862433e0 to your computer and use it in GitHub Desktop.
サーバ上でvimをセットアップするスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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