Skip to content

Instantly share code, notes, and snippets.

@WilliamBundy
Created June 19, 2016 19:08
Show Gist options
  • Save WilliamBundy/ecaafa02f1255e55804fa0aa7dc25af5 to your computer and use it in GitHub Desktop.
Save WilliamBundy/ecaafa02f1255e55804fa0aa7dc25af5 to your computer and use it in GitHub Desktop.
My .vimrc
set nocompatible
behave mswin
call plug#begin('C:/Vim/vimfiles/bundle')
Plug 'tomasr/molokai'
Plug 'tpope/vim-surround'
Plug 'vim-scripts/a.vim'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'craigemery/vim-autotag'
" Plug 'vim-scripts/AutoComplPop'
Plug 'tikhomirov/vim-glsl'
Plug 'scrooloose/nerdtree'
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 = ","
let g:mapleader = ","
nmap <leader>w :w!<cr>
nnoremap <C-n> :NERDTreeToggle<CR>
" User Interface
let $LANG='en'
set wildmenu
set wildignore=*.o,*~,*.pyc,*.pdb,*.obj,*.exe,*.dll,*.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$
inoremap { {<CR><BS>}<Esc>ko
set switchbuf=useopen,split
set ignorecase
set smartcase
set hlsearch
set incsearch
set magic
set showmatch
set mat=2
set noerrorbells
set novisualbell
set 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>
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