Last active
February 20, 2016 22:13
-
-
Save brcolow/105a845f8144c3c2d61a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if has("nvim") | |
let g:python3_host_prog='C:\Python34\python.exe' | |
endif | |
set shortmess+=c | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set hidden | |
set ignorecase | |
set smartcase | |
set incsearch | |
set showmatch | |
set hlsearch | |
set autoindent | |
set backspace=indent,eol,start | |
set wildmenu | |
" set wildmode=list:longest,full | |
set smarttab | |
set complete-=i | |
set laststatus=2 | |
set number | |
set noswapfile | |
set nobackup | |
set noerrorbells | |
set tm=500 | |
set showcmd | |
set noshowmode | |
set autoread | |
set fileformats+=mac | |
set history=10000 | |
set nostartofline | |
set tags^=./.tags,.tags | |
set wildmode=list:longest | |
set wildignore+=*/tmp/*,*/target/*,*.so,*.swp,*.zip,*.class,*.jar | |
set listchars=trail:·,tab:▸\ | |
set smartindent | |
set expandtab | |
set shiftround | |
set splitright | |
set nowrap | |
set completeopt=longest,menuone | |
set clipboard=unnamed | |
set mouse=a | |
set tabpagemax=50 | |
set timeoutlen=3000 | |
call plug#begin() | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'ludovicchabant/vim-gutentags' | |
Plug 'tpope/vim-surround' | |
Plug 'tpope/vim-fugitive' | |
Plug 'Shougo/deoplete.nvim' | |
let g:deoplete#enable_at_startup = 1 | |
Plug 'rudes/vim-java' | |
Plug 'brcolow/neomake' | |
let g:neomake_java_enabled_makers = ['mvn'] | |
nnoremap ,b :Neomake<cr> | |
Plug 'inside/vim-search-pulse' | |
let g:vim_search_pulse_mode = 'pattern' | |
let g:vim_search_pulse_disable_auto_mappings = 1 | |
let g:vim_search_pulse_color_list = ["red", "white"] | |
let g:vim_search_pulse_duration = 200 | |
nmap n n<Plug>Pulse | |
nmap N N<Plug>Pulse | |
Plug 'kana/vim-textobj-user' | |
" (l)ine | |
Plug 'kana/vim-textobj-line' | |
" (f)unction / method | |
Plug 'kana/vim-textobj-function', { 'for': ['cpp', 'c', 'java', 'vim' ] } | |
" (a)rgument | |
Plug 'gaving/vim-textobj-argument' | |
" (u)rl | |
Plug 'mattn/vim-textobj-url' | |
call plug#end() | |
nnoremap <silent> <C-L> :nohlsearch<CR> | |
filetype plugin indent on | |
syntax enable | |
" Never insert <CR> if there are completions | |
inoremap <expr> <CR> pumvisible() ? "\<C-Y>" : "\<CR>" | |
nnoremap Y y$ | |
nnoremap ,so :<C-u>source $MYVIMRC<CR> | |
nnoremap ,rc :<C-u>edit $MYVIMRC<CR> | |
" Open help files in new tab | |
autocmd BufEnter *.txt if &buftype == 'help' | silent wincmd T | endif | |
" Plug | |
nnoremap <silent> ,pc :<C-u>PlugClean<CR> | |
nnoremap <silent> ,pd :<C-u>PlugDiff<CR> | |
nnoremap <silent> ,pi :<C-u>PlugInstall<CR> | |
nnoremap <silent> ,ps :<C-u>PlugStatus<CR> | |
nnoremap <silent> ,pu :<C-u>PlugUpdate<CR> | |
" When a window is entered, set nowrap (so nowrap is honored even in splits) | |
au! WinEnter * set nowrap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment