aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2015-07-09 11:36:24 -0400
committerTeddy Wing2015-07-09 11:36:24 -0400
commit335bc032599cd530fa3372f767d3d24529621a8c (patch)
tree129f65cfc3b39637b8bcb4ae2002c6b8c8af9afc /vimrc
parent27ac3e8c63cbd201fa5bf375eb1eace78e15af1f (diff)
downloaddotvim-335bc032599cd530fa3372f767d3d24529621a8c.tar.bz2
vimrc: Add Netrw window size & sort options
* Move Netrw settings down to the Plugins section * Set an empty window size to make new :Vexplore windows open at half-width instead of being fixed at 25-ish columns (or whatever I had set for NERD Tree). Even after removing NERD Tree, for some reason :Vexplore refuses to open windows at the default unset window size, always using 25-ish. * Set case-insensitive sort so that uppercase file names don't appear above lowercase file names because it's confusing for the list to not be fully alphabetical from top to bottom.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc19
1 files changed, 16 insertions, 3 deletions
diff --git a/vimrc b/vimrc
index cef97b6..c441602 100644
--- a/vimrc
+++ b/vimrc
@@ -282,6 +282,16 @@
" * Remove EasyGrep configuration now that I've removed the plugin.
" * Remove NERDTree configuration now that I've removed the plugin.
"
+" 2015.07.09:
+" * Move Netrw settings to the Plugins section
+" * Set g:netrw_winsize=''. This should be the default but for some
+" reason :Vexplore is always opening with the same width that I had
+" previously defined for NERD Tree even though I've removed the plugin.
+" Turning on this setting because I can't for the life of me figure out
+" how the vertical explorer window size is getting set.
+" * Set g:netrw_sort_options='i' so that upper & lowercase files are
+" mixed together
+"
" Pathogen
@@ -376,9 +386,6 @@ set statusline+=%-8c " Column number (ensure space for 8 characters)
set statusline+=\ " Separator
set statusline+=%4P " Percent through file in window (ensure space for 4 characters)
-" Use Netrw's tree-style listing
-let g:netrw_liststyle = 3
-
" Syntax highlighting (base)
" ==========================
@@ -454,6 +461,12 @@ endif
nnoremap <leader>gu :GundoToggle<cr>
+" Netrw
+let g:netrw_liststyle = 3 " Use Netrw's tree-style listing
+let g:netrw_winsize = '' " Use default window size
+let g:netrw_sort_options = 'i' " Case-insensitive sort
+
+
" Source matchit for expanded % matching
runtime! macros/matchit.vim