This filer is so light and intuitive.
You don't have to remember too many keymapings.
This filer will deliver the simplest vertically divided filer in the world.
Use your favorite plugin manager to install this plugin. tpope/vim-pathogen, VundleVim/Vundle.vim, junegunn/vim-plug, and Shougo/dein.vim are some of the more popular ones. A lengthy discussion of these and other managers can be found on vi.stackexchange.com. Basic instructions are provided below, but please be sure to read, understand, and follow all the safety rules that come with your power tools plugin manager.
If you have no favorite, or want to manage your plugins without 3rd-party dependencies, consider using Vim 8+ packages, as described in Greg Hurrell's excellent Youtube video: Vim screencast #75: Plugin managers.
Pathogen
Pathogen is more of a runtime path manager than a plugin manager. You must clone the plugins' repositories yourself to a specific location, and Pathogen makes sure they are available in Vim.- In the terminal,
git clone https://github.com/Mr-peipei/vsfiler.vim.git ~/.vim/bundle/vsfiler.vim
- In your
vimrc
,call pathogen#infect() syntax on filetype plugin indent on
- Restart Vim, and run
:helptags ~/.vim/bundle/vsfiler.vim/doc/
or:Helptags
.
Vundle
- Install Vundle, according to its instructions.
- Add the following text to your
vimrc
.call vundle#begin() Plugin 'Mr-peipei/vsfiler.vim' call vundle#end()
- Restart Vim, and run the
:PluginInstall
statement to install your plugins.
Vim-Plug
- Install Vim-Plug, according to its instructions.
- Add the following text to your
vimrc
.
call plug#begin()
Plug 'Mr-peipei/vsfiler.vim'
call plug#end()
- Restart Vim, and run the
:PlugInstall
statement to install your plugins.
Dein
- Install Dein, according to its instructions.
- Add the following text to your
vimrc
.call dein#begin() call dein#add('Mr-peipei/vsfiler.vim') call dein#end()
- Restart Vim, and run the
:call dein#install()
statement to install your plugins.
Vim 8+ packages
If you are using Vim version 8 or higher you can use its built-in package management; see :help packages
for more information. Just run these commands in your terminal:
git clone https://github.com/Mr-peipei/vsfiler.vim.git ~/.vim/pack/vendor/start/vsfiler.vim
vim -u NONE -c "helptags ~/.vim/pack/vendor/start/vsfiler.vim/doc" -c q
Keymapping is so simple.
Below is the default keymappings.
nnoremap <silent><C-m> :<c-u>call vsfiler#initv()<cr>
if !hasmapto('<plug>(vsfiler-open)')
nmap <buffer> l <plug>(vsfiler-open)
nmap <buffer> h <plug>(vsfiler-up)
nmap <buffer> K <plug>(vsfiler-newdir)
nmap <buffer> N <plug>(vsfiler-newfile)
nmap <buffer> D <plug>(vsfiler-deletedir)
nmap <buffer> <C-m> <plug>(vsfiler-close)
endif
This vim plugin is inspire by mattn/vim-molder and lambdalisue/fern.vim
Thank you for yours oss contribution.