Skip to content

Instantly share code, notes, and snippets.

@ssilva ssilva/.vimrc
Created Jul 19, 2018

Embed
What would you like to do?
.vimrc using Plug
" Plug: https://github.com/junegunn/vim-plug
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-obsession'
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-markdown'
Plug 'itchyny/lightline.vim'
Plug 'terryma/vim-multiple-cursors'
Plug 'airblade/vim-gitgutter'
Plug 'chriskempson/base16-vim'
call plug#end()
" vim-markdown
let g:markdown_fenced_languages = ['bash=sh', 'sql', 'cpp', 'c#', 'cfg']
let g:markdown_syntax_conceal = 0
" Use hard tabs
set shiftwidth=4
set tabstop=4
set background=dark
au VimEnter * nested :call LoadSession()
function! LoadSession()
let b:sessionfile = $HOME . "/.vim/mysession.vim"
if (filereadable(b:sessionfile))
exe 'source ' b:sessionfile
else
echo "No session loaded."
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.