Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. if has('nvim')
  2. augroup vimrc_term
  3. autocmd!
  4. autocmd WinEnter term://* nohlsearch
  5. autocmd WinEnter term://* startinsert
  6.  
  7. autocmd TermOpen * tnoremap <buffer> <C-h> <C-\><C-n><C-w>h
  8. autocmd TermOpen * tnoremap <buffer> <C-j> <C-\><C-n><C-w>j
  9. autocmd TermOpen * tnoremap <buffer> <C-k> <C-\><C-n><C-w>k
  10. autocmd TermOpen * tnoremap <buffer> <C-l> <C-\><C-n><C-w>l
  11. autocmd TermOpen * tnoremap <buffer> <Esc> <C-\><C-n>
  12. augroup END
  13. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement