|
|
|
|
@ -8,33 +8,30 @@ filetype off
|
|
|
|
|
" 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 for running make asynchronously |
|
|
|
|
Plugin 'christoomey/vim-tmux-navigator' |
|
|
|
|
Plugin 'https://github.com/skywind3000/asyncrun.vim.git' |
|
|
|
|
" glsl hilighting |
|
|
|
|
Plugin 'tikhomirov/vim-glsl' |
|
|
|
|
autocmd! BufNewFile,BufRead *.vs,*.fs set ft=glsl |
|
|
|
|
" additional highlighting for c/c++ function names |
|
|
|
|
Plugin 'octol/vim-cpp-enhanced-highlight' |
|
|
|
|
" better vim-markdown plugin |
|
|
|
|
Plugin 'godlygeek/tabular' |
|
|
|
|
Plugin 'godlygeek/tabular' " required for vim-markdown |
|
|
|
|
Plugin 'plasticboy/vim-markdown' |
|
|
|
|
Plugin 'https://github.com/StanAngeloff/php.vim.git' |
|
|
|
|
Plugin 'https://github.com/pangloss/vim-javascript.git' |
|
|
|
|
Plugin 'jlanzarotta/bufexplorer' |
|
|
|
|
Plugin 'vim-airline/vim-airline' |
|
|
|
|
Plugin 'vim-airline/vim-airline-themes' |
|
|
|
|
|
|
|
|
|
" All of your Plugins must be added before the following line |
|
|
|
|
call vundle#end() " required |
|
|
|
|
"filetype plugin indent on " required |
|
|
|
|
|
|
|
|
|
" |
|
|
|
|
" End Vundle config |
|
|
|
|
" |
|
|
|
|
|
|
|
|
|
"------------------ |
|
|
|
|
|
|
|
|
|
" some general vim settings |
|
|
|
|
" |
|
|
|
|
filetype plugin indent on |
|
|
|
|
syntax on |
|
|
|
|
colorscheme deus |
|
|
|
|
@ -60,8 +57,9 @@ set undoreload=10000
|
|
|
|
|
set foldmethod=syntax |
|
|
|
|
set foldnestmax=1 |
|
|
|
|
set foldlevelstart=20 |
|
|
|
|
set foldcolumn=2 |
|
|
|
|
set foldcolumn=0 |
|
|
|
|
set autoindent |
|
|
|
|
let php_folding = 2 |
|
|
|
|
|
|
|
|
|
" filename auto-completion |
|
|
|
|
set wildmode=longest,list,full |
|
|
|
|
@ -105,22 +103,22 @@ nmap <F4> :bp\|bd #<CR>
|
|
|
|
|
"------------------ |
|
|
|
|
" AsyncRun |
|
|
|
|
let g:qf_toggle = '' |
|
|
|
|
let g:win_save = '' |
|
|
|
|
"let g:win_save = '' |
|
|
|
|
function QfToggle() |
|
|
|
|
if (g:qf_toggle == '') |
|
|
|
|
call QfJumpAndReturn() |
|
|
|
|
else |
|
|
|
|
let g:qf_toggle = '' |
|
|
|
|
:ccl |
|
|
|
|
call winrestview(g:win_save) |
|
|
|
|
"call winrestview(g:win_save) |
|
|
|
|
endif |
|
|
|
|
endfunction |
|
|
|
|
|
|
|
|
|
function QfJumpAndReturn() |
|
|
|
|
let g:qf_toggle = "open" |
|
|
|
|
let g:win_save = winsaveview() |
|
|
|
|
:copen 16 |
|
|
|
|
:wincmd p |
|
|
|
|
let g:qf_toggle = "open" |
|
|
|
|
"let g:win_save = winsaveview() |
|
|
|
|
:copen 16 |
|
|
|
|
:wincmd p |
|
|
|
|
endfunction |
|
|
|
|
|
|
|
|
|
function RunMake() |
|
|
|
|
@ -131,6 +129,8 @@ function RunMake()
|
|
|
|
|
endfunction |
|
|
|
|
|
|
|
|
|
let g:asyncrun_timer = 250 |
|
|
|
|
" search for word under cursor in src/ directory |
|
|
|
|
map <F3> ::AsyncRun grep -Rn <c-r><c-w> src/<cr> |
|
|
|
|
map <F5> :call RunMake()<cr> |
|
|
|
|
noremap <F6> :call QfToggle() <cr> |
|
|
|
|
|
|
|
|
|
@ -153,6 +153,9 @@ augroup vimrc
|
|
|
|
|
" save folds/cursor positions of buffers |
|
|
|
|
autocmd BufWinLeave *.* mkview |
|
|
|
|
autocmd BufWinEnter *.* silent loadview |
|
|
|
|
|
|
|
|
|
" glsl filetype plugin |
|
|
|
|
autocmd! BufNewFile,BufRead *.vs,*.fs set ft=glsl |
|
|
|
|
augroup END |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|