aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-01-20 13:31:53 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-01-20 13:31:53 +1300
commit476d47375d36cbffd7842d4408d2b9fd0c0b3d54 (patch)
treefe4cd53bc143443464cd25464de7ac5516c71dd4 /vim
parentInstall all contents of vim/after/* (diff)
downloaddotfiles-476d47375d36cbffd7842d4408d2b9fd0c0b3d54.tar.gz
dotfiles-476d47375d36cbffd7842d4408d2b9fd0c0b3d54.zip
Move netrw settings into after script
Diffstat (limited to 'vim')
-rw-r--r--vim/after/plugin/netrw.vim12
-rw-r--r--vim/vimrc17
2 files changed, 12 insertions, 17 deletions
diff --git a/vim/after/plugin/netrw.vim b/vim/after/plugin/netrw.vim
new file mode 100644
index 00000000..6afafb67
--- /dev/null
+++ b/vim/after/plugin/netrw.vim
@@ -0,0 +1,12 @@
+" Don't show the preamble banner
+let g:netrw_banner = 0
+
+" Perform file transfers silently
+let g:netrw_silent = 1
+
+" Use a tree-style file listing
+let g:netrw_liststyle = 3
+
+" Don't list the current directory shortcut, and don't show tags files
+let g:netrw_list_hide = '^\.$,^tags$'
+
diff --git a/vim/vimrc b/vim/vimrc
index a53dc606..9c331d47 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -220,23 +220,6 @@ set report=0
" more than scratch space anyway
set shellslash
-" Configure the netrw plugin included with Vim for file listings and network
-" editing
-if has('eval')
-
- " Don't show the preamble banner
- let g:netrw_banner = 0
-
- " Perform file transfers silently
- let g:netrw_silent = 1
-
- " Use a tree-style file listing
- let g:netrw_liststyle = 3
-
- " Don't list the current directory shortcut, and don't show tags files
- let g:netrw_list_hide = '^\.$,^tags$'
-endif
-
" Don't show line numbers by default, but \n toggles them
set nonumber
nnoremap <leader>n :setlocal number!<CR>