My vim configuration
git clone
Log | Files | Refs | README

commit 0cee8f0036739a976f21683005758195611df755
parent a843684fd262a0ad465cada132c7f27cd809fd68
Author: mcol <>
Date:   Thu, 14 Mar 2019 17:54:38 +0000

set native window movement mappings

Minstall | 14+++++---------
Mplugin/keybindings.vim | 26+++++++++++++------------- | 1+
3 files changed, 19 insertions(+), 22 deletions(-)

diff --git a/install b/install @@ -1,7 +1,6 @@ #!/usr/bin/env bash # vim-misc directory -#dir="source $(dirname "$(readlink -f "$0")")" dir="$HOME/.vim/bundle/vim-misc" if [[ -f $HOME/.vimrc ]] @@ -18,13 +17,10 @@ then fi echo "source $dir/tmux.conf" > ~/.tmux.conf -add_dir() { - [[ ! -d $1 ]] && mkdir -p $1 -} -add_dir $HOME/.vim/backups -add_dir $HOME/.vim/sessions -add_dir $HOME/.vim/swap -add_dir $HOME/.vim/undo -add_dir $HOME/.vim/spell +mkdir -p $HOME/.vim/backups +mkdir -p $HOME/.vim/sessions +mkdir -p $HOME/.vim/swap +mkdir -p $HOME/.vim/undo +mkdir -p $HOME/.vim/spell echo 'open vim and run PluginInstall' diff --git a/plugin/keybindings.vim b/plugin/keybindings.vim @@ -52,19 +52,19 @@ cnoremap w!! w !sudo tee > /dev/null % " move between split views (these are configured by the vim-tmux plugin) " except for insert mode: -inoremap <silent> <C-H> <Esc>:TmuxNavigateLeft<cr> -inoremap <silent> <C-J> <Esc>:TmuxNavigateDown<cr> -inoremap <silent> <C-K> <Esc>:TmuxNavigateUp<cr> -inoremap <silent> <C-L> <Esc>:TmuxNavigateRight<cr> -inoremap <silent> <C-\> <Esc>:TmuxNavigatePrevious<cr> -"nnoremap <C-H> <C-W><C-H> -"nnoremap <C-J> <C-W><C-J> -"nnoremap <C-K> <C-W><C-K> -"nnoremap <C-L> <C-W><C-L> -"inoremap <C-H> <Esc><C-W><C-H> -"inoremap <C-J> <Esc><C-W><C-J> -"inoremap <C-K> <Esc><C-W><C-K> -"inoremap <C-L> <Esc><C-W><C-L> +"inoremap <silent> <C-H> <Esc>:TmuxNavigateLeft<cr> +"inoremap <silent> <C-J> <Esc>:TmuxNavigateDown<cr> +"inoremap <silent> <C-K> <Esc>:TmuxNavigateUp<cr> +"inoremap <silent> <C-L> <Esc>:TmuxNavigateRight<cr> +"inoremap <silent> <C-\> <Esc>:TmuxNavigatePrevious<cr> +nnoremap <C-H> <C-W><C-H> +nnoremap <C-J> <C-W><C-J> +nnoremap <C-K> <C-W><C-K> +nnoremap <C-L> <C-W><C-L> +inoremap <C-H> <Esc><C-W><C-H> +inoremap <C-J> <Esc><C-W><C-J> +inoremap <C-K> <Esc><C-W><C-K> +inoremap <C-L> <Esc><C-W><C-L> " move to start or end of line more easily nnoremap 0 ^ diff --git a/ b/ @@ -3,3 +3,4 @@ install beside [vundle]( git clone ~/.vim/bundle/Vundle.vim git clone ~/.vim/bundle/vim-misc ~/.vim/bundle/vim-misc/install + :PluginInstall