Giter Site home page Giter Site logo

tylerlum / vim_configuration Goto Github PK

View Code? Open in Web Editor NEW
27.0 4.0 6.0 19 KB

Vim configuration that signficantly improves the speed and usability of text editing.

Home Page: https://medium.com/swlh/8-vim-tricks-that-will-take-you-from-beginner-to-expert-817ff4870245

Vim Script 100.00%

vim_configuration's Introduction

vim_configuration

vim

Example of Copy-Delete-Paste Workflow

This repository contains a .vimrc configuration file for the vim setup that I like to use. This includes:

  • No tabs by default, but spaces, for consistency

  • Can ESC with jk or kj to require less hand movement

  • Relative line number to jump between lines without mental math

  • Use same register as regular clipboard by default, so that you can easily copy/paste inside or outside of vim

  • Show $ at the end of each line and ^I for tabs to more easily check code consistency with white space

  • Make d, D, c, C, x, and X not overwrite the register by default, but can still save to register with ,d, ,D, ,c, ,C, ,x, and ,X.

  • Find occurrences of variable by hoving over the variable and pressing *

  • Enter blank lines from command mode with , so you can create 70 blank lines with 70

  • Autocomplete with CTRL+n, then scroll down with CTRL+n and scroll up with CTRL+p

  • Delete and paste word in one click with R

The basic structure comes from http://vim.wikia.com/wiki/Example_vimrc, which gave me a great starting point to customize my vim use.

Check out my blog posts for more information about my vim setup, with example gifs!

vim_configuration's People

Contributors

tylerlum 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

Watchers

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