Coder Social home page Coder Social logo

vimrc's Introduction

My vimrc

This repository contains my default vim configuration. It contains configuration for all of the plugins needed to get up and running with vim, using my desired settings. And, most importantly, it contains a very easy-to-use shell script that will setup vim on a fresh install of Ubuntu.

Usage

  • Yanks and pastes will now be synced with the same clipboard used across the rest of your programs.
  • <C+h> will move the cursor to the next left-most window, and ditto for j, k, and l. This can move you to and between the directory listing on the left-hand side.
  • While in the directory listing, typing <Enter> will open up the file you're hovering over. It'll open it up in the window you were most recently editing in. <S+c> will move the current working directory to whatever directory you're hovering over. <S+i> will toggle the visibility of hidden files. \t will open and close the directory listing.
  • There are several automatic optimizations when it comes to using open-close-type characters {, [, (, ', ", etc. If you want to simply type a character like { without those optimizations, type <C+v>{ while in insert mode. The same will work for any of the other optimized open-close characters.
  • If you want to wrap parenthesis around a long word like this_is_a_long_variable, then type (<A+e> while your cursor is blinking over the initial letter t. The same applies to all of the other open-close characters.
  • Vim will check for compiler errors everytime you save a .cpp file with :w. You can add the configuration file .syntastic_cpp_config with all of the compiler arguments you would like to use when compiling a .cpp file in that directory. An example would be -I.\n-std=c++17, for including header files in the root directory . and compiling with C++17.

Setup

If you're on Ubuntu running Gnome, simply execute ./setup.sh. If you're not running Gnome, then you'll have to personally figure out how to enable clipboard syncing in vim. If you're not using Ubuntu, then you'll have to potentially adjust all of the dependency install commands to your specific distribution.

vimrc's People

Contributors

npip99 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.