This is my own vim configurations along with some plugins
You can copy, modify and use it freely, without any restricts
-
.vimrc
is the vimrc file, please put it under your$HOME
dir. -
.vim
is a bundle of vim plugins, color schemas and syntax dicts, please put it under your$HOME
dir.
Ctrl-t
open/close the tag barCtrl-o
open new file withNERDTree
pluginCtrl-b
open the buffer explorerCtrl-Left
last bufferCtrl-right
next bufferCtrl-d
explore current menuCtrl-F9
runmake
###C/C++ (usually for acm coding)
F9
compile with-Wall -g
F8
open gdbF7
run the excutableF4
cat the code to the screen and copy the c/cpp file into the clip board.
###Python
F9
run current python fileF8
usepep8
to lint the code. Please installpep8
first.F4
same as C/C++'sF4
###Javascript
F9
useJSHint
plugin to lint the codeF7
usenode
to run the fileF4
same as C/C++'sF4
###Java
F9
complie the java file with-Xlint:deprecation
F7
run the fileF4
same as C/C++'sF4
###Jade Template
F9
complie the template into htmlF8
remove complied html fileF7
view the complied html file withvsplit
###Less
F9
complie the less file
###The Powerline plugin display mess chars
This is due to you haven't install the fancy
font that Powerline needed.
- You can find the specify font under
.vim/bundle/vim-powerline/fontpatcher/PowerlineSymbols-Powerline.otf
.Install the font and you can fix the bug. - If last snippet doesn't work, you can modify the config of Powerline in
.vimrc
.Change thePowerline_symbols
(On line 14) intocompatible
orunicode
. - If all of above doesn't work, you can read the doc of Powerline in
.vim/bundle/vim-powerline/doc/Powerline.txt
###The Color Schema is so ugly The color isn't same as the snapshot?
-
This is maybe your terminal isn't 256 Color.
-
Or the theme has been chosen as
Light
in color schema mango. You can force mango shema to use desiredDark
theme by change the.vim/colors/mango.vim
. At line 8, Change thelet bgcolor = &background
intolet bgcolor = "Dark"
###Cannot found ctags?
maybe you haven't install it, just run sudo apt-get install ctags