Skip to content

Instantly share code, notes, and snippets.

@colbyhall
Created April 30, 2020 01:10
Show Gist options
  • Select an option

  • Save colbyhall/cdd98c57b9beec6ea26285007d04e4c3 to your computer and use it in GitHub Desktop.

Select an option

Save colbyhall/cdd98c57b9beec6ea26285007d04e4c3 to your computer and use it in GitHub Desktop.
my vimrc
syntax on
set noerrorbells
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nu
set nowrap
set smartcase
set noswapfile
set nobackup
set undodir=~/.vim/undo
set undofile
set incsearch
set bs=2
set encoding=utf8
set guioptions-=m "remove menu bar
set guioptions-=T "remove toolbar
set guioptions-=r "remove right-hand scroll bar
set guioptions-=L "remove left-hand scroll bar
set guifont=Consolas:h11
set cursorline
set laststatus=2
set noshowmode
call plug#begin('~/vimfiles/plugged')
Plug 'morhetz/gruvbox'
Plug 'itchyny/lightline.vim'
Plug 'shinchu/lightline-gruvbox.vim'
Plug 'https://github.com/octol/vim-cpp-enhanced-highlight.git'
call plug#end()
colorscheme gruvbox
set background=dark
let mapleader=" "
nnoremap <leader>h :wincmd h<CR>
nnoremap <leader>j :wincmd j<CR>
nnoremap <leader>k :wincmd k<CR>
nnoremap <leader>l :wincmd l<CR>
nnoremap <leader>pv :wincmd v<bar> :Ex <bar> :vertical resize 30<CR>
nnoremap <leader>wv :vsplit<CR>
set splitbelow
set splitright
imap jj <ESC>
set number relativenumber
augroup numbertoggle
autocmd!
autocmd BufEnter,InsertLeave * set relativenumber
autocmd BufLeave,InsertEnter * set norelativenumber
augroup END
let g:lightline = {}
let g:lightline.colorscheme = 'gruvbox'
set runtimepath^=~/vimfiles/bundle/ctrlp.vim
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
set wildignore+=*\\Debug\\*,*\\Intermediate\\*,*\\Content\\*,*\\DerivedDataCache\\*,*\\Localization\\*,*\\ThirdParty\\*,*\\Plugins\\*,*\\Binaries\\*,*\\Build\\*,*\\BossBuild\\*,*\\FrontEnd\\*,*\\BinariesBuild\\*,*\\Config\\*,*\\Extras\\*,*\\Saved\\*,*\\Tools\\*,*.uasset,*.usf,*.exe,*.dll,*.pdb,*.target,*.bat,*.css,*.config,*.xml,*.map,*.sh ",*\\.hg\\*,*\\.svn\\*" " Windows ('noshellslash')
let g:ctrlp_max_files=0
nnoremap <leader>. :CtrlPTag<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment