aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:24:32 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:24:32 +1300
commitb841310211f3e54c82ecb4efaa3ccc3544947ec3 (patch)
tree8f355170a33f357537851c4f0d21de00b965aedb
parentMove substitution .vimrc config into subfile (diff)
downloaddotfiles-b841310211f3e54c82ecb4efaa3ccc3544947ec3.tar.gz
dotfiles-b841310211f3e54c82ecb4efaa3ccc3544947ec3.zip
Move buffers .vimrc config into subfile
-rw-r--r--vim/config/buffers.vim8
-rw-r--r--vim/vimrc8
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
+
diff --git a/vim/vimrc b/vim/vimrc
index 6e536c33..d56c9ee6 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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