Vim 常用套件與指令 Jul 5th, 2017 9:56 am | Comments 視窗 將目前視窗放到最大 1 Ctrl + w + _ 移動到上/下面視窗 1 Ctrl + w + up/down 套件管理 從 vimrc 自動安裝 Vundle " http://erikzaadi.com/2012/03/19/auto-installing-vundle-from-your-vimrc/ " Setting up Vundle - the vim plugin bundler let iCanHazVundle=1 let vundle_readme=expand('~/.vim/bundle/vundle/README.md') if !filereadable(vundle_readme) echo "Installing Vundle.." echo "" silent !mkdir -p ~/.vim/bundle silent !git clone https://github.com/VundleVim/Vundle.vim ~/.vim/bundle/vundle let iCanHazVundle=0 endif set nocompatible " be iMproved, required filetype off " required set rtp+=~/.vim/bundle/vundle/ call vundle#begin() Plugin 'VundleVim/Vundle.vim' "Add your bundles here Plugin 'Syntastic' "uber awesome syntax and errors highlighter Plugin 'altercation/vim-colors-solarized' "T-H-E colorscheme Plugin 'https://github.com/tpope/vim-fugitive' "So awesome, it should be illegal "...All your other bundles... if iCanHazVundle == 0 echo "Installing Vundles, please ignore key map error messages" echo "" :PluginInstall endif call vundle#end() "must be last filetype plugin indent on " load filetype plugins/indent settings colorscheme solarized syntax on " enable syntax " Setting up Vundle - the vim plugin bundler end