All Projects → coolceph → vimrc

coolceph / vimrc

Licence: GPL-2.0 License
Best vimrc for CoolCeph team, used for C/C++, Python, PHP and Go.

Programming Languages

Vim Script
2826 projects
shell
77523 projects
python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to vimrc

dotvim
My Vim setup
Stars: ✭ 36 (-40.98%)
Mutual labels:  vimrc
ArcoLinux-dotfiles
ArcoLinux dotfiles for 2bwm / i3wm
Stars: ✭ 24 (-60.66%)
Mutual labels:  vimrc
vimtips
📖 Tips for Vim
Stars: ✭ 31 (-49.18%)
Mutual labels:  vimrc
vim
📝 minimalistic vimrc based on KISS principle @vim
Stars: ✭ 46 (-24.59%)
Mutual labels:  vimrc
neovim
🌟 Cool & Modularized vim configurations to work like an IDE
Stars: ✭ 17 (-72.13%)
Mutual labels:  vimrc
cosmos-nvim
A must-have configuration for Spacemacs users after defecting to Vim
Stars: ✭ 62 (+1.64%)
Mutual labels:  vimrc
dotfiles
Personal dotfiles
Stars: ✭ 18 (-70.49%)
Mutual labels:  vimrc
nvimrc
vimrc for neovim written in lua
Stars: ✭ 99 (+62.3%)
Mutual labels:  vimrc
dotfiles
vim ⌨️ tmux 🖥 git ⑃ zsh 💤
Stars: ✭ 12 (-80.33%)
Mutual labels:  vimrc
.dotfiles
Happiness in a git repo
Stars: ✭ 34 (-44.26%)
Mutual labels:  vimrc
dotfiles
There is no place like ~/
Stars: ✭ 19 (-68.85%)
Mutual labels:  vimrc
vim-python-ide
Python development config
Stars: ✭ 744 (+1119.67%)
Mutual labels:  vimrc
dotfiles
personal dotfiles with stow
Stars: ✭ 16 (-73.77%)
Mutual labels:  vimrc
dotfiles
🏡 My dotfiles
Stars: ✭ 64 (+4.92%)
Mutual labels:  vimrc
dotfiles
tmux.conf,vimrc,zshrc ....
Stars: ✭ 53 (-13.11%)
Mutual labels:  vimrc
vimrcfu
🔥 vimrcfu - Share your best vimrc snippets
Stars: ✭ 49 (-19.67%)
Mutual labels:  vimrc
dotfiles
My dotfiles for oh-my-zsh, vim and tmux 📟
Stars: ✭ 23 (-62.3%)
Mutual labels:  vimrc
dotfiles
Personal dotfiles 💻
Stars: ✭ 13 (-78.69%)
Mutual labels:  vimrc
dotfiles
📑 .dotfiles for Bash (Linux) / ZSH (Linux) / Git Bash (Windows) / Cygwin (Windows) / Bash on Ubuntu on Windows
Stars: ✭ 175 (+186.89%)
Mutual labels:  vimrc
nvim
Blazing fast neovim setup with 120 plugins.
Stars: ✭ 108 (+77.05%)
Mutual labels:  vimrc

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

  • Mac use terminal vim:
brew install cmake go node mono rust
brew install vim
  • Use MacVim:
brew install cmake go node mono rust

Download macvim from [https://github.com/macvim-dev/macvim/releases/latest] and install it to /Applications .

Do not install macvim from brew.

  • Linux user:

Linux users who do not use YouCompleteMe could use wip-neocomplcache branch, this branch only depend on vim and has no python/lua requirement.

And vim 7.4.1578+ is required.

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 CtrlP Mixed Search
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
Cscope Genrate cscope files 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.

  • Install all YouCompleteMe dependencies

    If you use Mac OS and brew:

    brew install cmake go node mono rust
    
  • MacVim Caught deadly signal SEGV

    If you install macvim from brew, when you running mvim, you may seee "Caught deadly signal SEGV".

    The reason is brew macvim use the wrong python.

    To solve this problem, we suggest you download MacVim from http://macvim-dev.github.io/macvim/

    But after install from http://macvim-dev.github.io/macvim/, if you also installed python3 on your Mac OS, this MacVim is going to have some new problem of python3.

    To solve this problem, if you want use MacVim with python2.7, just add this config in your ~/.vimrc file:

    if has('gui_macvim')
        let $PYTHONHOME="/usr/local/Frameworks/Python.framework/Versions/2.7"
    endif
    

    Or if you want use MacVim with python3.6:

    1.Compile YouCompleteMe using python3:

    cd ~/.vim/bundle/YouCompleteMe
    python3 ./install.py --all
    

    2.Add this config in your ~/.vimrc file:

    if has('gui_macvim')
        let $PYTHONHOME="/usr/local/Frameworks/Python.framework/Versions/3.6"
    endif
    

    The PYTHONHOME dir is like:

    Headers   Python    Resources bin       include   lib       share
    

Plugins used in CoolCeph vimrc

YCM-Generator

YankRing.vim

YouCompleteMe

a.vim

ack.vim

ag.vim

better-indent-support-for-php-with-html

csv.vim

ctrlp.vim

fzf.vim

fzf

gv.vim

hexmode

incsearch-easymotion.vim

incsearch-fuzzy.vim

incsearch.vim

indentLine

jellybeans.vim

molokai

neomru.vim

nerdcommenter

nerdtree-git-plugin

nerdtree

rainbow

rust.vim

syntastic

tabular

tagbar

tern_for_vim

ultisnips

undotree

vim-airline-themes

vim-airline

vim-better-whitespace

vim-cpp-enhanced-highlight

vim-easymotion

vim-exchange

vim-expand-region

vim-fugitive

vim-gitgutter

vim-go

vim-indexed-search

vim-json

vim-multiple-cursors

vim-operator-user

vim-pasta

vim-pathogen

vim-plist

vim-repeat

vim-signature

vim-snippets

vim-surround

vim-table-mode

vim-template

vim-tmux-navigator

vim-togglemouse

vim-togglenumber

vim-visual-star-search

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].