start using vim
- install vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- clone repo
git clone [email protected]:kevinchanyuanhui/vim-p.git
- apply setting
ln -s ~/dev/my/vim-p/.vimrc ~/.vimrc
- install plugin
vim
:PlugInstall
- install vim-prettier
cd ~/.vim/plugged/vim-prettier
npm i
- YCM install ts support
brew install cmake
cd ~/.vim/plugged/youcompleteme
python3 install.py --ts-completer --tern-completer
- ctags
brew install ctags-exuberant
# jsctags
~/.vim/plugged/jsctags
npm i
npm link
ln -s ~/dev/my/vim-p/.tern-config ~/.tern-config
-
F5 : toggle nerdtree
-
F6 : toggle tagbar
-
Ctrl + p : search
-
, + p : prettier
-
Ctrl + ] : jump ctags
-
:Tabularize /= : tab
-
cs"' : vim-surround
-
Ctrl + w + w : switch window