yjlintw / dotfiles

NeoVim + git + zsh + tmux bliss
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Things needs to be done for linux #1

Open yjlintw opened 6 years ago

yjlintw commented 6 years ago
  1. install zsh (log out after install the dotfiles)
  2. install git
  3. install rake
  4. install tmux (latest, v2.1. which is installed from sudo apt-get won't work with the zshrc in this dotfiles)
  5. install neovim
  6. install pip2/pip3
  7. upgrade neovim with pip2 and pip3
  8. symbolic link to ~/.config/nvim is wrong
  9. compile YCM
  10. Custom terminal font to Monospace Regular
  11. Maps Caps Lock to Esc and Control
  12. install fasd
  13. install font Hack from powerline/fonts
  14. change color scheme to Tango
yjlintw commented 6 years ago

Maps Caps Lock to Esc and Control

First install it:

sudo apt-get install xcape

Then configure it in the following way:

# make CapsLock behave like Ctrl:
setxkbmap -option ctrl:nocaps

# make short-pressed Ctrl behave like Escape:
xcape -e 'Control_L=Escape'

credit: http://tiborsimko.org/capslock-escape-control.html

yjlintw commented 6 years ago

Install fasd

$ sudo add-apt-repository ppa:aacebedo/fasd
$ sudo apt-get update
$ sudo apt-get install fasd
yjlintw commented 6 years ago

More elegant way

Install tmux

Download it here Install Dependencies (libevent and ncurses)

$ sudo apt-get install libevent-dev libncurses-dev pkg-config

Install tmux

$ ./configure && make
$ sudo make install
yjlintw commented 6 years ago

Install Neovim

$ sudo add-apt-repository ppa:neovim-ppa/stable
$ sudo apt-get update
$ sudo apt-get install neovim

Upgrade neovim with pip2 and pip3

$ pip2 install --upgrade neovim
$ pip3 install --upgrade neovim
yjlintw commented 6 years ago

YouCompleteMe

Consider using oblitum/YouCompleteMe instead

$ sudo apt-get install build-essential cmake

More information here

$ cd ~/.local/share/nvim/site/plugged/YouCompleteMe
$ ./install.py --clang-completer
yjlintw commented 6 years ago

Switch to ZSH on startup (For WSL only)

add the following line to .bashrc

# Switch to ZSH shell
if test -t 1; then
exec zsh
fi