What are some of the unique functions you use in your .vimrc?

This page summarizes the projects mentioned and recommended in the original post on /r/vim

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • vim-cool

    A very simple plugin that makes hlsearch more useful.

  • vim-wordy

    Uncover usage problems in your writing

  • You might already be aware, but I use a similar plugin that throws these kinds of words into different categories for you to highlight. vim-wordy

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • vim-unimpaired

    unimpaired.vim: Pairs of handy bracket mappings

  • For those who use Tim Pope's unimpaired plugin, a similar feature (exchange lines) is provided by ]e and [e, which are also repeatable with his repeat plugin.

  • vim-repeat

    repeat.vim: enable repeating supported plugin maps with "."

  • For those who use Tim Pope's unimpaired plugin, a similar feature (exchange lines) is provided by ]e and [e, which are also repeatable with his repeat plugin.

  • Vim

    The official Vim repository

  • " edit vimrc from vim nmap v :tabe ~/.vimrc autocmd bufwritepost .vimrc source ~/.vimrc " When editing a file, always jump to the last known cursor position. autocmd BufReadPost * \ if line("'\"") > 1 && line("'\"") <= line("$") | \ exe "normal! g`\"" | \ endif " Go to first and last char of current line easier noremap H ^ noremap L $ " Yank from the cursor to the end of the line, to be consistent with C and D. nnoremap Y y$ " save bash shebang as a macro in register b. use @b to get it in vim let @b='i#!/usr/bin/env bashq' " save readonly file changes cmap w!! w !sudo tee >/dev/null % " Execute macros over multiple visual lines xnoremap @ :call ExecuteMacroOverVisualRange() function! ExecuteMacroOverVisualRange() echo "@".getcmdline() execute ":'<,'>normal @".nr2char(getchar()) endfunction " Display a message when the current file is not in utf-8 format. " Note that we need to use `unsilent` command here because of this issue: " https://github.com/vim/vim/issues/4379 augroup non_utf8_file_warn autocmd! autocmd BufRead * if &fileencoding != 'utf-8' \ | unsilent echomsg 'File not in UTF-8 format!' | endif augroup END " Search for selected text, forwards or backwards. vnoremap * : \let old_reg=getreg('"')let old_regtype=getregtype('"') \gvy/=substitute( \escape(@", '/\.*$^~['), '\_s\+', '\\_s\\+', 'g') \gV:call setreg('"', old_reg, old_regtype) vnoremap # : \let old_reg=getreg('"')let old_regtype=getregtype('"') \gvy?=substitute( \escape(@", '?\.*$^~['), '\_s\+', '\\_s\\+', 'g') \gV:call setreg('"', old_reg, old_regtype)

  • dotvim

    My ~/.vim

  • My vimrc is, uhh, big, but I've tried to keep it commented.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts