47
47
" <F10> - toggle compile error window (equivalent to :QFix)
48
48
" <F12> - search for required-from-here (useful for errors)
49
49
"
50
+ " <C-t> - toggle built-in terminal
50
51
" <C-\> - enter normal mode in terminal (to select text)
52
+ " i or a - get back to insert mode in terminal
53
+ " <C-w> w - switch out of terminal window (back to editor)
54
+ " <C-w> "" - paste from vim clipboard to terminal
51
55
"
52
56
"
53
57
" Build and Run
241
245
"
242
246
" <C-J> - select next fuzzy candidate (in fuzzy find window)
243
247
" <C-K> - select previous fuzzy candidate (in fuzzy find window)
244
- " <C-P> - peek the current selected candidate (in fuzzy find window)
248
+ " <CR> - open current selected candidate (double click will work too)
249
+ " <TAB> - switch between normal mode / insert mode (in fuzzy find window)
250
+ " p - peek the current selected candidate in popup window
251
+ " v - open current selected candidate in vertical splitted window
252
+ " x - open current selected candidate in horizontal splitted window
253
+ " Q - add current selected candidate to quickfix list
254
+ " L - add current selected candidate to location list
255
+ " d - delete current selected candidate
245
256
"
246
257
247
258
set nocompatible
@@ -259,7 +270,7 @@ set showbreak=↪
259
270
set list
260
271
" set noek
261
272
" set rulerformat=%55(%{strftime('%a\ %b\ %e\ %I:%M\ %p')}\ %5l,%-6(%c%V%)\ %P%)
262
- set switchbuf = usetab
273
+ " set switchbuf=usetab
263
274
set undofile
264
275
if has (' nvim' )
265
276
set undodir = /tmp/ nvim// ,.
300
311
nnoremap <S-F7> :AsyncTask project-config<CR>
301
312
endif
302
313
nnoremap <silent> <F8> :wa<CR> :sh<CR><CR>
303
- nnoremap <silent> <F9> :wa<CR> :NERDTreeToggle<CR><C-w> l
314
+ nnoremap <silent> <F9> :wa<CR> :NERDTreeToggle<CR><C-w> l:Vista!! <CR><C-w> h
304
315
nnoremap <silent> <F10> :wa<CR> :QFix<CR>
305
316
nnoremap <silent> <F12> /required from here<CR>
306
317
" nnoremap <silent> <C-k> <C-w>k:q<CR>
@@ -320,9 +331,11 @@ vnoremap L $
320
331
" vnoremap z zz
321
332
" nnoremap <CR> O<ESC>cc<ESC>j
322
333
323
- " nnoremap <silent> <C-t> :botright terminal<CR>
324
- " tnoremap <C-t> <C-w>q
325
- " tnoremap <C-\> <C-\><C-n>
334
+ tnoremap <C-\> <C-\><C-n>
335
+ if ! has (' nvim' )
336
+ tnoremap <ScrollWheelUp> <C-\><C-n><ScrollWheelUp>
337
+ tnoremap <ScrollWheelDown> <C-\><C-n><ScrollWheelDown>
338
+ endif
326
339
327
340
vnoremap Z :w !xsel -ib<CR><CR>
328
341
" MacOS user should use this:
@@ -817,7 +830,7 @@ Plug 'haya14busa/incsearch.vim'
817
830
Plug ' voldikss/vim-floaterm'
818
831
Plug ' findango/vim-mdx' , {' for' : ' mdx' }
819
832
Plug ' Yggdroot/LeaderF' , { ' do' : ' :LeaderfInstallCExtension' }
820
- " Plug 'liuchengxu/vista.vim', {'on': 'Vista'}
833
+ Plug ' liuchengxu/vista.vim' , {' on' : ' Vista!! ' }
821
834
822
835
call plug#end ()
823
836
0 commit comments