Skip to content

Instantly share code, notes, and snippets.

@apraga
Last active February 10, 2022 18:35
Show Gist options
  • Save apraga/78177eef0b4396d9f0198e883e3eb7f2 to your computer and use it in GitHub Desktop.
Save apraga/78177eef0b4396d9f0198e883e3eb7f2 to your computer and use it in GitHub Desktop.
Vimrc
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