Skip to content

Instantly share code, notes, and snippets.

@ssilva
Created July 19, 2018 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssilva/50fd57a389b88ca1f0c621213fba8df6 to your computer and use it in GitHub Desktop.
Save ssilva/50fd57a389b88ca1f0c621213fba8df6 to your computer and use it in GitHub Desktop.
.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