Vim 常用套件與指令
- Productivity
- 05 Jul, 2017
視窗
將目前視窗放到最大
Ctrl + w + _
移動到上/下面視窗
Ctrl + w + up/down
套件管理
" 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
” 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 endifcall 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