Skip to content

Instantly share code, notes, and snippets.

@bollu
Created October 20, 2015 16:06
Show Gist options
  • Select an option

  • Save bollu/11a93576b60778ff20b5 to your computer and use it in GitHub Desktop.

Select an option

Save bollu/11a93576b60778ff20b5 to your computer and use it in GitHub Desktop.
call plug#begin('~/.vim/plugged')
"Core
Plug 'terryma/vim-expand-region'
Plug 'Valloric/YouCompleteMe'
Plug 'kien/ctrlp.vim'
Plug 'majutsushi/tagbar'
Plug 'ervandew/supertab'
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'Raimondi/delimitMate'
Plug 'rking/ag.vim'
Plug 'tpope/vim-fugitive'
Plug 'scrooloose/nerdtree'
Plug 'jeetsukumaran/vim-buffergator'
Plug 'terryma/vim-multiple-cursors'
"Bling
Plug 'bling/vim-airline'
Plug 'flazz/vim-colorschemes'
Plug 'morhetz/gruvbox'
Plug 'jscappini/material.vim'
Plug 'haya14busa/incsearch.vim'
"Languages
Plug 'tpope/vim-fireplace'
Plug 'rust-lang/rust.vim'
Plug 'https://github.com/Harenome/vim-mipssyntax'
Plug 'lervag/vimtex'
Plug 'lambdatoast/elm.vim'
call plug#end()
set guifont=Meslo\ LG\ S\ DZ\ for\ Powerline:h13
set nu
inoremap jk <Esc>
set hlsearch
set incsearch
" size of a hard tabstop
set tabstop=4
" size of an "indent"
set shiftwidth=4
" a combination of spaces and tabs are used to simulate tab stops at a width
" other than the (hard)tabstop
set softtabstop=4
" make "tab" insert indents instead of tabs at the beginning of a line
set smarttab
" always uses spaces instead of tab characters
set expandtab"
"Powerline
nnoremap q: :q<CR>
nnoremap Q: :q<CR>
nnoremap <leader>w :w<CR>
nnoremap <C-Left>W
nnoremap <C-Right>w
set background=dark
colorscheme gruvbox
"Better paste
vnoremap <silent> y y`]
vnoremap <silent> p p`]
nnoremap <silent> p p`]
"Leader
"------
let mapleader = "\<Space>"
nmap <Leader><Leader> V
nnoremap ; :
"Airline
"------
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
let g:airline_detect_paste=1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#show_buffers = 1
"Buffergator
"-----------
let g:buffergator_suppress_keymaps=1
nnoremap <leader>p :BuffergatorOpen<CR>
nnoremap <leader>P :BuffergatorClose<CR>
"Nerdtree
"--------
nnoremap <leader>o :NERDTreeToggle<CR>
"MultipleCursor
"--------------
let g:multi_cursor_next_key='<D-d>'
let g:multi_cursor_quit_key='<Leader>q'
"Expand Region
"-------------
vmap v <Plug>(expand_region_expand)
vmap <C-v> <Plug>(expand_region_shrink)
"Incsearch
"---------
map / <Plug>(incsearch-forward)
map ? <Plug>(incsearch-backward)
map g/ <Plug>(incsearch-stay)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment