Last active
February 10, 2022 18:35
-
-
Save apraga/78177eef0b4396d9f0198e883e3eb7f2 to your computer and use it in GitHub Desktop.
Vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filetype plugin indent on " Load plugins according to detected filetype. | |
syntax on " Enable syntax highlighting. | |
set incsearch " Highlight while searching with / or ?. | |
set hlsearch " Keep matches highlighted. | |
set ignorecase smartcase " Better search | |
set relativenumber | |
" Plugins | |
call plug#begin('~/.vim/plugged') | |
" Plug 'SirVer/ultisnips' " Track the engine. | |
" Plug 'honza/vim-snippets' " Snippets are separated from the engine. Add this if you want them: | |
"Plug 'plasticboy/vim-markdown' | |
"Plug 'tpope/vim-fugitive' " Git integration | |
"Plug 'tpope/vim-vinegar' | |
Plug 'joshdick/onedark.vim' " Nice theme (gruvbox does not work with spell checking in powershell) | |
Plug 'tpope/vim-commentary' " comment things easily | |
Plug 'tpope/vim-surround' " Parentheses | |
Plug 'tpope/vim-unimpaired' | |
Plug 'vimwiki/vimwiki' | |
call plug#end() | |
colorscheme onedark | |
" Replace grep | |
if executable('rg') | |
set grepprg=rg\ --vimgrep\ --hidden | |
endif | |
set statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%04l,%04v] | |
let g:vimwiki_list = [{'path': '~/notes/apraga.github.io/', | |
\ 'index': 'notes', | |
\ 'syntax': 'markdown', 'ext': '.md'}] | |
" Homemade snippets | |
nnoremap ,ppt :-1read ~/.vim/skeletons/ppt.md<CR>1jA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment