ssarcandy-vim
My vim settings and plugins, compatible with MacVim in OSX
Install
I use vim-plug for plugin managment.
Installation is simple, just do following command in terminal:
# Make sure that .vim/ isn't exist in your home dir
$ git clone https://github.com/SSARCandy/ssarcandy-vim.git ~/.vim
# Make soft link .vim/vimrc to ~/.vimrc
$ ln -s .vim/vimrc ~/.vimrc
Enter vim, type following command to install plugins: :PlugInstall
Screenshots
Common problems
- Q: airline glyphs cannot show normally.
- A: see instruction of airline fonts
- Q: neocomplete says need Lua supports
- A: see neocomplete README
- Q: ack.vim didn’t work.
- A: ack.vim required ack installed.
- Q: vim-go not working
- A: see vim-go readme
Plugin list
- mileszs/ack.vim
- moll/vim-bbye
- ctrlpvim/ctrlp.vim
- Raimondi/delimitMate
- othree/es.next.syntax.vim
- haya14busa/incsearch.vim
- Yggdroot/indentLine
- Shougo/neocomplete.vim
- scrooloose/nerdcommenter
- scrooloose/nerdtree
- scrooloose/syntastic
- godlygeek/tabular
- vim-scripts/taglist.vim
- vim-airline/vim-airline
- vim-airline/vim-airline-themes
- Chiel92/vim-autoformat
- skammer/vim-css-color
- airblade/vim-gitgutter
- fatih/vim-go
- pangloss/vim-javascript
- mxw/vim-jsx
- terryma/vim-multiple-cursors
- myhere/vim-nodejs-complete
- tpope/vim-sleuth
- honza/vim-snippets
- othree/yajs.vim
- chrisbra/csv.vim
- ivalkeen/nerdtree-execute
- davidhalter/jedi-vim
- andviro/flake8-vim
- sheerun/vim-polyglot
- vim-tw/vimcdoc-tw
Shortcuts
keys | mode | functions | note |
---|---|---|---|
\s |
NORMAL | save file (update) | |
Tab |
NORMAL | goto next tab file | |
` |
NORMAL | goto previous tab file | |
\d |
NORMAL | close current tab | will warning without saving |
\x |
NORMAL | close current window | |
ctrl + l |
NORMAL/INSERT | Toggle comments | |
ctrl + m |
NORMAL | open NERDtree | |
ctrl + ww |
NORMAL | switching windows | |
\m |
NORMAL | compile | must have Makefile at current dir |
:!./a.out |
NORMAL | execute | a.out is exe name |
ctrl + t |
NORMAL | open Taglist | for c/cpp only |
ctrl + p |
NORMAL | search file in working dir | |
= |
NORMAL | align = and : |
for js file only |
q |
ERROR LIST | close jshint error list | for js file only |
F9 |
NORMAL/INSERT | show jshint next error | for js file only |
F7 |
NORMAL/INSERT | show jshint previous error | for js file only |