aboutsummaryrefslogtreecommitdiff
path: root/vim/config/windows.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-28 21:47:05 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-28 21:52:10 +1300
commit8b156457b45ae6fa971362d68141fb177974b218 (patch)
tree16c6c85b080daaa18a8b8ac72e41accb1b2214a9 /vim/config/windows.vim
parentMove wildmenu .vimrc config into subfile (diff)
downloaddotfiles-8b156457b45ae6fa971362d68141fb177974b218.tar.gz
dotfiles-8b156457b45ae6fa971362d68141fb177974b218.zip
Move windows .vimrc config into subfile
Not the operating system; Vim editor windows.
Diffstat (limited to 'vim/config/windows.vim')
-rw-r--r--vim/config/windows.vim27
1 files changed, 27 insertions, 0 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