aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/config/windows.vim27
-rw-r--r--vim/vimrc28
2 files changed, 27 insertions, 28 deletions
diff --git a/vim/config/windows.vim b/vim/config/windows.vim
new file mode 100644
index 00000000..a54b8997
--- /dev/null
+++ b/vim/config/windows.vim
@@ -0,0 +1,27 @@
+" Configuration for window features
+if has('windows')
+
+ " Show the status in a distinct bar above the command line only if there's
+ " more than one window on the screen or in the current tab
+ set laststatus=1
+
+ " Don't resize windows we're not splitting (Tmux-like; think Mondrian)
+ set noequalalways
+
+ " New split windows appear below or to the right of the existing window,
+ " not above or to the left per the default
+ set splitbelow
+ if has('vertsplit')
+ set splitright
+ endif
+
+ " Only show the tab bar if there's more than one tab
+ if exists('&showtabline')
+ set showtabline=1
+ endif
+
+ " Get rid of visually noisy folding characters
+ if has('folding')
+ let &fillchars = 'diff: ,fold: ,vert: '
+ endif
+endif
diff --git a/vim/vimrc b/vim/vimrc
index 1442fe80..19dbd482 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -227,34 +227,6 @@ if has('virtualedit')
set virtualedit+=block
endif
-" Configuration for window features
-if has('windows')
-
- " Show the status in a distinct bar above the command line only if there's
- " more than one window on the screen or in the current tab
- set laststatus=1
-
- " Don't resize windows we're not splitting (Tmux-like; think Mondrian)
- set noequalalways
-
- " New split windows appear below or to the right of the existing window,
- " not above or to the left per the default
- set splitbelow
- if has('vertsplit')
- set splitright
- endif
-
- " Only show the tab bar if there's more than one tab
- if exists('&showtabline')
- set showtabline=1
- endif
-
- " Get rid of visually noisy folding characters
- if has('folding')
- let &fillchars = 'diff: ,fold: ,vert: '
- endif
-endif
-
" Use the tilde as an operator with motions, rather than just swapping the
" case of the character under the cursor
set tildeop