Skip to content

Instantly share code, notes, and snippets.

@ssilva ssilva/.vimrc
Created Jul 19, 2018

What would you like to do?
.vimrc using Plug
" 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
echo "No session loaded."
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.