Révision | 76cdf31083cddb508e94c8a34a1202ba77b55df6 (tree) |
---|---|
l'heure | 2022-04-08 17:32:26 |
Auteur | badcoff33 <none@none> |
Commiter | badcoff33 |
use mouse actions in terminals to toggle between insert/normal
@@ -153,6 +153,7 @@ tnoremap <S-Down> <C-\><C-n><C-w>j | ||
153 | 153 | |
154 | 154 | " To map <Esc> to exit terminal-mode: > |
155 | 155 | tnoremap <Esc> <C-\><C-n> |
156 | +tnoremap <LeftMouse> <C-\><C-n> | |
156 | 157 | |
157 | 158 | " Line bubbling |
158 | 159 | nnoremap <A-j> <cmd>move .+1<CR>== |
@@ -243,16 +244,13 @@ command! -nargs=0 SC :set ignorecase smartcase | ||
243 | 244 | augroup init |
244 | 245 | autocmd! |
245 | 246 | autocmd BufEnter * if &pvw | setlocal nonu nornu | endif |
246 | - autocmd TerminalOpen * setlocal signcolumn=no nonumber norelativenumber foldcolumn=0 | |
247 | - autocmd SourcePost vimrc runtime plugins.vim | |
248 | 247 | autocmd VimEnter * execute "colorscheme "..( (&term == "builtin_gui") ? "twotone" : "apollo" ) |
249 | 248 | " Reload changed buffers. Command rely on 'autoread'. FocusedGained works only on same terminals |
250 | 249 | autocmd BufEnter * :checktime |
251 | 250 | augroup END |
252 | 251 | |
253 | - | |
254 | 252 | let g:term = &term |
255 | - | |
256 | 253 | syntax on |
257 | 254 | |
255 | +runtime plugins.vim | |
258 | 256 | " vim:sw=2:tw=78:nocindent:foldmethod=marker:nofen: |