|
|
|
@ -72,12 +72,14 @@ set ttimeoutlen=10 |
|
|
|
" line numbering gutter |
|
|
|
" line numbering gutter |
|
|
|
set nonu |
|
|
|
set nonu |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" override default paste behavior |
|
|
|
|
|
|
|
xnoremap p pgvy |
|
|
|
|
|
|
|
|
|
|
|
" gvim options |
|
|
|
" gvim options |
|
|
|
if has("gui_running") |
|
|
|
if has("gui_running") |
|
|
|
set lines=60 columns=100 |
|
|
|
set lines=60 columns=100 |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"------------------ |
|
|
|
"------------------ |
|
|
|
" airline plugin stuffs |
|
|
|
" airline plugin stuffs |
|
|
|
set laststatus=2 |
|
|
|
set laststatus=2 |
|
|
|
@ -91,24 +93,24 @@ let g:airline_right_altsep = '' |
|
|
|
let g:airline_symbols.maxlinenr = '' |
|
|
|
let g:airline_symbols.maxlinenr = '' |
|
|
|
"let g:airline#extensions#tabline#enabled = 1 |
|
|
|
"let g:airline#extensions#tabline#enabled = 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"------------------ |
|
|
|
"------------------ |
|
|
|
" custom keybinds |
|
|
|
" custom keybinds |
|
|
|
" C-PageUp/Down conflicts with xfce-terminal, so there is a trick to fixing |
|
|
|
" C-PageUp/Down conflicts with xfce-terminal, so there is a trick to fixing |
|
|
|
" https://unix.stackexchange.com/questions/159979/xfce4-terminal-disable-individual-shortcut |
|
|
|
" https://unix.stackexchange.com/questions/159979/xfce4-terminal-disable-individual-shortcut |
|
|
|
map <C-PageDown> :bnext<CR> |
|
|
|
map <C-PageDown> :bnext<CR> |
|
|
|
map <C-PageUp> :bprev<CR> |
|
|
|
map <C-PageUp> :bprev<CR> |
|
|
|
nnoremap <C-J> <C-W><C-J> |
|
|
|
" jump to word under cursor in a preview window |
|
|
|
nnoremap <C-K> <C-W><C-K> |
|
|
|
noremap <F2> :ptjump <c-r><c-w> <cr> |
|
|
|
nnoremap <C-L> <C-W><C-L> |
|
|
|
" search for word under cursor in src/ directory |
|
|
|
nnoremap <C-H> <C-W><C-H> |
|
|
|
noremap <F3> ::AsyncRun grep -RIn <c-r><c-w> <cr> |
|
|
|
" override default paste behavior |
|
|
|
noremap <F4> :bp\|bd #<cr> |
|
|
|
xnoremap p pgvy |
|
|
|
noremap <F5> :call RunMake()<cr> |
|
|
|
map <F2> :cn<CR> |
|
|
|
noremap <F6> :call QfToggle() <cr> |
|
|
|
nmap <F4> :bp\|bd #<CR> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"------------------ |
|
|
|
"------------------ |
|
|
|
" AsyncRun |
|
|
|
" AsyncRun |
|
|
|
|
|
|
|
let g:asyncrun_timer = 250 |
|
|
|
|
|
|
|
|
|
|
|
let g:qf_toggle = '' |
|
|
|
let g:qf_toggle = '' |
|
|
|
"let g:win_save = '' |
|
|
|
"let g:win_save = '' |
|
|
|
function QfToggle() |
|
|
|
function QfToggle() |
|
|
|
@ -135,15 +137,6 @@ function RunMake() |
|
|
|
:AsyncRun -cwd=<root> -save=2 make -j4 |
|
|
|
:AsyncRun -cwd=<root> -save=2 make -j4 |
|
|
|
endfunction |
|
|
|
endfunction |
|
|
|
|
|
|
|
|
|
|
|
let g:asyncrun_timer = 250 |
|
|
|
|
|
|
|
" jump to word under cursor in a preview window |
|
|
|
|
|
|
|
noremap <F2> <Esc>:exe "ptjump " . expand("<cword>")<Esc> |
|
|
|
|
|
|
|
" search for word under cursor in src/ directory |
|
|
|
|
|
|
|
noremap <F3> ::AsyncRun grep -Rn <c-r><c-w> src/<cr> |
|
|
|
|
|
|
|
noremap <F5> :call RunMake()<cr> |
|
|
|
|
|
|
|
noremap <F6> :call QfToggle() <cr> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"------------------ |
|
|
|
"------------------ |
|
|
|
" autocommands |
|
|
|
" autocommands |
|
|
|
augroup vimrc |
|
|
|
augroup vimrc |
|
|
|
|