Skip to content

Instantly share code, notes, and snippets.

@WilliamBundy
Created November 17, 2018 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WilliamBundy/5b5f8a4bcae363bf9211eef299dbb05d to your computer and use it in GitHub Desktop.
Save WilliamBundy/5b5f8a4bcae363bf9211eef299dbb05d to your computer and use it in GitHub Desktop.
_vimrc November 2018
set nocompatible
behave mswin
filetype plugin indent on
call plug#begin('C:/Vim/vimfiles/bundle')
Plug 'raymond-w-ko/vim-lua-indent'
Plug 'beyondmarc/hlsl.vim'
Plug 'William-Bundy/papercolor-theme'
Plug 'tomasr/molokai'
Plug 'vim-scripts/wombat'
Plug 'tpope/vim-surround'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'tikhomirov/vim-glsl'
Plug 'jiangmiao/auto-pairs'
Plug 'reedes/vim-pencil'
Plug 'Tetralux/odin.vim'
Plug 'Valloric/YouCompleteMe'
Plug 'ayu-theme/ayu-vim'
call plug#end()
set completeopt=longest,menuone,preview
let g:ycm_key_list_stop_completion = ['<C-y>', '<Enter>']
let g:ycm_confirm_extra_conf = 0
" inoremap <expr> <C-Space> pumvisible() ? "\<C-n>" : "\<C-X><C-]><C-n>"
" inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
" inoremap <expr> <Esc> pumvisible() ? "\<C-e>" : "\<Esc>"
" imap <expr> <CR> pumvisible() ? "\<C-y><Esc><C-W>}i" : "\<CR>"
" inoremap <expr> <Down> pumvisible() ? "\<C-n>" : "\<Down>"
" inoremap <expr> <Up> pumvisible() ? "\<C-p>" : "\<Up>"
" inoremap <expr> <PageDown> pumvisible() ? "\<PageDown>\<C-p>\<C-n>" : "\<PageDown>"
" inoremap <expr> <PageUp> pumvisible() ? "\<PageUp>\<C-p>\<C-n>" : "\<PageUp>"
" set guifont=Inconsolata:h14
" set guifont=gohufont-14:h14
set guifont=Roboto_Mono_Medium_for_Powerlin:h10:cANSI:qDRAFT
set guioptions-=T
set guioptions-=m
set guioptions-=r
set guioptions-=L
set noswapfile
let g:ctrlp_working_path_mode = 'rw'
let g:ctrlp_use_caching = 0
let g:ctrlp_root_markerns = ['make.bat', '.old']
let g:AutoPairsMultilineClose = 0
"General
set history=500
set autoread
let mapleader = "\<Space>"
let g:mapleader = "\<Space>"
nmap <leader>w :w!<cr>
" User Interface
let $LANG='en'
set wildmenu
set wildignore=*.o,*~,*.pyc,*.pdb,*.obj,*.exe,*.dll,*.dat,*.exp,*.lib,*.ase,*.mlt,tags,*.bdf
if has("win16") || has("win32")
set wildignore+=.git\*,.hg\*,.svn\*,msvc_libs\*,usr\*
else
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store,*/usr/*
endif
set ruler
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
set linebreak
nnoremap <CR> a<CR><Esc>k$
let delimitMate_jump_expansion = 1
let delimitMate_expand_cr = 1
set switchbuf=useopen,split
set ignorecase
set smartcase
set hlsearch
set incsearch
set magic
set showmatch
set mat=2
set cursorline
set noerrorbells
set vb t_vb=
autocmd GUIEnter * set vb t_vb=
set tm=500
set background=light
syntax enable
try
set termguicolors
let ayucolor="dark"
colorscheme ayu
"colorscheme PaperColor
"colorscheme molokai
catch
endtry
set encoding=utf8
set ffs=unix,dos,mac
set nobackup
set nowb
set noswapfile
set smarttab
set shiftwidth=4
set tabstop=4
set ai
set si
set cindent
set wrap
set cc=84
map j gj
map k gk
map <silent> <leader><cr> :noh<cr>
noremap <silent> <leader>m :wa<cr>:silent make<cr>
noremap <silent> <leader>r :wa<cr>:silent make run<cr>
noremap <silent> <leader>n :wa<cr>:silent make meta<cr>
noremap <silent> <leader>h :wa<cr>:silent make release run<cr>
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l
map 0 ^
set laststatus=2
set number
" set completeopt-=preview
map <MiddleMouse> <Nop>
imap <MiddleMouse> <Nop>
map <2-MiddleMouse> <Nop>
imap <2-MiddleMouse> <Nop>
map <3-MiddleMouse> <Nop>
imap <3-MiddleMouse> <Nop>
map <4-MiddleMouse> <Nop>
imap <4-MiddleMouse> <Nop>
function WilliamStartIDE()
vs
cope
endfunction
command! IDE :call WilliamStartIDE()
command! CdCurrent :cd %:p:h
nnoremap Q <Nop>
cd ~/Stuff/Development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment