|
|
|
|
@ -67,8 +67,9 @@ let g:airline_left_sep = ''
|
|
|
|
|
let g:airline_left_alt_sep = '' |
|
|
|
|
let g:airline_right_sep = '' |
|
|
|
|
let g:airline_right_altsep = '' |
|
|
|
|
let g:airline_section_c = '%{getcwd()}' |
|
|
|
|
"let g:airline_section_c = '%{getcwd()}' |
|
|
|
|
let g:airline_section_warning = '' " disable whitespace warnings |
|
|
|
|
"let g:airline_powerline_fonts = 1 |
|
|
|
|
|
|
|
|
|
" custom keybinds |
|
|
|
|
" C-PageUp/Down conflicts with xfce-terminal, so there is a trick to fixing |
|
|
|
|
@ -81,10 +82,12 @@ nnoremap <C-L> <C-W><C-L>
|
|
|
|
|
nnoremap <C-H> <C-W><C-H> |
|
|
|
|
" override default paste behavior |
|
|
|
|
xnoremap p pgvy |
|
|
|
|
"map <F5> :make<CR> |
|
|
|
|
map <F6> :ccl<CR> |
|
|
|
|
map <F2> :cn<CR> |
|
|
|
|
nmap <F4> :bp\|bd #<CR> |
|
|
|
|
|
|
|
|
|
" AsyncRun |
|
|
|
|
" https://github.com/skywind3000/asyncrun.vim |
|
|
|
|
map <F5> :AsyncRun -save=2 make<CR> |
|
|
|
|
|
|
|
|
|
augroup vimrc |
|
|
|
|
@ -101,17 +104,6 @@ augroup vimrc
|
|
|
|
|
" save folds/cursor positions of buffers |
|
|
|
|
autocmd BufWinLeave *.* mkview |
|
|
|
|
autocmd BufWinEnter *.* silent loadview |
|
|
|
|
|
|
|
|
|
" Automatically open, but do not go to (if there are errors) the quickfix / |
|
|
|
|
" location list window, or close it when is has become empty. |
|
|
|
|
" |
|
|
|
|
" Note: Must allow nesting of autocmds to enable any customizations for quickfix |
|
|
|
|
" buffers. |
|
|
|
|
" Note: Normally, :cwindow jumps to the quickfix window if the command opens it |
|
|
|
|
" (but not if it's already open). However, as part of the autocmd, this doesn't |
|
|
|
|
" seem to happen. |
|
|
|
|
"autocmd QuickFixCmdPost [^l]* nested cwindow |
|
|
|
|
"autocmd QuickFixCmdPost l* nested lwindow |
|
|
|
|
augroup END |
|
|
|
|
|
|
|
|
|
" fix keycodes when running inside tmux |
|
|
|
|
|