Commit 3699ffb5 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add terminal tweaks for nvim

- Disable long line highlighting in terminal buffers
- Enable CtrlSpace in TERMINAL mode
parent a61b0295
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -44,6 +44,9 @@ let g:CtrlSpaceSaveWorkspaceOnSwitch = 1
let g:CtrlSpaceSaveWorkspaceOnExit = 1
let g:CtrlSpaceLoadLastWorkspaceOnStart = 1
let g:CtrlSpaceDefaultMappingKey = "<C-space> "
if exists(':tnoremap')
    tnoremap <C-space> <C-\><C-n>:CtrlSpace<CR>
endif

" Modeline
set modeline
@@ -107,6 +110,7 @@ au BufWinEnter * match ExtraWhitespace /\v([^\t]+)@>\t+|(\s{2,}|(\w.*)@<!\s)$/
" High-light text longer than 80 characters
highlight LongLine ctermbg=red guibg=pink
au BufWinEnter * match LongLine /\v%81v[^\r]/
au BufWinEnter term://* match none

" Toggle search high-lighting with 'th'
nmap <silent>th :set hlsearch!<CR>