From 2c793118aded83d719ac307e4133f1c1bb41137c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 28 Nov 2016 20:05:57 -0500 Subject: Add ftplugin/netrw.vim Override the `g:netrw_bufsettings` variable to make Netrw always open with line numbers. This should make it easier to navigate to a specific file in the tree. Copied the settings from the original value and changed `nonu` to `nu`. Following this Stack Overflow answer from Benoit to get this working: http://stackoverflow.com/questions/8730702/how-do-i-configure-vimrc-so-that-line-numbers-display-in-netrw-in-vim/8731175#8731175 --- ftplugin/netrw.vim | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 ftplugin/netrw.vim (limited to 'ftplugin') diff --git a/ftplugin/netrw.vim b/ftplugin/netrw.vim new file mode 100644 index 0000000..78710e8 --- /dev/null +++ b/ftplugin/netrw.vim @@ -0,0 +1,3 @@ +" Show line numbers in Netrw. Copied and modified from: +" :Explore | echo g:netrw_bufsettings +let g:netrw_bufsettings='noma nomod nu nobl nowrap ro' -- cgit v1.2.3