Context sensitive workspace navigation
<c-h>
/<c-j>
/<c-k>
/<c-l>
moves cursor around in windows/tabs/buffers- Workspace context sensitive: Fall through: Windows > Tabs > Buffers
- Mode context sensitive
- Normal mode moves cursor
- Visual mode moves selected (line of) text
<c-x>
in normal mode closes where cursor is: Window > Tab > Buffer
let g:ctrlhjkl_suppress_keymaps = 1
nmap <s-j> <Plug>CtrlHJKLGoJn
nmap <s-k> <Plug>CtrlHJKLGoKn
nmap <s-h> <Plug>CtrlHJKLGoHn
nmap <s-l> <Plug>CtrlHJKLGoLn
nmap <s-l> <Plug>CtrlHJKLClose
xmap <s-j> <Plug>CtrlHJKLMoveJ
xmap <s-k> <Plug>CtrlHJKLMoveK
xmap <s-h> <Plug>CtrlHJKLMoveH
xmap <s-l> <Plug>CtrlHJKLMoveL
let g:ctrlhjkl_suppress_buffercycling = 1
let g:ctrlhjkl_suppress_bufferclosing = 1
- Move in my .vimrc tab mappings?
- Add tab movement mappings
- Tab to right & tab to left, cycling
- <ctrl-t><ctrl-h>
- <ctrl-t><ctrl-l>
- Add tab initialization mapping
- Initialize tab to far right?
- Same <ctrl-t><ctrl-t>
- Add tab movement mappings
- Add my related Ctrl-P/Ack!/NerdTree unified mappings for opening in windows/tabs
- Just in docs, not in actual plugin
- Think about making kill buffers in window/tab context?
- Window: Close window & kill buffer if this is only place it's open
- Tab: Close tab & kill buffer if this is only place it's open
- Rename from CtrlHJKL?
- We now have CtrlX also for closing
- Create a /doc/ctrlp.txt
- And update ctags?
- Create real screencast .gif and place in README
- Promote this plugin looking for beta testers
- Reddit again?
- http://www.vim.org/scripts/?
- Release to places as needed
- vimawesome?
- http://www.vim.org/scripts/?
- ...?
" 'qpkorr/vim-bufkill'
let g:BufKillCreateMappings = 0 " My own keymappings
:nnoremap <C-x> :BD<cr>
" matze/vim-move to work as <s-j> and <s-k>
" Works with shift '>'
let g:move_key_modifier = 'S'