My personal Vim configurations and some plugins which I used in my daily job.
I put Vim related settings in plugin/settings/Settings.vim
, and isolate other plugins' settings in plugin/settings
directory.
It's how my Vim looks now:
and Here are some screenshots on the other platforms.
If you already install git
in your machine, and you trust me and my automatic install shell script, you can install my vimrc via curl
or wget
, just copy one of the following line and paste in terminal:
- via
curl
:
sh <(curl -L https://github.com/kaochenlong/eddie-vim/raw/master/utils/install.sh)
- or via
wget
:
sh <(wget --no-check-certificate https://github.com/kaochenlong/eddie-vim/raw/master/utils/install.sh -O -)
-
BACKUP your
.vim
directory and.vimrc
first.(IMPORTANT!) -
cd ~
to change directory to your home directory. -
copy files to your home directory:
git clone git://github.com/kaochenlong/eddie-vim.git
-
cd to
eddie-vim
directory and execute theupdate.sh
to get latest version modules:cd eddie-vim ./update.sh
-
make a symbolic link
.vim
toeddie-vim
that you just cloned, or just rename it to.vim
also be fine:ln -s eddie-vim .vim
-
link the vimrc to
ln -s .vim/vimrc .vimrc
-
if you use GUI version VIM, such as MacVim or GVim, you can also link to
.gvimrc
:ln -s eddie-vim/gvimrc .gvimrc
-
if you use Airline under Ubuntu or something which can not show the correct icons/fonts on the bottom, you can check this link, patch the font and it should look pretty nice.
-
you may need to install
ack
orsilver searcher
first if you useack.vim
.
change directory to ~/.vim
and execute ./update.sh
script, it should do all the updates automatically.
-
Resize splited windows automatically, so that you get a bigger editing room if you're working with a smaller screen. (stole from Gary Bernhardt)
-
Toggle between working mode and presentation mode by
<leader>z
, but only work in GUI version Vim. You can check here to see how it looks like. (stole from Mike Skalnik) -
some usually used key mappings in normal mode:
a.
<F2>
to toggle NERDTree on and off.b.
<F3>
to search Buffer with CtrlP plugin.c.
<F4>
to toggle Tagbar window.d.
<F5>
is the script runner, according to it's filetype, it will run Ruby(.rb) ,Python(.py) or Javascript(.js) file(SpiderMonkey is needed), even CoffeeScript(.coffee, but you may have to install CoffeeScript first). If the filetype is VimScript,<F5>
will run:source %
for you.e.
<F7>
to switch to previous tab, and<F8>
to the next tab.f. hit
<ctrl>p
will launch a quick window to match keywords from your current working directory, not only file name, but also path name. And<ctrl>w u
will match from your MRU(Mostly Recent Used) files, which is also frequently used.g. hit
: Ack
will launch ack.h. hit
<leader>
twice to toggle comment on and off.i.
<tab>
and<shift><tab>
to increase and decrease the syntax identation.j.
<leader>v
to open.vimrc
in a new tab.k.
<leader>0
to edit or createREADME.md
in current working directory. -
Remove tailing whitespace automatically while saving.
-
Support UVM syntax highlight.
-
Support ale lint check.
- You should create a
.local.vimrc
in the project root directory to import compilation option, such as include path and dmacro.
- You should create a
-
Support Verilog automatic. You can refer to here for more details.
if you can not found ctags
command, just find your ctags path and replace my settings in plugin/settings/Ctags.vim
file:
let tagbar_ctags_bin = '/your/path/to/ctags'
and Universal Ctags is recommended.