Giter Club home page Giter Club logo

vimfiles's Introduction

vimfiles

A partial copy of my current .vim directory.

Note: Feel free to copy any part of this repository that interests you; the very permissive license of this repository (0BSD) was chosen to encourage this. However, you should probably not clone this repository in your machine; it's very rewarding to build your Vim configuration yourself! My vimrc does stuff you may not want to do (e.g. automatically install minpac).

Micro-plugins

Here are some plugins I wrote that aren't big enough to deserve their own GitHub repositories:

  • cmus.vim: Ex commands and mappings to control cmus.
  • ctrl_e.vim: Adds an insert mode mapping (bound to CTRL_E) which jumps to the end of the current line and closes brackets and quoted strings.
  • indent_settings.vim: Ex commands to quickly change the values of 'expandtab', 'tabstop', 'softtabstop', and 'shiftwidth'.
  • repeat.vim: A bunch of mappings I added to use the fact that there is no text object named r: dr makes a delete then a repeat, and yr makes a yank then a repeat (both commands leave registers unchanged).
  • timecalc.vim: two functions and an Ex command for calculating the sum of a list of durations; see the documentation.

These are also licensed under the 0BSD license.

Cool mappings for AZERTY keyboards

As a user of an AZERTY keyboard, I've added a few mappings taking advantage of the keys unused by Vim. If that's interesting to you, feel free to copy the lines of code below in your vimrc.

" Quickly insert a blank line
" Convenient mappings for Apple's AZERTY keyboard
nnoremap <expr> § 'o<Esc>' . v:count1 . 'kgM'
nnoremap         O<Esc>jgM

" Toggle casing of a single character
noremap ç ~
" Toggle casing of a word
vnoremap Ç viw~

" Typing the pipe character is inconvenient in AZERTY keyboards
cnoremap § \|
inoremap § \|
tnoremap § \|

vimfiles's People

Contributors

jchros avatar

Watchers

 avatar

vimfiles's Issues

`S` doesn't work in the command-line window

Expected behavior: when I press S, the word under the cursor is deleted and insert mode is entered.

Observed behavior: when I press S, the word that gets deleted is the one the cursor was in before entering the command-line window.

Observed in Neovim 0.9.0.

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.