Steps to install vim plugin:
- cd ~
- run: git clone git@github.com:tabletenniser/dotfiles.git
For read only repo, use ssh: git clone https://github.com/tabletenniser/dotfiles.git - Install Vundle: git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
- ln -s ~/dotfiles/.vimrc ~/.vimrc
- vim ~/.vimrc
- :PluginInstall
NOTE: To install vim with +lua and +python3 support:
-
Linux: build vim from scratch with +lua:
sudo apt-get install vim-nox https://gist.github.com/akolosov/cedaac86b333a4ced95f -
Mac
brew install vim --HEAD --override-system-vim
and addexport PATH="/opt/homebrew/bin:$PATH"
to ~/.bash_profile -
Check https://github.com/ycm-core/YouCompleteMe/blob/master/README.md#macos if you have trouble getting YouCompleteMe to work.
Steps to set up shell welcome screen:
- sudo ln -s ~/dotfiles/motd.sh /etc/profile.d/
- Check /etc/ssh/sshd_config file to ensure all .sh files under /etc/profile.d folder gets executed.
Steps to set up .bashrc, .bashprofile, .gitconfig, .dircolors:
- ln -s ~/dotfiles/.bashrc ~/.bashrc
- ln -s ~/dotfiles/.bash_profile ~/.bash_profile
- ln -s ~/dotfiles/.gitconfig ~/.gitconfig
- ln -s ~/dotfiles/.gitignore ~/.gitignore
- ln -s ~/dotfiles/config.fish ~/.config/fish/config.fish
- ln -s ~/dotfiles/.dircolors ~/.dircolors
Steps to set up tmux:
- Install TPM (Tmux Plugin Manager): git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
- ln -s ~/dotfiles/.tmux.conf ~/.tmux.conf
- ln -s ~/dotfiles/ssh-tmux /usr/local/bin/ssh-tmux
- Open tmux and do "ctrl-A + I" to fetch and install all plugins
Steps to set up fish:
- apt-get install fish
- mkdir -p ~/.config/fish
- curl -L https://get.oh-my.fish | fish
- omf install agnoster bobthefish fishbone
- cp ~/.local/share/omf/themes/fishbone/fish_greeting.fish ~/.local/share/omf/themes/agnoster/
- omf theme agnoster
- chsh -s
which fish
NOTE:
- agnoster requires power line font to work (see ~/.local/share/omf/themes/agnoster/fish_prompt.fish), which can be installed from https://gist.github.com/1595572. Also require terminal setting (In iterm2, profile --> text --> Non ASCII key font) to use the powerline font installed.
- Enable ctrl+R in fish (installation of fzf):
brew install fzf
and$(brew --prefix)/opt/fzf/install
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf; and ~/.fzf/install
(Note: apt-get install fzf will not enable ctrl-R keybinding by default.)
To use it in vim, add the following to .vimrc: set rtp+=/usr/local/opt/fzf