Install vim after installing ubuntu
来源:互联网 发布:win10系统改mac地址 编辑:程序博客网 时间:2024/05/22 05:33
Code
installvim.sh
#!/bin/bashcd ~/sudo apt-get -y updatesudo apt-get -y install vim-gtk gitmkdir -p ~/.vim/bundlecd ~/.vim/bundlegit clone https://github.com/gmarik/Vundle.vim.gitcd ~/Downloadswget http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gztar -zxvf ctags-5.8.tar.gzcd ctags-5.8./configuremakesudo make installrm ctags-5.8.tar.gz ctags-5.8 -rftouch ~/.vimrc
~/.vimrc
set nocompatiblefiletype offset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()Plugin 'gmarik/Vundle.vim'Plugin 'scrooloose/nerdtree'Plugin 'scrooloose/nerdcommenter'Plugin 'scrooloose/syntastic'Plugin 'jiangmiao/auto-pairs'Plugin 'Yggdroot/indentLine'Plugin 'vim-scripts/python_fold'Plugin 'SirVer/ultisnips'Plugin 'honza/vim-snippets'"Plugin 'ctags.vim'Plugin 'taglist.vim'call vundle#end()filetype plugin indent on:colorscheme elflordset numberset cursorlineset tabstop=4set softtabstop=4set expandtabset shiftwidth=4set smartindentset foldenableset foldmethod=syntax"nerdtree"autocmd vimenter * NERDTreemap <C-b> :NERDTreeMirror<CR>map <C-b> :NERDTreeToggle<CR>"taglistlet Tlist_Show_One_File=1let Tlist_Exit_OnlyWindow=1let Tlist_File_Fold_Auto_Close=1let Tlist_Use_Right_Window=1let Tlist_Show_Menu=1let Tlist_Auto_Open=1"UltiSnipslet g:UltiSnipsExpandTrigger="<tab>"let g:UltiSnipsJumpForwardTrigger="<c-b>"let g:UltiSnipsJumpBackwardTrigger="<c-z>"
How to do
- Step 1: new a file named installvim.sh, and copy the code.
- Step 2: run it.
- Step 3: copy .vimrc
- Step 4: open vim
- Step 5: run :PluginInstall in vim
0 0
- Install vim after installing ubuntu
- Auto install opencv after installing Ubuntu
- Auto install opencv after installing Ubuntu
- Ten things after installing Ubuntu 12.04
- Install sdk after 1.6(Ubuntu)
- Config firefox after install ubuntu
- 30 Things I did After Installing Ubuntu 13.04 Raring Ringtail
- The 21th-30th things after installing Ubuntu 12.04
- Top Things to do After Installing Ubuntu 13.04 Raring Ringtail
- ubuntu 11.10 Things to tweak after install
- ubuntu 14.04 vim install youcompleteme
- grub rescue after install of Ubuntu 12.04 (dual boot)
- Ubuntu 16.06 login loop after install cuda+nvidia367+update
- Several Problems you may find after installing Ubuntu 10.04 on your ThinkPad T420
- repair GRUB after installing windows ...
- Installing IIS After .NET Framework
- Installing IIS After .NET Framework
- Problem installing vim
- maven整合SSH(一)--struts2篇
- eclipse的启动失败提示"发生了错误,请参阅日志文件"
- 省市县三级联动(与后台仅交互一次)
- 周六还上班,git走起
- Codeforces Round #360 (Div. 2) -- C. NP-Hard Problem (DFS二分图染色法)
- Install vim after installing ubuntu
- 基于OpenLayers实战地理信息系统视频
- 226. Invert Binary Tree
- linux 下 I2C 设备驱动 实现 总结 s3c2440
- 八种有效手段确保云计算服务安全通过加密等方法实现云数据安全
- Supervisor学习心得
- 高仿ios钉钉菜单展示效果
- 判断手机有无外置sd卡
- 读《摄影师的故事》