aboutsummaryrefslogtreecommitdiff
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
parentd27dbdad24ea0772711fa883969de97d0807827d (diff)
downloaddotfiles-8b156457b45ae6fa971362d68141fb177974b218.tar.gz
dotfiles-8b156457b45ae6fa971362d68141fb177974b218.zip
Move windows .vimrc config into subfile
Not the operating system; Vim editor windows.
-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