Skip to content

Instantly share code, notes, and snippets.

@dhilst
Created November 26, 2016 03:03
Show Gist options
  • Save dhilst/f68fd07e1702e2f987aef587734a8383 to your computer and use it in GitHub Desktop.
Save dhilst/f68fd07e1702e2f987aef587734a8383 to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'JalaiAmitahl/maven-compiler.vim'
Plugin 'mattn/webapi-vim'
Plugin 'mattn/gist-vim' " depends on webapi-vim
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
filetype plugin on
set omnifunc=syntaxComplete#Complete
nmap <F2> :NERDTree<CR>
au FileType java compiler mvn |
set ts=4 sw=4 noet
au BufRead,BufNewFile *.xml,*.html set ts=2 sw=2 et
au FileType java nmap <buffer> <F9> :make package<CR>
au FileType c nmap <buffer> <F9> :make all<CR>
au FileType java,c,c++ inoremap <buffer> { {}<Esc>i
au FileType java,c,c++ inoremap <buffer> ( ()<Esc>i
au FileType java,c,c++ inoremap <buffer> " ""<Esc>i
au FileType java,c,c++ inoremap <buffer> ' ''<Esc>i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment