Skip to content

Instantly share code, notes, and snippets.

@WilliamBundy
Created October 25, 2016 00:36
Show Gist options
  • Save WilliamBundy/b47a9969938b22f5d3e495607aa85107 to your computer and use it in GitHub Desktop.
Save WilliamBundy/b47a9969938b22f5d3e495607aa85107 to your computer and use it in GitHub Desktop.
My vimrc as of 10/24/16
set nocompatible
behave mswin
call plug#begin('C:/Vim/vimfiles/bundle')
Plug 'tomasr/molokai'
Plug 'tpope/vim-surround'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'craigemery/vim-autotag'
Plug 'tikhomirov/vim-glsl'
Plug 'Raimondi/delimitMate'
call plug#end()
set tags+=c:/mslibs/tags
set completeopt=longest,menuone,preview
command LibraryTags :set tags+=c:/mslib/tags
command HereTags :set tags+=./tags
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>"
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<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>"
colo molokai
set guifont=gohufont-14:h14
set guioptions-=T
set guioptions-=m
set guioptions-=r
set guioptions-=L
set noswapfile
let g:ctrlp_working_path_mode = 'r'
let g:ctrlp_use_caching = 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/*,*/.DS_Store
else
set wildignore+=.git\*,.hg\*,.svn\*
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
syntax enable
try
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
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>
cd c:/users/William/Stuff/Development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment