diff options
-rw-r--r-- | vim/config/buffers.vim | 8 | ||||
-rw-r--r-- | vim/vimrc | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/vim/config/buffers.vim b/vim/config/buffers.vim new file mode 100644 index 00000000..6102fc76 --- /dev/null +++ b/vim/config/buffers.vim @@ -0,0 +1,8 @@ +" Allow jumping between windows and tabs to find an open instance of a given +" buffer with :sbuffer. +if v:version >= 701 + set switchbuf=useopen,usetab +else + set switchbuf=useopen +endif + @@ -44,11 +44,3 @@ set tildeop " the cursor, but Y yanks the whole line, which is inconsistent (and can be " done with yy anyway); this fixes it so it only yanks the rest of the line nnoremap Y y$ - -" Allow jumping between windows and tabs to find an open instance of a given -" buffer with :sbuffer. -if v:version >= 701 - set switchbuf=useopen,usetab -else - set switchbuf=useopen -endif |