Skip to content

Instantly share code, notes, and snippets.

@brighteyed
Last active February 21, 2020 12:01
Show Gist options
  • Save brighteyed/d58ebfcf94d6a00648920fca177dc5c8 to your computer and use it in GitHub Desktop.
Save brighteyed/d58ebfcf94d6a00648920fca177dc5c8 to your computer and use it in GitHub Desktop.
Simple vim configuration file
" Set encoding
set fileencodings=ucs-bom,utf-8,default
set fileencoding=utf-8
set encoding=utf-8
" Turn on line numbers and linebreak
set linebreak
set number
" Set color schema and syntax highlighting
colorscheme evening
syntax on
" Do not create swp files
set noswapfile
" Highlight search results
set hlsearch
" Turn off menu bar, toolbar and vertical scrollbar
set guioptions-=m
set guioptions-=T
set guioptions-=r
" Always show status bar
set laststatus=2 " always
" Status bar
" example.txt[RO][+] [text] [utf-8] 58% 28:15
set statusline=\
set statusline+=%f " example.txt
set statusline+=%r " [RO]
set statusline+=%m " [+]
set statusline+=%=
set statusline+=%#CursorColumn#
set statusline+=\ %y " [text]
set statusline+=\ %{&fileencoding?&fileencoding:&encoding} " [utf-8]
set statusline+=\ %p%% " 58%
set statusline+=\ %l:%c " 28:15
set statusline+=\
" Set font and window size
if has("gui_running")
set lines=999 columns=999
set guifont=Consolas:h11
endif
call plug#begin('~/.vim/plugged')
" Nodejs and yarn required
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install' }
call plug#end()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment