Commit 00537ed98af6754b684c093302ae29ba43c624e6 Parent: 3d0b1d3f5bdd02193a3bf759d86b89eb1930fe44 Author: mcol <mcol@posteo.net> Date: 2018-12-08 12:13:38 +0000 Committer: mcol <mcol@posteo.net> Committed: 2018-12-08 12:13:38 +0000 key bindings to use tmux-vim navigation
vimrc Modified
@@ -19,11 +19,12 @@ call vundle#begin() Plugin 'VundleVim/Vundle.vim' " required -"Plugin 'ervandew/supertab' " better tab completion -Plugin 'jpalardy/vim-slime' " send text to IDE and execute +Plugin 'mcolligan/vim-misc' " my vimrc and misc functions Plugin 'vimwiki/vimwiki' " vimwiki Plugin 'mcolligan/vimlab' " vimlab -Plugin 'mcolligan/vim-misc' " misc functions +Plugin 'mcolligan/tide' " tmux ide +Plugin 'jpalardy/vim-slime' " send text to IDE and execute +Plugin 'christoomey/vim-tmux-navigator' " navigate vim and tmux splits seamless call vundle#end() " required filetype plugin indent on " required @@ -46,6 +47,7 @@ set smartcase " searches ignore case only if all lower case set incsearch " Searches for strings while typing search term set gdefault " use global by default for substitutions +set nowrap " don't wrap really long lines set shiftwidth=4 " Default number of auto-indent spaces set autoindent " Auto-indent new lines
plugin/keybindings.vim Modified
@@ -47,15 +47,21 @@ " save read-only file with sudo trick cnoremap w!! w !sudo tee > /dev/null % -" move between split views -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 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> " move to start or end of line more easily nnoremap H 0