dotfiles/vimrc

42 lines
1001 B
VimL
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

execute pathogen#infect()
syntax on
filetype plugin indent on
colorscheme gruvbox
set t_Co=256
set background=dark
set number
set incsearch
set hlsearch
set completeopt-=preview
set laststatus=2
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
set t_ZH=
set t_ZR=
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline_theme='gruvbox'
let g:indentLine_char = '│'
let delimitMate_expand_cr = 1
let g:EclimCompletionMethod = 'omnifunc'
" let b:EclimPhpHtmlValidate = 1
nnoremap <silent> <M-l> :TmuxNavigateLeft<cr>
nnoremap <silent> <M-j> :TmuxNavigateDown<cr>
nnoremap <silent> <M-k> :TmuxNavigateUp<cr>
nnoremap <silent> <M-l> :TmuxNavigateRight<cr>
nnoremap <silent> <F12> :noh<cr>
nnoremap <F4> :buffers<cr>:buffer<space>
map <silent> <F2> :NERDTreeToggle<cr>
map <silent> <F3> :TagbarToggle<cr>
" map <F5> :!./%<cr>
if !empty(glob("./build.gradle"))
map <F5> :!clear && gradle build<cr>
map <F6> :!clear && gradle run<cr>
endif