Coder Social home page Coder Social logo

vim-configuration's Introduction

vim-configuration

My current vim configuration.

Instruction / Installation

  rm ~/.vim -rf
  git clone http://github.com/ArthurSonzogni/vim-configuration.git ~/.vim --recursive
  rm ~/.vimrc
  ln -s ~/.vim/.vimrc ~/.vimrc

Configuration

  • Simple vim improvement
  • arrow disable in normal mode. (To force myself to use hjkl)
  • in edition mode, type jj to return in normal mode.
  • Clipboard copy and paste : y, p ( = \ )

##Plugins added:

  • Pathogen : plugin manager
  • Alternate : switch between header and implementation
  • Vim-multiple-cursor : edit multiple place at once.
  • NerdCommenter : comment blocs independently to the language.
  • NerdTree : a side-panel presenting your files and folder.
  • snipmate : add snipets
  • tabular : help aligning things.

Pathogen

Vim plugin manager.

###Alternate Alternate provide a simple way to switch between your header and your implementation file. (.h <-> .c | .hpp <->.cpp) for instance.

Main commands are :

  • :A switches to the header file corresponding to the current file being edited (or vise versa)
  • :AS splits and switches
  • :AV vertical splits and switches
  • :AT new tab and switches
  • :AN cycles through matches

###Vim-multiple-cursor

Bring the sublime-text multiple cursor selection into vim.

Please see vim-multiple-cursor or at least its how-to-use that is following.

Out of the box, all you need to know is a single key Ctrl-n. Pressing the key in Normal mode highlights the current word under the cursor in Visual mode and places a virtual cursor at the end of it. Pressing it again finds the next ocurrence and places another virtual cursor at the end of the visual selection. If you select multiple lines in Visual mode, pressing the key puts a virtual cursor at every line and leaves you in Normal mode.

After you've marked all your locations with Ctrl-n, you can change the visual selection with normal Vim motion commands in Visual mode. You could go to Normal mode by pressing v and wield your motion commands there. Single key command to switch to Insert mode such as c or s from Visual mode or i, a, I, A in Normal mode should work without any issues.

At any time, you can press to exit back to regular Vim.

###NerdCommenter An easy to comment portion of code. It is langage independant (provide the appropriate letter to comment) Main commands are:

  • c : switch between commented and not commented

###NerdTree

A file tree.

  • d : toogle the file tree panel

###Snipmate Boilerplate code.

Simply begin some code structure, press and it is completed automaticly.

###Syntastic Check syntaxe errors.

It use a wide variety of plugins (jsHint, gcc, +++) and detect them automaticly.

Main commands are:

  • C : check the code.

vim-configuration's People

Contributors

arthursonzogni avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

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.