Skip to content

Instantly share code, notes, and snippets.

@mostlyobvious
Created January 21, 2019 11:02
Show Gist options
  • Save mostlyobvious/22c72d61e25a3330cbee08759255d1f2 to your computer and use it in GitHub Desktop.
Save mostlyobvious/22c72d61e25a3330cbee08759255d1f2 to your computer and use it in GitHub Desktop.
call plug#begin('~/.vim/plugged')
Plug '/usr/local/opt/fzf'
Plug 'bkad/CamelCaseMotion'
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'drn/zoomwin-vim'
Plug 'itchyny/lightline.vim'
Plug 'janko-m/vim-test'
Plug 'junegunn/fzf.vim'
Plug 'kana/vim-fakeclip'
Plug 'kana/vim-textobj-user'
Plug 'mattn/gist-vim'
Plug 'mattn/webapi-vim'
Plug 'nelstrom/vim-textobj-rubyblock'
Plug 'qpkorr/vim-bufkill'
Plug 'sheerun/vim-polyglot'
Plug 'tpope/vim-bundler'
Plug 'tpope/vim-endwise'
Plug 'tpope/vim-eunuch'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-rails'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-sleuth'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-vinegar'
call plug#end()
source /usr/share/vim/vim80/defaults.vim
colorscheme dracula
set colorcolumn=120
set noswapfile
set number
set laststatus=2
set noshowmode
set hlsearch
set splitbelow
set splitright
set shortmess+=I
set mouse=a
set autoread
set nowrap
let mapleader=','
let g:gist_detect_filetype = 1
let g:gist_open_browser_after_post = 1
let g:zoomwin_localoptlist = ["ai","ar","bh","bin","bl","bomb","bt","cfu","ci","cin","cink","cino","cinw","cms","com","cpt","diff","efm","eol","ep","et","fenc","fex","ff","flp","fo","ft","gp","imi","ims","inde","inex","indk","inf","isk","kmp","lisp","mps","ml","ma","mod","nf","ofu","pi","qe","ro","sw","si","sts","spc","spf","spl","sua","swf","smc","syn","ts","tw","udf","wfh","wfw","wm"]
map <Leader><Leader> :ZoomWin<CR>
map <Leader>= <C-w>=
nmap ; :Buffers<CR>
nmap <C-t> :Files<CR>
let g:lightline = {
\ 'colorscheme': 'Dracula',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'gitbranch': 'fugitive#head'
\ },
\ }
let g:vim_markdown_frontmatter = 1
let test#strategy = "vimterminal"
command! BufCloseOthers %bd|e#
command! Q q
command! W w
au BufWritePre * :%s/\s\+$//e
au FileType javascript set formatprg=prettier\ --stdin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment