思路:系統內建的vim常常落後很多版本,所以自己增加軟體庫。可以從最新的軟體庫中下載。
- sudo add-apt-repository ppa:jonathonf/vim
- sudo apt update
- sudo apt install vim
- vim --version >檢查vim的版本
跟github同步vimrc
http://hahagood.com/blog/2013/02/19/%E4%BD%93%E9%AA%8Cgithub%E5%90%8C%E6%AD%A5vimrc/
思路:將github上面的vimrc檔案,用git clone下載到.vim資料夾,然後將vimrc檔案用軟連接到桌面的.vimrc。然後使用PlugInstall安裝套件。
思路:將github上面的vimrc檔案,用git clone下載到.vim資料夾,然後將vimrc檔案用軟連接到桌面的.vimrc。然後使用PlugInstall安裝套件。
- git clone https://github.com/duofilm18/myvim ~/.vim
- ln -s .vim/vimrc ~/.vimrc >軟鏈結
- curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- $ vim +PlugInstall +qall
- PlugInstall/PlugUpdate/PlugList/PlugClean
我的外掛
- vim-plug >好像比vundle好
- flazz/vim.colorschemes
- nerdtree
- ctrlp
- mattn/emmet-vim
colorscheme PaperColor
外掛參考網頁
https://ruby-china.org/topics/25295
解法:
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . --cached --exclude-standard']
來源
https://www.reddit.com/r/vim/comments/2yg5ss/has_your_ctrlp_gotten_slow_change_the_indexer_and/
外掛參考網頁
https://ruby-china.org/topics/25295
CtrlP搜尋非常慢
vim搜尋外掛crtlP的搜索速度超級慢,看來是因為git檔案的關係,使用:輸入以下文字,排除掉git追蹤檔案就可以讓搜尋瞬間完成。YEAH解法:
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . --cached --exclude-standard']
來源
https://www.reddit.com/r/vim/comments/2yg5ss/has_your_ctrlp_gotten_slow_change_the_indexer_and/
vim-plug
- PlugInstall
- PlugUpdate
- PlugClean[!]
沒有留言:
張貼留言