zoutaiqi / vimrc

Best vimrc for CoolCeph team, used for C/C++, Python, PHP and Go.

Home Page:https://github.com/coolceph/vimrc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Best vimrc for CoolCeph team, used for C/C++, Python, PHP and Go.

The design principles of coolceph vimrc is simple, green and easy. Coolceph vimrc is designed running well on Linux and Mac, just need ctags, git and powerline_fonts. And also coolceph vimrc can be copied and installed anywhere by just a tarball.

Enjoy it.

alt tag

Requirements

  • Vim/MacVim 7.4+ compiled with if_lua. If :echo has("lua") returns 1, then you're done; otherwise, Mac OSX see below.
brew install vim --with-lua
brew install macvim --with-lua
  • Ctags

Install

  • vimrc will install to ~/.vim, require ~/.vim does not exist.
bash -c "$( curl https://raw.githubusercontent.com/coolceph/vimrc/master/setup.sh )"

ShortCuts

Key Function
F2 Paste mode toggle(normal/paste)
F3 NerdTREE toggle
F4 Tagbar toggle
F5 LineNumber Model Switch
F6 Whether or not show listchar
F7 Update ctags
F8 Open undotree
F9 Enter multi-cursor-mode
F10 Enter Rankring clipboard
F12 Mouse mode switch (mouse=a/-a)
SpaceSpace Activate Unite Search Plugin
Ctrl+h/j/k/l Switch between windows.
Ctrl+c Completely quit vim without saving

The leader key is ','.

Quick Commands

Cmd Function
Ctags Genrate ctags for pwd
Gotags Genrate gotags for pwd
Hex/Asc Swtich between Asc and Hex
Hexmode Toggle Hex/Asc mode
Cswp Clear swp files

FAQ

  • How should I install vimrc on a Linux server with no internet

    Vim version 7.4+ is needed on your Linux server, then the steps:

    1. You need install vimrc on a Mac/Linux with internet first.

    2. Then run "~/.vim/setup.sh -b", a "vimrc-2016xxxx-mini.tar.gz" file will appear in your ~ dir.

    3. Copy the "vimrc-2016xxxx-mini.tar.gz" to your user's home dir on Linux server.

    4. Run "cd ~;rm -rf ~/.vim;tar -zxvf vimrc-2016xxxx-mini.tar.gz;.vim/setup.sh -l"

    You now get full-featured vimrc on your Linux server.

  • My state line has strange characters

    You should install the powerline fonts into your system and update the config of your terminal to use powerline fonts to display the Non-ASCII characters.

    In the fonts dir, there is some powerline fonts you could choose.

    You could found more powerline fonts in powerline_fonts

    Remarks: 1. The SourceCodePro-Regular.otf contains all unicode character and new powerline glyphs. If you use a font that not contains powerline glyphs, you could setup your iTerm to use a different font for Non-ASCII text to use SourceCodePro-Regular. 2. The Menlo-OldPowerline.otf contains old powerline glyphs, installing it will make old powerline display correct on Mac OSX. 3. The SFMono is licensed to registered third-party developers for the design and development of applications for iOS, macOS and watchOS, please note that it is forbidden to use this typeface for your commercial project.

  • My vim is ugly, it seems some color are missing

    You should set your env TERM=xterm-256color, you can do this by the following two ways:

    1. run ~/.vim/install.sh, it will set TERM to xterm-256color for bash/zsh. If you use other shells, you need to set TERM yourself.

    2. Your terminal util like iterm is also needed to set for xterm-256color too. You need set it yourself too.

Plugins used in CoolCeph vimrc

STL-Syntax

ack.vim

ag.vim

jellybeans.vim

neocomplete.vim

neomru.vim

neosnippet-snippets

neosnippet.vim

nerdcommenter

nerdtree

rainbow_parentheses.vim

tabular

tagbar

tagbar-phpctags.vim

taghighlight

undotree

unite.vim

vim-airline

vim-airline-themes

vim-easymotion

vim-fugitive

vim-gitgutter

vim-go

vim-multiple-cursors

vim-pathogen

vim-signature

vim-togglenumber

vimproc.vim

vimshell.vim

vim-expand-region

vim-trailing-whitespace

vim-surround

vim-repeat

a.vim

indentLine

syntastic

rust.vim

vim-clang

vim-extradite

incsearch.vim

incsearch-fuzzy.vim

incsearch-easymotion.vim

YankRing.vim

hexmode

vim-pasta

vim-operator-user

vim-plist

vim-json

vim-exchange

hexmode

vim-table-mode

About

Best vimrc for CoolCeph team, used for C/C++, Python, PHP and Go.

https://github.com/coolceph/vimrc

License:GNU General Public License v2.0


Languages

Language:Vim Script 82.5%Language:Shell 17.5%