Skip to content

Instantly share code, notes, and snippets.

@riskiwah
Created April 5, 2025 20:08
Show Gist options
  • Save riskiwah/5ec691211b7d6aedd39dbefeb92d88f8 to your computer and use it in GitHub Desktop.
Save riskiwah/5ec691211b7d6aedd39dbefeb92d88f8 to your computer and use it in GitHub Desktop.
markdown focus
" Default Vim
colorscheme desert
set mouse=a
set encoding=utf-8
set fileencoding=utf-8
set ttyfast
set nocompatible
set backspace=indent,eol,start
set nocp digraph sc vb wmnu noeb noet nosol ai
set autoindent expandtab tabstop=2 shiftwidth=2
"set ek
set com=b:#,:%,n:>
set ww=<,>,h,l
set bs=2
set list listchars=tab:»·,trail:·
set viminfo=%,'50,\"100,:100
" Still Default Vim
set hidden
set wrap
set termguicolors
set hlsearch
set number
set linebreak
set ruler
set showmatch
set softtabstop=4
set shiftwidth=4
set tabstop=4
set textwidth=100
set noswapfile
set lazyredraw
set smarttab
set smartindent
set expandtab
set binary
set noeol
syntax on
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
" Copy things
set modeline
set clipboard=unnamedplus
" Syntastic
set statusline+=%#warningmsg#
set statusline+=%*
" Use Vim's spell checker
setlocal spell
" More better color pls :(
if has('termguicolors')
set termguicolors
endif
" Alright it's Plugin times
call plug#begin()
Plug 'godlygeek/tabular'
Plug 'preservim/vim-markdown'
Plug 'sainnhe/gruvbox-material'
Plug 'junegunn/goyo.vim'
call plug#end()
" Theme
set background=light
" Available values: 'hard', 'medium'(default), 'soft'
let g:gruvbox_material_background = 'soft'
colorscheme gruvbox-material
" Goyo plugins
" Ctrl +g
nnoremap <C-g> :Goyo<CR>
autocmd FileType markdown Goyo 140x90%
" Vim-markdown plugins
let g:vim_markdown_folding_disabled = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment