GithubHelp home page GithubHelp logo

42myvimrc's Introduction

42myvimrc

Usage

  • 以下のスクリプトを順次実行していく.
# キーリピートを設定する
defaults write -g InitialKeyRepeat -int 15
defaults write -g KeyRepeat -int 2

# ターミナル用に solarized をインストールする
cd && mkdir github && cd github
git clone https://github.com/tomislav/osx-terminal.app-colors-solarized solarized.git
# そして,ターミナルの設定から solarized を選択する

# goinfre へ brew をインストールする
mkdir -p /goinfre/$USER/homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C /goinfre/$USER/homebrew
echo 'PATH="/goinfre/$USER/homebrew/bin:$PATH"' >> $HOME/.zshrc

# 日本とのプログラミング用フォント Cica fonts をインストールする
cd /tmp
curl -L -O https://github.com/miiton/Cica/releases/download/v5.0.2/Cica_v5.0.2_with_emoji.zip
unzip Cica_v5.0.2_with_emoji.zip
## Mac
mv *.ttf /Users/$USER/Library/Fonts/
## そして,ターミナルの設定から Cica fonts を選択する
## Ubuntu
sudo mkdir  /usr/share/fonts/truetype/cica
sudo mv *.ttf /usr/share/fonts/truetype/cica/
sudo fc-cache -vf
gsettings get org.gnome.Terminal.ProfilesList list
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ font "Cica 12"

# vim をインストールする
brew install vim
# vim で solarized の色がきちんと出るようにする
bash ~/.cache/dein/repos/github.com/lifepillar/vim-solarized8/scripts/solarized8.sh

# git, tig, ccls, tmux, clang-format をインストールする
brew install git tig ccls tmux clang-format

# 予めある tmux の設定ファイルをインストールする
cd
curl -O https://raw.githubusercontent.com/solareenlo/dotfiles/main/tmux/.tmux.conf

# ファイル検索,ファイル内の単語検索ツールをインストールする
brew install fzf bat ripgrep
$(brew --prefix)/opt/fzf/install
echo "alias fzf='fzf --preview \"bat  --color=always --style=header,grid --line-range :100 {}\"'" >> ~/.zshrc

# zsh でハイライトと単語補完するツールをインストールする
brew install zsh-syntax-highlighting zsh-autosuggestions
echo "source /goinfre/$USER/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc

# norminette をバージョンアップさせる
/usr/local/bin/python3 -m pip install --upgrade pip
echo 'PATH=/Users/$USER/Library/Python/3.9/bin:$PATH' >> $HOME/.zshrc
python3 -m pip install --upgrade norminette
exec $SHELL -l

# C++ 用のリントをインストールする
pip install cpplint

# deoplete (vim 上で単語保管するプラグイン)に必要
pip3 install --user pynvim
echo "let g:python3_host_prog=\"$(which python3)\"" >> .vimrc

# 予めある .vimrc をダウンロードする
curl https://raw.githubusercontent.com/solareenlo/42myvimrc/main/.vimrc -o ~/.vimrc

# dein をインストールする
curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
sh ./installer.sh ~/.cache/dein

# dein を使って vim のプラグインをインストールする
vim ~/.vimrc
:call dein#install()
:call dein#update()

# zinit をインストールする
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma/zinit/master/doc/install.sh)"
  • C++ を書くときは,当該ディレクトリで以下を実行する.
# ccls へ標準ライブラリのパスを指定してあげる
curl -O https://raw.githubusercontent.com/solareenlo/42myvimrc/main/.ccls

42myvimrc's People

Contributors

solareenlo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.