Add version check for terminal remaps in vimrc

This commit is contained in:
2020-07-21 15:34:48 -05:00
parent d7053a7f1c
commit ae0ed281de
2 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -119,5 +119,5 @@ function flocate() {
#################### OS Initialization Tools ###################
function debian_init() {
sudo apt-get update
sudo apt-get install -y tmux vim curl
sudo apt-get install -y tmux vim curl zsh
}
+7 -4
View File
@@ -168,7 +168,10 @@ nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
tnoremap <C-h> <C-w>h
tnoremap <C-j> <C-w>j
tnoremap <C-k> <C-w>k
tnoremap <C-l> <C-w>l
if v:version > 800
tnoremap <C-h> <C-w>h
tnoremap <C-j> <C-w>j
tnoremap <C-k> <C-w>k
tnoremap <C-l> <C-w>l
endif