Skip to content

Instantly share code, notes, and snippets.

View adonis0147's full-sized avatar

Adonis Ling adonis0147

View GitHub Profile
@adonis0147
adonis0147 / build-YouCompleteMe-from-source.md
Last active August 5, 2017 10:20
Build YouCompleteMe from source

Build YouCompleteMe from Source

set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set diffexpr=MyDiff()
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
@adonis0147
adonis0147 / msys-vim-install.sh
Last active March 24, 2016 09:50
build Vim on MSYS2
#!/bin/bash
pacman -S ncurses-devel python2
ln -s /usr/bin/python2.exe /usr/bin/python
wget http://www.lua.org/ftp/lua-5.3.2.tar.gz
tar -zxvf lua-5.3.2.tar.gz
cd lua-5.3.2
make mingw
make install INSTALL_TOP=/usr/local TO_BIN="lua.exe luac.exe lua53.dll"
@adonis0147
adonis0147 / mingw64-ycm-install.sh
Created March 23, 2016 11:55
build ycm on MSYS2
#/bin/bash
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-gdb mingw-w64-x86_64-cmake winpty-git
sed -i '/alias python/d' ~/.bashrc
echo "alias python='winpty python'" >> ~/.bashrc
source ~/.bashrc
mkdir build
cd build
@adonis0147
adonis0147 / install.sh
Created March 21, 2014 04:10
The dependencies of scipy
sudo apt-get install gfortran libopenblas-dev liblapack-dev
@adonis0147
adonis0147 / _vimrc_simple
Last active July 9, 2017 02:58
Simple Config for gVim on Windows
colorscheme desert
set guifont=Courier\ New:h13
set guioptions-=T
set guioptions-=m
highlight MatchParen guibg=NONE guifg=red gui=bold
set number
set nobackup
set autoread
set tabstop=4
sudo apt-add-repository ppa:ekozincew/ppa
sudo apt-get update && sudo apt-get install wifi-hostapd-ap
@adonis0147
adonis0147 / Vim_install.sh
Last active January 5, 2022 11:48
Compile Vim from source.
#!/bin/bash
sudo dpkg -P vim vim-runtime vim-common vim-tiny
sudo apt-get install libncurses5-dev libperl-dev python-dev ruby-dev mercurial checkinstall lua5.2 liblua5.2-dev
sudo ln -s /usr/include/lua5.2/ /usr/include/lua
proxychains hg clone https://code.google.com/p/vim/
cd vim
./configure --prefix=/opt/vim \
cd ~/.vim
sed -i '5aset rtp+=~/.vim/bundle/powerline/powerline/bindings/vim' plugins.vim
cd ~/.vim/bundle/powerline/font
mkdir -p ~/.fonts
cp PowerlineSymbols.otf ~/.fonts
fc-cache -vf ~/.fonts
mkdir -p ~/.config/fontconfig/conf.d