Giter VIP home page Giter VIP logo

vimfiles's Introduction

This is my ~/.vim dir and this, dear reader, is a horse:

               ,
              / \,,_  .'|
           ,{{| /}}}}/_.'
          }}}}` '{{'  '.
        {{{{{    _   ;, \
     ,}}}}}}    /o`\  ` ;)
    {{{{{{   /           (
    }}}}}}   |            \
   {{{{{{{{   \            \          ,-------------------------------.
   }}}}}}}}}   '.__      _  |        /       HI                        \
   {{{{{{{{       /`._  (_\ /       /      /   \                        |
    }}}}}}'      |    //___/   --= <   VVVI     HI-HI-HI                |
jgs `{{{{`       |     '--'         \                   \               |
     }}}`                            \                  HIM-HIM-HIM!!!  /
                                      '--------------------------------'

Installation

Clone the repo: git clone https://github.com/scrooloose/vimfiles.git ~/.vim

Grab Vundles: git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Install Plugins vim +PluginInstall +qall

Make sure vim finds the vimrc file by either symlinking it: ln -s ~/.vim/vimrc ~/.vimrc

or by sourcing it from your own ~/.vimrc: source ~/.vim/vimrc

vimfiles's People

Contributors

alexey-chernikov avatar halorgium avatar raimondi avatar scrooloose 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vimfiles's Issues

Error .vimrc "syntax error near unexpected token `('"

I'm not finding which is wrong in this line

set statusline+=%{(&fenc!='utf-8'&&&fenc!='')?'['.&fenc.']':''}

I getting the error below:

bash: .vimrc: line 32: syntax error near unexpected token `('

bash: .vimrc: line 32: `set statusline+=%{(&fenc!='utf-8'&&&fenc!='')?'['.&fenc.']':''}'

Use pathogen for plugins

Pathogen, by Tim Pope, allows plugins to be neatly organised in folders. One folder, one plugin. By using pathogen, not only will it be way easier to maintain the files (by using submodules), but it will also help forkers to customise their stacks.

some auto-complete snippets not working in vim

I'm having a problem where some of the snippets don't seem to be working correctly.

For example, if in the RoR model I enter "hm" and hit < tab >, it expands to:
has_many :<+object+>s<+, :class_name => "<+object+>", :foreign_key => "<+reference+>_id"+>

The cursor is then at the end of that line, and not set up for me to enter the information in place of the tags.

However, if I enter "habtm" and hit < tab >, it expands to:
has_and_belongs_to_many :object, :join_table => "table_name", :foreign_key => "_id"

The cursor is then over the "object" symbol ready for me to replace, and then hitting tab moves me to "table_name" where I can replace that, then tab again moves to the beginning of the "_id" field for me to enter that. I assume this is how the "has_many" snippet should work also?

I've tested this on Linux running VIM 7.2 and on Mac running MacVim 7.2, and the same happens on both.

Do you know what I might be doing wrong... or what I can try to fix it? Any help you can give me is very much appreciated!

Thanks!

Kip

installation problem

caro@turbo:~$ cd /.vim && git submodule init && git submodule update
Cloning into bundle/nerdcommenter...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Clone of '[email protected]:scrooloose/nerdcommenter.git' into submodule path 'bundle/nerdcommenter' failed
caro@turbo:
/.vim$

Suggestion:

I have this function that as soon as i enter a buffer it will change its working dir so when i use :tabe or :e I can search for files relative to the current one.

function! CHANGE_CURR_DIR()
    let _dir = expand("%:p:h")
        exec "cd " . _dir
    unlet _dir
endfunction
autocmd BufEnter * call CHANGE_CURR_DIR()
set statusline=%<%f%h%m%r%=%{&ff}\ %l,%c%V\ %P

No submodule mapping found for Vundle

cd ~/.vim && git submodule init && git submodule update

No submodule mapping found in .gitmodules for path 'bundle/Vundle.vim'

any help would be appreciated

SASS syntax checker doesn't understand Rails + Compass

This isn't a huge problem but I have had to disable the SASS syntax checker as sass doesn't understand the concept of importing SASS partials and hence errors when it finds a mixin or constant that is defined in another file.

I thought about adding some sort of conditional to the syntax checker to look for an underscore before the filename (something like expand("%:t") =~ "^_") and try to traverse the stylesheets tree to find the file that imports the current SASS file but that just felt a bit over-the-top.

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.