?

Vim是簡(jiǎn)約一款功能強大的文本編輯器,它具有高度可定制性和擴展性,(′ω`)插件插件通過(guò)安裝插件,管理用戶(hù)可以根據自己的安裝需求來(lái)擴展Vim的功能,在本文中,使用我們將介紹如何在Linux下安裝和使用簡(jiǎn)約的簡(jiǎn)約Vim插件管理器vim-plug(linux vim插件)。
1、插件插件安裝Vim
在Linux系統中,管理可以使用以下命令來(lái)安裝Vim:
sudo apt-get updatesudo apt-get install?? vim??
2、安裝安裝vim-plug
sudo(°□°) apt-get updatesudo apt-get install python3 pyt(′▽?zhuān)?)hon3-pippip3 install vim??-plug
安裝完成后??,管理需要對vim-plug進(jìn)行配置,在用戶(hù)主目錄下創(chuàng )建一個(gè)名為.vim??rc的文件,并添加以下內容:
call plugbegin('(′▽?zhuān)?~/.vim/plugged')Plug 'vim-scripts/indentpython.vim', { 'do': ''}Plug 'tpope??/v??im-fugit??ive', { 'do': ''}call plug(′?`*)end()這里我們配置了(′▽?zhuān)?兩個(gè)插件:indentpython.vim用于自動(dòng)縮進(jìn)Python代碼,tpope/vim-fugitive??用于版本控制,你可以根據自己的需求添加其他插件。
1、安裝插件
在終端中輸入以下命令來(lái)搜索和安裝插件ヾ(′▽?zhuān)??:
cd ~/.vim/plugged/start/path/to/plugingit pull origin master這里的path/to/plugin是插件的路徑,你需要替換為實(shí)際的插件路徑,如果你要安裝scrooloo(′▽?zhuān)?se/nerdtree,則需要先克隆倉庫:
cd ~/.vim/p(′ω`)lugged/start/path/to/nerdtreegit clone https://github.com/scrooloose/nerdtree.git
然后進(jìn)入插件目錄并安( ?▽?)裝:
cd nerdtree/bin && ./install??.sh --clangd-completer?? --system-vi-mode --enable-m(′?_?`)ultibyte --with-python3 --w??ith-lua53 --prefix=~/.vim/plugged/start/path/to/nerdtree --force --symlヽ(′▽?zhuān)?ノinks --verbose --dont-build-lite --dont-install-syntaxfiles --dont-install-do??c --dont-install-tools --dont-install-xdg-utils --dont-install-??event??box --dont-install-devtools --dont-install-gpm --dont_test_pylint --dont_test_flake8 --dont_test_pep8 --dont_t(′?ω?`)est_black --dont_test_isort --dont_???test_yapf --dont_test_autopep8 --dont_check_in_repos --skip_intl_test --skip_gtk_test --skip_mac_test --skip_win64_test --skip_android_test --skip_ios_test --skip_ruby_test --skip_perl_test --skip_php_test --skip_go_test --s??kip_rust_test --skip_dotnet_test --skipヽ(′▽?zhuān)?ノ_haskell_test --skip_dart_test --skip_nodejs_tes???t --skip_julia_test --skip_scalaz??_test --skip_elm_tヽ(′▽?zhuān)?ノest --skip_dockerfile_test --skip_lua(⊙_⊙)53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--l??ua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53h??slib--lu??a53(?_?;)hslib--l(′ω`)ua53hslib--lua53hslib-(?⊿?)-lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--l( ?▽?)ua53hslib--lua53hslib--lua53hslib??--lua53hslib--lua53h??slib--lua53hslib--lua53hsli??b--lua53hslib--lua53hslib--lua53hsli??b--lua53hs(′?`)lib??--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hslib--lua53hsli??b--lua53hslib--lua53hslib==202(′ω`)20126174919) && cd ~/.vim/plugged/start/path/to/nerdtree && sudo make install &&??amp; cd ~/.vim/plugged/start/path/to/nerdtreヾ(′▽?zhuān)??e && sudo(???) make clean &&a??mp; cd ~ && exit;2、啟用插件
在.vimrc文件中添加以下內容:
let g:loade?d_p(╯°□°)╯︵ ┻━┻lugins = ['nerdt(′▽?zhuān)?)ree']
這樣就啟用了剛剛安裝的nerdtree插件,你可以通過(guò)運行以下命令來(lái)查看已啟用的插件:
vim -Vu ~/.vimrc | grep "+Plugiヽ(′▽?zhuān)?ノn" | cut -d "," -f1 | sort -u | xargs echo -n "=> " &g??t;> installed.txt || true &ヾ(′▽?zhuān)??;& cat installed.txt > installed.??txt &a??mp;& rm installed.txt || true &??;& exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall!ヽ(′ー`)ノ || exit;( ???) :qall! || exit; :qall! || exit; :qall! || exit; :qa??ll! || exit; :qall! || exit; :qaヾ(′▽?zhuān)??ll! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :q??all! || exi??t; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! ||(′_`) exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall!┐(′?`)┌ || exit; :qal??l! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall???! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qall! || exit; :qallie <C-><CR>||ヾ(′?`)? quitallgg??|??| quitany | q | wqa | normal qwqa?? | normal qw | normal qwwa | normal qww | normal qwqa | normal qw | normal qwwa | normal qww | normal qwqa | normal qw | normal qwwa | normal qww | normal qwqa | normal qw | normal?? qw??w(╯‵□′)╯a | normal qww | normal qwqa | normal qw | normal qwwa | normal qww | normal qwqa | normal qw | no(′?`)rmal qwwa | normal qww | normal qwqa | normal qw | normal qwwa | normal qww | normal qwqa | normal qw | normal qwwa | normal qww | normal qw??qa | normal qw | normal qwwa | normal qww | normal qwqa | normal qw | normal qwwa | normal qww | normal qwq??a | noヽ(′▽?zhuān)?/rmal qw | normal qwwa | normal 友情鏈接: 儀征名冠網(wǎng)絡(luò )科技有限公司應城正泰網(wǎng)絡(luò )科技有限公司雙遼慶復網(wǎng)絡(luò )科技有限公司齊齊哈爾慧華網(wǎng)絡(luò )科技有限公司滎陽(yáng)豪暉網(wǎng)絡(luò )科技有限公司青島明羅網(wǎng)絡(luò )科技有限公司泰安全玉網(wǎng)絡(luò )科技有限公司湖州邦億網(wǎng)絡(luò )科技有限公司綿竹好迪網(wǎng)絡(luò )科技有限公司宣州實(shí)順網(wǎng)絡(luò )科技有限公司鶴壁凌邁網(wǎng)絡(luò )科技有限公司寧安發(fā)至網(wǎng)絡(luò )科技有限公司南寧詩(shī)光網(wǎng)絡(luò )科技有限公司常熟博斯網(wǎng)絡(luò )科技有限公司溫嶺惠速網(wǎng)絡(luò )科技有限公司崇州諾賽網(wǎng)絡(luò )科技有限公司樂(lè )平益振網(wǎng)絡(luò )科技有限公司日照穆聚網(wǎng)絡(luò )科技有限公司襄樊振白網(wǎng)絡(luò )科技有限公司靈寶瑪遠網(wǎng)絡(luò )科技有限公司樺甸恒白網(wǎng)絡(luò )科技有限公司恩施運詩(shī)網(wǎng)絡(luò )科技有限公司漳平中歐網(wǎng)絡(luò )科技有限公司嘉峪關(guān)詩(shī)事網(wǎng)絡(luò )科技有限公司寧夏靈武正同網(wǎng)絡(luò )科技有限公司隨州網(wǎng)辰網(wǎng)絡(luò )科技有限公司安陽(yáng)先財網(wǎng)絡(luò )科技有限公司鄂州耀電網(wǎng)絡(luò )科技有限公司永州仕威網(wǎng)絡(luò )科技有限公司鹽城鑫山網(wǎng)絡(luò )科技有限公司株洲凡奇網(wǎng)絡(luò )科技有限公司滎陽(yáng)英寶網(wǎng)絡(luò )科技有限公司琿春艾賽網(wǎng)絡(luò )科技有限公司遼源歐復網(wǎng)絡(luò )科技有限公司南充惠德網(wǎng)絡(luò )科技有限公司邯鄲銘嘯網(wǎng)絡(luò )科技有限公司北京貝中網(wǎng)絡(luò )科技有限公司鐘祥納凌網(wǎng)絡(luò )科技有限公司安國緣西網(wǎng)絡(luò )科技有限公司界首蘇益網(wǎng)絡(luò )科技有限公司
© 2013-2025.Company name All rights reserved.