Coder Social home page Coder Social logo

eddie-vim's Introduction

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])

eddie-vim's People

Contributors

kaochenlong avatar maximx avatar tubaxenor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eddie-vim's Issues

command-t

how can i use command-t
i use :Command-t
then show
command-t.vim requires Vim to be compiled with Ruby support
For more information type: :help command-t

Some problem with putty & screen

On windows, I use putty connect to server and use screen.
I can't use F2 NERDTreeMirrorToggle, but change to F6 is ok.
This problem probably is screen, but I don't know how to resolve this problem.

jslint error

From git://github.com/kaochenlong/eddie-vim

  • branch master -> FETCH_HEAD
    Already up-to-date.
    Submodule 'bundle/ack.vim' () registered for path 'bundle/ack.vim'
    Submodule 'bundle/align' () registered for path 'bundle/align'
    Submodule 'bundle/calendar.vim' () registered for path 'bundle/calendar.vim'
    Submodule 'bundle/cocoa.vim' () registered for path 'bundle/cocoa.vim'
    Submodule 'bundle/ctrlp.vim' () registered for path 'bundle/ctrlp.vim'
    Submodule 'bundle/delimitMate' () registered for path 'bundle/delimitMate'
    Submodule 'bundle/jslint.vim' () registered for path 'bundle/jslint.vim'
    Submodule 'bundle/matchit' () registered for path 'bundle/matchit'
    Submodule 'bundle/nerdcommenter' () registered for path 'bundle/nerdcommenter'
    Submodule 'bundle/nerdtree' () registered for path 'bundle/nerdtree'
    Submodule 'bundle/nginx' () registered for path 'bundle/nginx'
    Submodule 'bundle/snipmate' () registered for path 'bundle/snipmate'
    Submodule 'bundle/supertab' () registered for path 'bundle/supertab'
    Submodule 'bundle/taglist.vim' () registered for path 'bundle/taglist.vim'
    Submodule 'bundle/vim-actionscript' () registered for path 'bundle/vim-actionscript'
    Submodule 'bundle/vim-coffeescript' () registered for path 'bundle/vim-coffeescript'
    Submodule 'bundle/vim-css-color' () registered for path 'bundle/vim-css-color'
    Submodule 'bundle/vim-fugitive' () registered for path 'bundle/vim-fugitive'
    Submodule 'bundle/vim-indent-object' () registered for path 'bundle/vim-indent-object'
    Submodule 'bundle/vim-jade' () registered for path 'bundle/vim-jade'
    Submodule 'bundle/vim-javascript' () registered for path 'bundle/vim-javascript'
    Submodule 'bundle/vim-jst' () registered for path 'bundle/vim-jst'
    Submodule 'bundle/vim-markdown' () registered for path 'bundle/vim-markdown'
    Submodule 'bundle/vim-minitest' () registered for path 'bundle/vim-minitest'
    Submodule 'bundle/vim-multiple-cursors' () registered for path 'bundle/vim-multiple-cursors'
    Submodule 'bundle/vim-nerdtree-tabs' () registered for path 'bundle/vim-nerdtree-tabs'
    Submodule 'bundle/vim-octopress' () registered for path 'bundle/vim-octopress'
    Submodule 'bundle/vim-pathogen' () registered for path 'bundle/vim-pathogen'
    Submodule 'bundle/vim-powerline' () registered for path 'bundle/vim-powerline'
    Submodule 'bundle/vim-ragtag' () registered for path 'bundle/vim-ragtag'
    Submodule 'bundle/vim-rails' () registered for path 'bundle/vim-rails'
    Submodule 'bundle/vim-repeat' () registered for path 'bundle/vim-repeat'
    Submodule 'bundle/vim-ruby' () registered for path 'bundle/vim-ruby'
    Submodule 'bundle/vim-sass' () registered for path 'bundle/vim-sass'
    Submodule 'bundle/vim-scss' () registered for path 'bundle/vim-scss'
    Submodule 'bundle/vim-surround' () registered for path 'bundle/vim-surround'
    Submodule 'bundle/vimwiki' () registered for path 'bundle/vimwiki'
    fatal: remote error:
    Repository not found.
    Unable to fetch in submodule path 'bundle/jslint.vim'
    Entering 'bundle/ack.vim'
    Entering 'bundle/align'
    Entering 'bundle/calendar.vim'
    Entering 'bundle/cocoa.vim'
    Entering 'bundle/ctrlp.vim'
    Entering 'bundle/delimitMate'
    Entering 'bundle/jslint.vim'
    Entering 'bundle/ack.vim'
    Entering 'bundle/align'
    Entering 'bundle/calendar.vim'
    Entering 'bundle/cocoa.vim'
    Entering 'bundle/ctrlp.vim'
    Entering 'bundle/delimitMate'
    Entering 'bundle/jslint.vim'
    Entering 'bundle/ack.vim'
    Already up-to-date.
    Entering 'bundle/align'
    Already up-to-date.
    Entering 'bundle/calendar.vim'
    Already up-to-date.
    Entering 'bundle/cocoa.vim'
    Already up-to-date.
    Entering 'bundle/ctrlp.vim'
    You are not currently on a branch, so I cannot use any
    'branch..merge' in your configuration file.
    Please specify which branch you want to merge with on the command
    line and try again (e.g. 'git pull ').
    See git-pull(1) for details.
    Stopping at 'bundle/ctrlp.vim'; script returned non-zero status.
    Entering 'bundle/ack.vim'
    Already on 'master'
    Entering 'bundle/align'
    Already on 'master'
    Entering 'bundle/calendar.vim'
    Already on 'master'
    Entering 'bundle/cocoa.vim'
    Already on 'master'
    Entering 'bundle/ctrlp.vim'
    Warning: you are leaving 9 commits behind, not connected to
    any of your branches:

    287b9c1 Include [No Name] buffers
    50e494d Apply mruf_relative to the raw list
    76f4f42 Non-subdir completion for in-prompt cd
    7037f92 Revert "Move the completion function"
    ... and 5 more.

If you want to keep them by creating a new branch, this may be a good time
to do so with:

git branch new_branch_name 287b9c12aad2420269576504d1c05d36111a4562

Switched to branch 'master'
Entering 'bundle/delimitMate'
Warning: you are leaving 68 commits behind, not connected to
any of your branches:

739d2f9 Call #Finish() only when necessary for . As mentioned in #124.
eb7738e Call #Finish() only when necessary. Closes #124.
32f5d8d Do not map over . Closes #118.
7b5887c Do not create bogus imap. closes #113 , closes #87.
... and 64 more.

If you want to keep them by creating a new branch, this may be a good time
to do so with:

git branch new_branch_name 739d2f9bd4c523b6d8ac6e58a844b073fb119800

Switched to branch 'master'
Entering 'bundle/jslint.vim'
error: pathspec 'master' did not match any file(s) known to git.
Stopping at 'bundle/jslint.vim'; script returned non-zero status.

处理 /home/.vimrc 时发生错误:
第 11 行:
E117: 未定义的函数: pathogen#incubate
第 13 行:
E117: 未定义的函数: pathogen#infect
第 14 行:
E117: 未定义的函数: pathogen#helptags
请按 ENTER 或其它命令继续

I have some error after follow your step by step..

I am new in vim and git ,and I have some error when I use VI after follow your instruction.

My Error...
Error detected while processing /home/chiakey/.vimrc:
line 10:
E117: Unknown function: pathogen#incubate
line 12:
E117: Unknown function: pathogen#infect
line 13:
E117: Unknown function: pathogen#helptags
Press ENTER or type command to continue

Another two question,
How to change the background color and text color to default in your vimrc ?
If i want to add another plugin , where should i place my .vim file ??

Thanks ^^

visual block eddit problem

HI,thanks for your job.this eddie-vim is very good! I had use a lone time.
now,the problem is: I cant't eddit in visual block mode. it's the step:
c-v
j
shift-i //but,jum to the first line to insert. not to eddit the lines at the same time.

everyone found this problem?How can I do?

不能取得jslint

如果执行./update.sh的话,会有下边的错误

Submodule path 'bundle/delimitMate': checked out '0326b7c14a8acb7e4185df1f6033d87bab9ff152'
Initialized empty Git repository in /home/alin/work/dev_env_cookbooks/eddie-vim/bundle/jslint.vim/.git/
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Clone of '[email protected]:kaochenlong/jslint.vim.git' into submodule path 'bundle/jslint.vim' failed


OS: centos6.3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.