Skip to content

Instantly share code, notes, and snippets.

@indiosmo
Last active July 30, 2026 00:55
Show Gist options
  • Select an option

  • Save indiosmo/8ccbc3cf61b74bc0474c394bc19918d5 to your computer and use it in GitHub Desktop.

Select an option

Save indiosmo/8ccbc3cf61b74bc0474c394bc19918d5 to your computer and use it in GitHub Desktop.
vimrc
set nocompatible
filetype off
call plug#begin()
Plug 'junegunn/fzf.vim'
Plug 'easymotion/vim-easymotion'
Plug 'morhetz/gruvbox'
call plug#end()
let mapleader=" "
" clang-format
nnoremap <C-k> :py3f /path/to/clang-format.py<CR>
vnoremap <C-k> :py3f /path/to/clang-format.py<CR>
inoremap <C-k> <C-o>:py3f /path/to/clang-format.py<CR>
" fzf
set rtp+=~/.fzf
" fuzzy find files in the working directory (where you launched Vim from)
nmap <C-p> :Files<cr>
" fuzzy find lines in the current file
nmap <leader>/ :BLines<cr>
" fuzzy find text in the working directory
nmap <leader>a :Ag
" fuzzy find Vim commands (like Ctrl-Shift-P in Sublime/Atom/VSC)
nmap <leader>c :Commands<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment