Last active
August 1, 2020 14:28
-
-
Save mattjmorrison/6c2fff20f969237fb9fa to your computer and use it in GitHub Desktop.
Vimfiler Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
if !1 | finish | endif | |
if has('vim_starting') | |
set nocompatible " Be iMproved | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
let neobundle_readme=expand($HOME.'/.vim/bundle/neobundle.vim/README.md') | |
if !filereadable(neobundle_readme) | |
silent !curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh | sh | |
endif | |
call neobundle#begin(expand('~/.vim/bundle/')) | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
NeoBundle 'Shougo/vimproc', {'build': {'mac': 'make -f make_mac.mak', 'unix': 'make -f make_unix.mak'}} " Vimproc to asynchronously run commands (NeoBundle, Unite) | |
NeoBundle 'Shougo/unite.vim' | |
NeoBundle 'Shougo/vimfiler.vim' | |
call neobundle#end() | |
let mapleader=" " | |
let g:vimfiler_as_default_explorer = 1 | |
let g:vimfiler_safe_mode_by_default = 0 | |
let g:vimfiler_tree_leaf_icon = " " | |
let g:vimfiler_tree_opened_icon = '▾' | |
let g:vimfiler_tree_closed_icon = '▸' | |
let g:vimfiler_file_icon = '-' | |
let g:vimfiler_marked_file_icon = '✓' | |
let g:vimfiler_readonly_file_icon = '✗' | |
let g:vimfiler_time_format = '%m-%d-%y %H:%M:%S' | |
let g:vimfiler_expand_jump_to_first_child = 0 | |
let g:vimfiler_ignore_pattern = '\.git\|\.DS_Store\|\.pyc' | |
nnoremap <Leader>d :<C-u>VimFilerExplorer -split -simple -parent -winwidth=35 -toggle -no-quit<CR> | |
nnoremap <Leader>jf :<C-u>VimFilerExplorer -split -simple -parent -winwidth=35 -no-quit -find<CR> | |
autocmd FileType vimfiler nunmap <buffer> x | |
autocmd FileType vimfiler nmap <buffer> x <Plug>(vimfiler_toggle_mark_current_line) | |
autocmd FileType vimfiler vmap <buffer> x <Plug>(vimfiler_toggle_mark_selected_lines) | |
autocmd FileType vimfiler nunmap <buffer> l | |
autocmd FileType vimfiler nmap <buffer> l <Plug>(vimfiler_cd_or_edit) | |
autocmd FileType vimfiler nmap <buffer> h <Plug>(vimfiler_switch_to_parent_directory) | |
autocmd FileType vimfiler nmap <buffer> <C-R> <Plug>(vimfiler_redraw_screen) | |
autocmd FileType vimfiler nmap <silent><buffer><expr> <CR> vimfiler#smart_cursor_map( | |
\ "\<Plug>(vimfiler_expand_tree)", | |
\ "\<Plug>(vimfiler_edit_file)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment