From 335bc032599cd530fa3372f767d3d24529621a8c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 9 Jul 2015 11:36:24 -0400 Subject: 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. --- vimrc | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'vimrc') 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 gu :GundoToggle +" 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 -- cgit v1.2.3