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

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
  1. vim-cool

    A very simple plugin that makes hlsearch more useful.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. 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

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

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

  6. 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)

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

  • Currently highlighted search result has its color turned to normal

    3 projects | /r/vim | 31 Jan 2023
  • What are some good tips for improving my (n)Vim experience?

    5 projects | /r/vim | 23 Jan 2022
  • Jump between HTML tags with just vim

    2 projects | /r/vim | 12 Aug 2021
  • Showing leading spaces as middle dots

    3 projects | /r/vim | 2 Feb 2021
  • VIM is gem!!

    2 projects | dev.to | 15 Mar 2025

Did you know that Vim Script is
the 33rd most popular programming language
based on number of references?