/dotvim

max used vimrc

Primary LanguageVim Script

Max's Vimrc

Author: Chuanyu Tseng (Max_Tseng) maxtcy@gmail.com

Quick Start

1. Description:

  • Vundle is not maintain anymore.
  • Using (plug ) instead

2. Steps:

  • Unix Like Env.
- git clone http://github.com/maxtcy/dotvim.git ~/.vim
- curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
	https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

3. Install plugins in VIM:

- You can execute the scripts under ~/.vim/.
	1. 'env.sh' would setup the correspondings of vim.
	2. 'bash_pwl.sh' would setup the powerline within terminal prompt.

- Using symbolic link command to link `.vimrc` to `~/.vim/vimrc`
	$ ln -s src dst
	$ ln -s ~/.vim/vimrc ~/.vimrc

- Launch `VIM` and keyin `:PlugInstall` in terminal.

[Mac Env needs to know]
- If the platform is Mac, Must copy ~/.vim/vimrc to /usr/share/vim/

4. Airline detail

- Need to install extra font (powerline used)
	mkdir .font/
	cd .font/
	git clone https://github.com/Lokaltog/powerline-fonts.git
	cd powerline-fonts/
	./install.sh
  1. Install universal-ctags & global

	wget http://tamacom.com/global/global-6.6.4.tar.gz
	./configure --with-universal-ctags=/usr/local/bin/ctags
	make -j4
	sudo make install
  1. Searching tool
  1. Misc
  • Need to review some customize setting path in vimrc, such as ctags, yankring
  1. Profiling Plugin Launch Time, Ref
Perl version as an example:
> perl <(curl -sSL https://raw.githubusercontent.com/hyiltiz/vim-plugins-profile/master/vim-plugins-profile.pl)

Others

  • Node.js

sudo apt-get remove nodejs curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs

  • npm

sudo apt install npm

  • instant-markdown-d

sudo npm -g install instant-markdown-d

Furture Work

Improve of vimrc more readable