• Stars
    star
    376
  • Rank 113,195 (Top 3 %)
  • Language
    Vim Script
  • Created over 12 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Yet another vimrc

Update!

I recently removed and reorganized redundant settings and plugins, and put it on another repository https://github.com/kaochenlong/eddie-vim2

Intro

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.

You may notice that there are several vimrc files:

  1. vimrc, standard version vimrc.

  2. easy-vimrc, same as vimrc, but add some easier key mapping for new Vimer.

  3. pro-vimrc, same as vimrc, but remove the arrow keys mapping.

  4. experimental-vimrc, same as pro-vimrc, but just for experimental purpose.

you can link your ~/.vimrc to any one of them as you wish :)

It's how my Vim looks now:

image

and Here are some screenshots on the other platforms.

Usage

Installation and Requisites:

Automatic installer... (DO YOU TRUST ME?)

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:

  1. via curl:

sh <(curl -L https://github.com/kaochenlong/eddie-vim/raw/master/utils/install.sh)

  1. or via wget:

sh <(wget --no-check-certificate https://github.com/kaochenlong/eddie-vim/raw/master/utils/install.sh -O -)

Manual installation

  1. BACKUP your .vim directory and .vimrc first.(IMPORTANT!)

  2. cd ~ to change directory to your home directory.

  3. copy files to your home directory:

     git clone git://github.com/kaochenlong/eddie-vim.git
    
  4. cd to eddie-vim directory and execute the update.sh to get latest version modules:

     cd eddie-vim
     ./update.sh
    
  5. make a symbolic link .vim to eddie-vim that you just cloned, or just rename it to .vim also be fine:

     ln -s eddie-vim .vim
    
  6. link the vimrc to

     ln -s .vim/vimrc .vimrc
    
  7. if you're still not familiar with the movement in vim by HJKL or yanking and pasting text, I've made a easier version:

     ln -s .vim/easy-vimrc .vimrc
    
  8. if you use GUI version VIM, such as MacVim or GVim, you can also link to .gvimrc:

     ln -s eddie-vim/gvimrc .gvimrc
    
  9. 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.

  10. you may need to install ack or silver searcher first if you use ack.vim.

Update:

change directory to ~/.vim and execute ./update.sh script, it should do all the updates automatically.

Features and Key Mappings:

  1. Resize splited windows automatically, so that you get a bigger editing room if you're working with a smaller screen. (stole from Gary Bernhardt)

  2. 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)

  3. 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 Taglist 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 <leader> twice to toggle comment on and off.

    h. <tab> and <shift><tab> to increase and decrease the syntax identation.

    i. <leader>v to open .vimrc in a new tab.

    j. <leader>0 to edit or create README.md in current working directory.

  4. Remove tailing whitespace automatically while saving.

FAQ

if you can not found ctags command, just find your ctags path and replace my settings in plugin/settings/Ctags.vim file:

let Tlist_Ctags_Cmd = '/your/path/to/ctags'

and Exuberant Ctags is recommended.

Contact

Enjoy it, and if there's any question or comment, feel free to let me know :)

Eddie Kao ([email protected])

More Repositories

1

eddie-vim2

Yet another vimrc
Vim Script
153
star
2

learn-ruby-on-rails

為你自己學 Ruby on Rails
129
star
3

cch

My yet another Vim setttings
Vim Script
70
star
4

programming-basic

程式設計入門 - 使用 Ruby 及 Swift
23
star
5

rails_app_template

Ruby
17
star
6

shopping_mall

demo project for TDD shopping cart
Ruby
12
star
7

rails-template

Ruby
10
star
8

my-blog

為你自己學 Laravel
PHP
8
star
9

eddie-dotfiles

Shell
8
star
10

xcode-snippets

Xcode Snippets
7
star
11

dummy-git

HTML
5
star
12

cobol-practice

COBOL
5
star
13

code_refactoring_demo

Ruby
5
star
14

EDHexcolor

Hex Color Category for UIColor (iOS)
5
star
15

nthu_library

Ruby
4
star
16

ithelp

PHP
4
star
17

my-citiesocial

Ruby
3
star
18

my_candidates

Ruby
3
star
19

vote

Ruby
3
star
20

bmi_calculator

Ruby
3
star
21

PPT

Ruby
3
star
22

flask-htmx-demo

HTML
2
star
23

cann-lang

TypeScript
2
star
24

cart-with-tests

Ruby
2
star
25

vote-me

Ruby
2
star
26

kaochenlong

2
star
27

my-tello

Ruby
2
star
28

EDStringHelper

some helpers for NSString
Objective-C
2
star
29

my_shopping_mall

Ruby
2
star
30

HappyDjango

sample code for HappyDjango class
Python
2
star
31

ntub-winter-vacation-camp

台北商業大學 Ruby on Rails 寒假訓練課程
2
star
32

rails5_app_template

Ruby
2
star
33

tailwind-css-playground

HTML
2
star
34

wretch-clone

Ruby
2
star
35

uchef

Ruby
1
star
36

rubyist

try to be a better Rubyist :)
1
star
37

mall_v4

Ruby
1
star
38

my_store

Ruby
1
star
39

react-webpack-template

React.js Project Template With Webpack
JavaScript
1
star
40

n1t0

translation package, but just for fun
Ruby
1
star
41

bmi-tauri-app

CSS
1
star
42

NaNote

Ruby
1
star
43

InkMelody

Ruby
1
star
44

go-fiber-wired

Go
1
star
45

bmi-calculator-rs

Rust
1
star
46

auo-project

Vue
1
star
47

DevOps

1
star
48

gulp_env

using ECMAScript 2015 (ES6) syntax in Gulp
JavaScript
1
star
49

neovim

Lua
1
star
50

WishSite

Ruby
1
star
51

PTT-Flash

A simple registration system for PTT-Flash workshop, built with Ruby on Rails
Ruby
1
star
52

candidates

Ruby
1
star
53

store_demo

Ruby
1
star
54

hackntu_shopping_cart

Ruby
1
star
55

hello-world

Ruby
1
star
56

dinbendon

Ruby
1
star
57

ivoting

Ruby
1
star
58

laravel-stimulus

PHP
1
star
59

LetsLearnRuby2

Sample code for my book "Let's Learn Ruby 2.1"
1
star
60

Javascript-group-demo

Ruby
1
star
61

vote_candidate

Ruby
1
star
62

hello-kitty

HTML
1
star
63

my_medium

Ruby
1
star
64

git-demo1234

HTML
1
star
65

vivvi

JavaScript
1
star