dblume commited on 2025-06-04 21:59:34
Showing 2 changed files, with 2 additions and 2 deletions.
Usually when I want to move the current window to the right, I want to see another buffer on the left. Go ahead and just do that Now, <leader>v does: 1. <C-w>v make a vertical split 2. :bp show previous buffer here on left 3. <C-w>l make the right window active
| ... | ... |
@@ -55,7 +55,7 @@ inoremap <expr> <S-Tab> pumvisible() ? '<Up>' : '<S-Tab>' |
| 55 | 55 |
inoremap <expr> <cr> pumvisible() ? '<C-y>' : '<cr>' |
| 56 | 56 |
|
| 57 | 57 |
" https://stevelosh.com/blog/2010/09/coming-home-to-vim/#s3-why-i-came-back-to-vim |
| 58 |
-nnoremap <leader>v <C-w>v<C-w>l |
|
| 58 |
+nnoremap <leader>v <C-w>v:bp<cr><C-w>l |
|
| 59 | 59 |
nnoremap <C-h> <C-w>h |
| 60 | 60 |
nnoremap <C-j> <C-w>j |
| 61 | 61 |
nnoremap <C-k> <C-w>k |
| ... | ... |
@@ -50,7 +50,7 @@ inoremap <expr> <S-Tab> pumvisible() ? '<Up>' : '<S-Tab>' |
| 50 | 50 |
inoremap <expr> <cr> pumvisible() ? '<C-y>' : '<cr>' |
| 51 | 51 |
|
| 52 | 52 |
" https://stevelosh.com/blog/2010/09/coming-home-to-vim/#s3-why-i-came-back-to-vim |
| 53 |
-nnoremap <leader>v <C-w>v<C-w>l |
|
| 53 |
+nnoremap <leader>v <C-w>v:bp<cr><C-w>l |
|
| 54 | 54 |
nnoremap <C-h> <C-w>h |
| 55 | 55 |
nnoremap <C-j> <C-w>j |
| 56 | 56 |
nnoremap <C-k> <C-w>k |
| 57 | 57 |