forked from Shougo/vimfiler.vim
/
vimfiler.txt
1421 lines (1089 loc) · 39 KB
/
vimfiler.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
*vimfiler.txt* Powerful file explorer implemented by Vim script
Version: 3.1
Author : Shougo <Shougo.Matsu@gmail.com>
License: MIT license {{{
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
}}}
CONTENTS *vimfiler-contents*
Introduction |vimfiler-introduction|
Interface |vimfiler-interface|
Commands |vimfiler-commands|
Functions |vimfiler-functions|
Variables |vimfiler-variables|
Sources variables |vimfiler-sources-variables|
Key mappings |vimfiler-key-mappings|
Examples |vimfiler-examples|
Unite sources |vimfiler-unite-sources|
Changelog |vimfiler-changelog|
==============================================================================
INTRODUCTION *vimfiler-introduction*
*vimfiler* is a powerful file explorer(filer) written by Vim script.
==============================================================================
USAGE *vimfiler-usage*
To run vimfiler, execute this command.
>
:VimFiler
<
If you set |g:vimfiler_as_default_explorer| to 1, vimfiler behaves
as default explorer like |netrw|.
>
:let g:vimfiler_as_default_explorer = 1
<
vimfiler needs |unite|
http://github.com/Shougo/unite.vim
Please install unite.vim Ver.3.0(or later) before use vimfiler.
==============================================================================
INTERFACE *vimfiler-interface*
------------------------------------------------------------------------------
COMMANDS *vimfiler-commands*
:VimFiler [{options}...] [{path}] *:VimFiler*
Run vimfiler. This command reuses a buffer if a vimfiler
buffer already exists. If you ommit {path}, vimfiler opens current
directory. {path} is same as |:Unite|. But you ommit source
name, "file" source will be used.
Examples:
"foo": the parameters of source file are
["foo"].
"file_rec:foo": the parameters of source file are
["foo"].
>
" File explorer like behavior.
:VimFiler -buffer-name=explorer -split -simple -winwidth=35 -toggle
<
*vimfiler-options*
{options} are options for a vimfiler buffer. You may give the
following parameters for a option; you must escape with \ when
it contains spaces.
*vimfiler-options-buffer-name*
-buffer-name={buffer-name}
Specifies a buffer name.
The default buffer name is 'default'.
Note: Buffer name must not contain spaces.
*vimfiler-options-no-quit*
-no-quit
Doesn't close the vimfiler buffer after firing an action.
*vimfiler-options-winwidth*
-winwidth={window-width}
Specifies the width of a vimfiler buffer.
*vimfiler-options-winminwidth*
-winminwidth={window-width}
Specifies the minimum width of a vimfiler buffer.
*vimfiler-options-direction*
-direction={direction}
Defines split position rule. The default value is same to
|g:vimfiler_split_rule|.
*unite-options-toggle*
-toggle
Close vimfiler buffer window if this vimfiler buffer name
window is exists.
*unite-options-simple*
-simple
Enable vimfiler simple mode.
*unite-options-double*
-double
Open vimfiler buffers in double mode.
*vimfiler-options-create*
-create
Create new vimfiler buffer.
:VimFilerCreate [{options}...] [{path}] *:VimFilerCreate*
Equivalent to |:VimFiler| except that it creates a new vimfiler
buffer.
:VimFilerSimple [{options}...] [{path}] *:VimFilerSimple*
Equivalent to |:VimFiler| except that it creates a simple vimfiler
buffer.
:VimFilerSplit [{options}...] [{path}] *:VimFilerSplit*
Equivalent to |:VimFiler| except that it creates a vimfiler buffer
and split the window.
:VimFilerTab [{options}...] [{path}] *:VimFilerTab*
Equivalent to |:VimFiler| except that it creates a vimfiler buffer
and create a tab.
:VimFilerDouble [{options}...] [{path}] *:VimFilerDouble*
Equivalent to |:VimFiler| except that it creates double vimfiler
buffers.
:VimFilerCurrentDir [{options}...] [{path}] *:VimFilerCurrentDir*
Equivalent to |:VimFiler| except that it starts with current
directory.
:VimFilerBufferDir [{options}...] [{path}] *:VimFilerBufferDir*
Equivalent to |:VimFiler| except that it starts with current
buffer directory.
:VimFilerClose {buffer-name} *:VimFilerClose*
Close vimfiler buffer named {buffer-name}.
------------------------------------------------------------------------------
FUNCTIONS *vimfiler-functions*
vimfiler#do_action({action-name}) *vimfiler#do_action()*
Execute {action-name} action for the marked candidates.
This causes a runtime error if {action-name} doesn't exist or
the action is invalid.
This is handy for defining a key mapping to run an action by
yourself.
This runs the default action when you specify "default" on
{action-name}.
This runs an action on the candidates of the current line or
the top of the candidates when none of the candidates are marked.
This is usually used as nnoremap <silent><buffer><expr>.
For example,
>
nnoremap <silent><buffer><expr> v vimfiler#do_action('vsplit')
>
vimfiler#smart_cursor_map({directory-map}, {file-map})
*vimfiler#smart_cursor_map()*
Returns the key sequence with respect to the given
directory-map and file-map. This will be used with
nmap <buffer><expr> usually.
Example:
>
nmap <buffer><expr> e vimfiler#smart_cursor_map(
\ "\<Plug>(vimfiler_cd_file)",
\ "\<Plug>(vimfiler_edit_file)")
------------------------------------------------------------------------------
VARIABLES *vimfiler-variables*
g:vimfiler_as_default_explorer *g:vimfiler_as_default_explorer*
If this variable is true, Vim use vimfiler as file manager
instead of |netrw|. Note: This variable disables |netrw|
explorer function.
Default value is 0.
g:vimfiler_execute_file_list *g:vimfiler_execute_file_list*
This variable controls vimfiler execute.
The key is extension. The value is command name or
command name list. If value is "vim", edit file.
g:vimfiler_extensions *g:vimfiler_extensions*
This variable controls vimfiler color syntax.
The key is "text", "image", "archive", "system", "multimedia".
The value is extensions.
Default value is complicated, please refer to
autoload/vimfiler.vim.
g:vimfiler_split_action *g:vimfiler_split_action*
This variable controls vimfiler split action in |unite|.
Default value is "right".
g:vimfiler_edit_action *g:vimfiler_edit_action*
This variable controls vimfiler edit action in |unite|.
Default value is "open".
g:vimfiler_preview_action *g:vimfiler_preview_action*
This variable controls vimfiler preview action in |unite|.
Default value is "preview".
g:vimfiler_min_filename_width *g:vimfiler_min_filename_width*
This variable controls vimfiler displays min filename width.
Default value is 30.
g:vimfiler_max_filename_width *g:vimfiler_max_filename_width*
This variable controls vimfiler displays max filename width.
Default value is 80.
g:vimfiler_sort_type *g:vimfiler_sort_type*
This variable controls default vimfiler sort type.
Default value is "filename".
g:vimfiler_directory_display_top *g:vimfiler_directory_display_top*
This variable controls vimfiler sorts directories as top.
Default value is 1.
g:vimfiler_split_rule *g:vimfiler_split_rule*
Defines split position rule.
Default value is "topleft".
g:vimfiler_detect_drives *g:vimfiler_detect_drives*
This variable controls vimfiler uses drives
when |<Plug>(vimfiler_switch_to_drive)|.
Default value is refer to plugin/vimfiler.vim.
g:vimfiler_safe_mode_by_default *g:vimfiler_safe_mode_by_default*
This variable controls vimfiler enter safe mode by default. In
safe mode, dangerous command is disabled.
Default value is 1.
g:vimfiler_time_format *g:vimfiler_time_format*
This variable controls displayed time format.
The time format option is compatible |strftime()|.
Default value is "%y/%m/%d %H:%M".
g:vimfiler_max_directories_history *g:vimfiler_max_directories_history*
This variable controls max directories history.
Default value is 50.
g:vimfiler_tree_leaf_icon *g:vimfiler_tree_leaf_icon*
This variable controls vimfiler tree leaf icon.
Default value is "|"
g:vimfiler_tree_opened_icon *g:vimfiler_tree_opened_icon*
This variable controls vimfiler opened directory tree icon.
Default value is "-"
g:vimfiler_tree_closed_icon *g:vimfiler_tree_closed_icon*
This variable controls vimfiler closed directory tree icon.
Default value is "+"
g:vimfiler_file_icon *g:vimfiler_file_icon*
This variable controls vimfiler file icon.
Default value is "-"
g:vimfiler_marked_file_icon *g:vimfiler_marked_file_icon*
This variable controls vimfiler marked file icon.
Default value is "*"
g:vimfiler_data_directory *g:vimfiler_data_directory*
Specifies directories for configurations internally used in
vimfiler itself or its sources. If the directory doesn't exist
the directory will be automatically generated.
Default value is expand('~/.vimfiler'); the absolute path of it.
SOURCES VARIABLES *vimfiler-sources-variables*
g:unite_kind_file_delete_file_command *g:unite_kind_file_delete_file_command*
g:unite_kind_file_delete_directory_command *g:unite_kind_file_delete_directory_command*
This variable controls vimfiler (and kind file) use delete
command.
This variable substitute special arguments:
$srcs : src files
$dest : destination directory
Default value is refer to autoload/unite/kinds/file.vim.
g:unite_kind_file_copy_file_command *g:unite_kind_file_copy_file_command*
This variable controls vimfiler (and kind file) use copy
files command.
If variable is empty, this system can't support copy file.
This variable substitute special arguments:
$srcs : src files
$dest : destination directory
Default value is refer to autoload/unite/kinds/file.vim.
g:unite_kind_file_copy_directory_command *g:unite_kind_file_copy_directory_command*
This variable controls vimfiler (and kind file) use copy
directories command.
If variable is empty, this system can't support copy directories.
This variable substitute special arguments:
$srcs : src files
$dest : destination directory
Default value is refer to autoload/unite/kinds/file.vim.
g:unite_kind_file_switch_command *g:unite_kind_file_switch_command*
This variable controls vimfiler (and kind file) use switch
files command.
This variable substitute special arguments:
$srcs : src files
$dest : destination directory
Default value is refer to autoload/unite/kinds/file.vim.
g:unite_kind_file_use_trashbox *g:unite_kind_file_use_trashbox*
This variable controls vimfiler (and kind file) use trashbox
when delete files.
Note: This option is works newest vimproc and in Windows only.
------------------------------------------------------------------------------
KEY MAPPINGS *vimfiler-key-mappings*
Normal mode key mappings.
<Plug>(vimfiler_switch_to_other_window) *<Plug>(vimfiler_switch_to_other_window)*
Switch to other vimfiler window.
<Plug>(vimfiler_loop_cursor_down) *<Plug>(vimfiler_loop_cursor_down)*
Switch to next line with loop.
<Plug>(vimfiler_loop_cursor_up) *<Plug>(vimfiler_loop_cursor_up)*
Switch to previous line with loop.
<Plug>(vimfiler_cursor_top) *<Plug>(vimfiler_cursor_top)*
Moves the cursor to the top of the vimfiler.
<Plug>(vimfiler_redraw_screen) *<Plug>(vimfiler_redraw_screen)*
Redraw vimfiler screen.
<Plug>(vimfiler_toggle_mark_current_line) *<Plug>(vimfiler_toggle_mark_current_line)*
Toggle mark in cursor line and move down.
<Plug>(vimfiler_toggle_mark_current_line_up) *<Plug>(vimfiler_toggle_mark_current_line_up)*
Toggle mark in cursor line and move up.
<Plug>(vimfiler_toggle_mark_all_lines) *<Plug>(vimfiler_toggle_mark_all_lines)*
Toggle marks in all lines.
<Plug>(vimfiler_clear_mark_all_lines) *<Plug>(vimfiler_clear_mark_all_lines)*
Clear marks in all lines.
<Plug>(vimfiler_copy_file) *<Plug>(vimfiler_copy_file)*
Copy marked files to destination directory. If exists another
vimfiler buffer, destination directory is another vimfiler
directory.
If no marked files, mark current file.
<Plug>(vimfiler_move_file) *<Plug>(vimfiler_move_file)*
Move marked files to destination directory. If exists another
vimfiler buffer, destination directory is another vimfiler
directory.
If no marked files, mark current file.
This mappings is disabled in vimfiler safe mode.
<Plug>(vimfiler_delete_file) *<Plug>(vimfiler_delete_file)*
Delete marked files completely.
If no marked files, mark current file.
This mappings is disabled in vimfiler safe mode.
<Plug>(vimfiler_make_directory) *<Plug>(vimfiler_make_directory)*
Create new directory. If directory tree is opened, create new
directory in directory tree.
This mappings is disabled in vimfiler safe mode.
<Plug>(vimfiler_new_file) *<Plug>(vimfiler_new_file)*
Create new files. If directory tree is opened, create new
files in directory tree.
This mappings is disabled in vimfiler safe mode.
<Plug>(vimfiler_rename_file) *<Plug>(vimfiler_rename_file)*
Rename cursor file or selected files.
If selected files, vimfiler will open exrename buffer.
In exrename buffer, you can rename with Vim features like
|renamer.vim|.
http://www.vim.org/scripts/script.php?script_id=1721
This mappings is disabled in vimfiler safe mode.
<Plug>(vimfiler_execute) *<Plug>(vimfiler_execute)*
Execute cursor file with |g:vimfiler_execute_file_list| command.
If cursor file is directory, change directory.
<Plug>(vimfiler_execute_system_associated) *<Plug>(vimfiler_execute_system_associated)*
<Plug>(vimfiler_execute_file) *<Plug>(vimfiler_execute_file)*
Execute cursor file by system associated command.
Note: <Plug>(vimfiler_execute_file) is obsolute name.
<Plug>(vimfiler_execute_vimfiler_associated) *<Plug>(vimfiler_execute_vimfiler_associated)*
Execute cursor file by vimfiler associated command.
Refer to |g:vimfiler_execute_file_list|.
<Plug>(vimfiler_switch_to_parent_directory) *<Plug>(vimfiler_switch_to_parent_directory)*
Switch to parent directory.
<Plug>(vimfiler_switch_to_drive) *<Plug>(vimfiler_switch_to_drive)*
Switch to other drive(Windows) or mount point(Mac/Linux) by
|unite| interface.
<Plug>(vimfiler_switch_to_home_directory) *<Plug>(vimfiler_switch_to_home_directory)*
Switch to home directory.
<Plug>(vimfiler_switch_to_root_directory) *<Plug>(vimfiler_switch_to_root_directory)*
Switch to root directory.
<Plug>(vimfiler_switch_to_history_directory) *<Plug>(vimfiler_switch_to_history_directory)*
Switch to history directory by |unite| interface.
<Plug>(vimfiler_toggle_visible_dot_files) *<Plug>(vimfiler_toggle_visible_dot_files)*
Toggle visible dot files.
<Plug>(vimfiler_popup_shell) *<Plug>(vimfiler_popup_shell)*
Execute |:VimShellPop|or |:shell|.
<Plug>(vimfiler_edit_file) *<Plug>(vimfiler_edit_file)*
Edit cursor file. This mapping use |g:vimfiler_edit_action|.
<Plug>(vimfiler_split_edit_file) *<Plug>(vimfiler_split_edit_file)*
Split buffer and edit cursor file. This mapping use
|g:vimfiler_edit_action|.
<Plug>(vimfiler_edit_binary_file) *<Plug>(vimfiler_edit_binary_file)*
Edit binary file by |vinarise|.
<Plug>(vimfiler_execute_external_filer) *<Plug>(vimfiler_execute_external_filer)*
Open current directory by external filer(Explorer, Nautilus,
...).
<Plug>(vimfiler_execute_shell_command) *<Plug>(vimfiler_execute_shell_command)*
Execute shell command by |vimproc#system()| or |system()|.
If the argument is "?", substitute one file.
If the argument is "*", substitute the selected files.
Otherwise, append one file to the last argument.
Example:
You selected files "foo", "bar", "baz".
(Input) "echo"
(Command) "echo foo; echo bar; echo baz"
(Input) "echo ? hoge"
(Command) "echo foo hoge; echo bar hoge; echo baz hoge"
(Input) "echo *"
(Command) "echo foo bar baz"
<Plug>(vimfiler_hide) *<Plug>(vimfiler_hide)*
Hide current vimfiler.
<Plug>(vimfiler_exit) *<Plug>(vimfiler_exit)*
Exit current vimfiler.
<Plug>(vimfiler_help) *<Plug>(vimfiler_help)*
Mappings help by |unite| interface.
<Plug>(vimfiler_preview_file) *<Plug>(vimfiler_preview_file)*
Preview current file. This mapping use
|g:vimfiler_preview_action|.
<Plug>(vimfiler_sync_with_current_vimfiler) *<Plug>(vimfiler_sync_with_current_vimfiler)*
Synchronize another vimfiler current directory with current
vimfiler.
<Plug>(vimfiler_sync_with_another_vimfiler) *<Plug>(vimfiler_sync_with_another_vimfiler)*
Synchronize current directory with another vimfiler.
<Plug>(vimfiler_open_file_in_another_vimfiler) *<Plug>(vimfiler_open_file_in_another_vimfiler)*
Open cursor file or marked files in another vimfile. If the
file is directory, change directory in another vimfiler.
<Plug>(vimfiler_print_filename) *<Plug>(vimfiler_print_filename)*
Print whole filename in echo area.
<Plug>(vimfiler_yank_full_path) *<Plug>(vimfiler_yank_full_path)*
Yank full path to clipboard register and unnamed register.
<Plug>(vimfiler_set_current_mask) *<Plug>(vimfiler_set_current_mask)*
Set current file mask by |unite| interface.
<Plug>(vimfiler_grep) *<Plug>(vimfiler_grep)*
Grep word in selected files or all current files by |unite|
interface.
<Plug>(vimfiler_find) *<Plug>(vimfiler_find)*
Find from current directory by |unite| interface. Command line
format is refer to find command.
Note: Windows "find" command is not supported.
Please install UNIX Tools find for Windows.
<Plug>(vimfiler_select_sort_type) *<Plug>(vimfiler_select_sort_type)*
Select current vimfiler sort type by |unite| interface.
If you selected "save", save current sort type.
If you selected "nosave", no save current sort type.
<Plug>(vimfiler_switch_vim_buffer_mode) *<Plug>(vimfiler_switch_vim_buffer_mode)*
Switch to vimfiler buffer mode. All vimfiler mappings is
disabled. If press <ESC>, settings will be restored.
<Plug>(vimfiler_cd_vim_current_dir) *<Plug>(vimfiler_cd_vim_current_dir)*
<Plug>(vimfiler_cd) *<Plug>(vimfiler_cd)*
Change system current directory to vimfiler current directory.
Note: |<Plug>(vimfiler_cd)| is obsolute name.
<Plug>(vimfiler_cd_file) *<Plug>(vimfiler_cd_file)*
Change vimfiler current directory.
<Plug>(vimfiler_choose_action) *<Plug>(vimfiler_choose_action)*
Choose |unite| action in selected files.
<Plug>(vimfiler_smart_h) *<Plug>(vimfiler_smart_h)*
Switch to parent directory or normal! "h".
<Plug>(vimfiler_smart_l) *<Plug>(vimfiler_smart_l)*
Execute cursor file or normal! "l".
<Plug>(vimfiler_toggle_safe_mode) *<Plug>(vimfiler_toggle_safe_mode)*
Toggle safe mode. In safe mode, dangerous command is disabled.
<Plug>(vimfiler_toggle_simple_mode) *<Plug>(vimfiler_toggle_simple_mode)*
Toggle simple mode. In simple mode, dispayed information is simple.
<Plug>(vimfiler_pushd) *<Plug>(vimfiler_pushd)*
Push current directory(and another vimfiler current directory)
to directory stack.
<Plug>(vimfiler_popd) *<Plug>(vimfiler_popd)*
Pop current directory(and another vimfiler current directory)
from directory stack.
<Plug>(vimfiler_expand_tree) *<Plug>(vimfiler_expand_tree)*
Expand/Unexpand directory tree.
<Plug>(vimfiler_expand_tree_recursive) *<Plug>(vimfiler_expand_tree_recursive)*
Expand/Close directory tree.
Visual mode key mappings.
<Plug>(vimfiler_toggle_mark_selected_lines) *<Plug>(vimfiler_toggle_selected_lines)*
Toggle marks in selected lines.
*g:vimfiler_default_key_mappings*
Following keymappings are default keymappings.
Normal mode default mappings.
{lhs} {rhs}
-------- -----------------------------
<TAB> <Plug>(vimfiler_switch_to_other_window)
j <Plug>(vimfiler_loop_cursor_down)
k <Plug>(vimfiler_loop_cursor_up)
gg <Plug>(vimfiler_cursor_top)
<C-l> <Plug>(vimfiler_redraw_screen)
<Space> <Plug>(vimfiler_toggle_mark_current_line)
<S-Space> <Plug>(vimfiler_toggle_mark_current_line_up)
* <Plug>(vimfiler_toggle_mark_all_lines)
U <Plug>(vimfiler_clear_mark_all_lines)
c <Plug>(vimfiler_copy_file)
m <Plug>(vimfiler_move_file)
d <Plug>(vimfiler_delete_file)
r <Plug>(vimfiler_rename_file)
K <Plug>(vimfiler_make_directory)
N <Plug>(vimfiler_new_file)
<Enter> <Plug>(vimfiler_execute)
l <Plug>(vimfiler_smart_l)
x <Plug>(vimfiler_execute_system_associated)
<2-LeftMouse> <Plug>(vimfiler_execute_system_associated)
h <Plug>(vimfiler_smart_h)
L <Plug>(vimfiler_switch_to_drive)
~ <Plug>(vimfiler_switch_to_home_directory)
\ <Plug>(vimfiler_switch_to_root_directory)
<C-j> <Plug>(vimfiler_switch_to_history_directory)
. <Plug>(vimfiler_toggle_visible_dot_files)
H <Plug>(vimfiler_popup_shell)
e <Plug>(vimfiler_edit_file)
E <Plug>(vimfiler_split_edit_file)
B <Plug>(vimfiler_edit_binary_file)
ge <Plug>(vimfiler_execute_external_filer)
<RightMouse> <Plug>(vimfiler_execute_external_filer)
! <Plug>(vimfiler_execute_shell_command)
q <Plug>(vimfiler_hide)
Q <Plug>(vimfiler_exit)
? <Plug>(vimfiler_help)
v <Plug>(vimfiler_preview_file)
o <Plug>(vimfiler_sync_with_current_vimfiler)
O <Plug>(vimfiler_open_file_in_another_vimfiler)
<C-g> <Plug>(vimfiler_print_filename)
yy <Plug>(vimfiler_yank_full_path)
M <Plug>(vimfiler_set_current_mask)
gr <Plug>(vimfiler_grep)
gf <Plug>(vimfiler_find)
S <Plug>(vimfiler_select_sort_type)
<C-v> <Plug>(vimfiler_switch_vim_buffer_mode)
gc <Plug>(vimfiler_cd_vim_current_dir)
gs <Plug>(vimfiler_toggle_safe_mode)
gS <Plug>(vimfiler_toggle_simple_mode)
a <Plug>(vimfiler_choose_action)
Y <Plug>(vimfiler_pushd)
P <Plug>(vimfiler_popd)
t <Plug>(vimfiler_expand_tree)
T <Plug>(vimfiler_expand_tree_recursive)
Visual mode mappings.
{lhs} {rhs}
-------- -----------------------------
<Space> <Plug>(vimfiler_toggle_mark_selected_lines)
==============================================================================
EXAMPLES *vimfiler-examples*
>
call vimfiler#set_execute_file('vim', 'vim')
call vimfiler#set_execute_file('txt', 'notepad')
" Edit file by tabedit.
"let g:vimfiler_edit_action = 'tabopen'
let g:vimfiler_as_default_explorer = 1
" Enable file operation commands.
"let g:vimfiler_safe_mode_by_default = 0
" Like Textmate icons.
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 = '*'
" Use trashbox.
" Windows only and require latest vimproc.
"let g:unite_kind_file_use_trashbox = 1
<
==============================================================================
UNITE SOURCES *vimfiler-unite-sources*
Here let me explain about a source for |unite| provided in vimfiler.
*vimfiler-unite-source-vimfiler-history*
vimfiler/history
Candidates of vimfiler history.
*vimfiler-unite-source-vimfiler-drive*
vimfiler/drive
Candidates of vimfiler drives.
*vimfiler-unite-source-vimfiler-sort*
vimfiler/sort
Candidates of vimfiler sort method.
*vimfiler-unite-source-vimfiler-mask*
vimfiler/mask
Change current vimfiler file mask.
*vimfiler-unite-source-vimfiler-mapping*
vimfiler/mapping
Candidates of vimfiler mappings.
*vimfiler-unite-source-vimfiler-execute*
vimfiler/execute
Candidates from |g:vimfiler_execute_file_list|.
*vimfiler-unite-source-vimfiler-popd*
vimfiler/popd
Candidates from vimfiler directory stack.
Actions of source original.
vimfiler/history *vimfiler-unite-action-vimfiler-history*
delete Delete history
vimfiler/sort *vimfiler-unite-action-vimfiler-sort*
sort Set sort type
vimfiler/mask *vimfiler-unite-action-vimfiler-mask*
change Change vimfiler mask
vimfiler/popd *vimfiler-unite-action-vimfiler-popd*
delete Delete directory from directory stack
==============================================================================
CHANGELOG *vimfiler-changelog*
2012-01-14
- Setlocal wrap(experimental).
2012-01-06
- Fixed write action.
- Fixed vimfiler switch.
2012-01-05
- Fixed -toggle option.
2012-01-01
- Added g:unite_kind_file_use_trashbox option.
2011-12-30
- Fixed documentation.
- Added <Plug>(vimfiler_yank_full_path) mapping.
- Added <Plug>(vimfiler_open_file_in_another_vimfiler) mapping.
- Improved redraw tree.
- Fixed restore cursor bug.
- Improved cursor position.
- Improved redraw behavior.
2011-12-29
- Improved make directory and new file actions.
- Fixed buflisted problem.
- Improved vimfiler#get_marked_files() behavior.
2011-12-27
- Changed g:vimfiler_split_action default value.
- Improved hide behavior.
- Improved redraw behavior.
- Added icon options.
- set winfixwidth.
2011-12-26
- Fixed exrename syntax error.
- Improved hide behavior.
- Added VimFilerBufferDir command.
- Fixed for :VimFilerDouble error.
2011-12-25
- Improved <Plug>(vimfiler_split_edit_file) behavior.
2011-12-24
- Split automatically.
- Improved <Plug>(vimfiler_split_edit_file) behavior.
- Fixed winwidth problem.
- Improved redraw.
2011-12-19
- Added -winminwidth option.
2011-12-18
- Improved for conceal.
2011-12-17
- Fixed cd bug in Windows.
- Fixed toggle vimfiler bug.
- Improved redraw screen.
2011-12-16
- Added VimFilerCurrentDir command.
- Fixed completion error.
- Improved display.
- Fixed cd behavior.
2011-12-15
- Fixed cd error.
- Improved parse path.
2011-12-14
- Improved datemark.
- Improved winwidth.
- Changed vimfiler interface.
2011-12-13
- Improved execute shellcmd behavior.
- Improved cd.
2011-12-12
- Improved <Plug>(vimfiler_execute_shell_command) documentation.
2011-12-08
- Added <Plug>(vimfiler_toggle_mark_current_line_up) mapping.
- Added some mappings.
- Added vimfiler#smart_cursor_map().
- Added :VimFilerClose command.
2011-12-06
- Improved create filer behavior.
2011-12-03
- Improved redraw candidates.
- Improved vimfiler/execute source.
2011-12-01
- Fixed for UNC path.
- Fixed UNC root directory.
2011-11-30
- Added <2-LeftMouse> mapping.
- Added <RightMouse> mapping.
- Improved options.
- Implemented buffer_name option.
2011-11-29
- Fixed vimfiler#set_current_vimfiler() problem.
2011-11-28
- Fixed for UNC path.
- Implemented no quit option.
- Refactored.
- Fixed toggle mark lines error.
2011-11-25
- Detect modified buffer.
- Improved substitute path separator.
2011-11-18
- Improved redraw.
- Expand tree is implemented!
- Added expand tree recursive mapping.
- Fixed clear mark lines error.
2011-11-17
- Ver.3.1 development is started.
- Improved syntax.
------------------------------------------------------------------------------
ChangeLog 3.0
2011-11-17
- Fixed dummy action error.
2011-11-16
- Fixed documentation.
- Improved dummy action.
- Fixed grep behavior.
- Improved vimfiler history behavior.
- Added <Plug>(vimfiler_hide) mapping.
- Changed default mappings.
- Improved another vimfiler behavior.
2011-11-15
- Fixed initialization.
2011-11-11
- Improved syntax highlight.
- Added <Plug>(vimfiler_find) mapping.
- Vitalized.
- Changed sort behavior.
- Added g:vimfiler_data_directory option.
- Implemented save sort type.
2011-11-10
- Fixed :VimFilerDouble error.
- Fixed vimfiler/drive source.
- Added <Plug>(vimfiler_cursor_top) mapping.
- Improved switch to other window.
2011-11-06
- Fixed mappings name.
2011-11-05
- Improved restore another vimfiler behavior.
2011-11-02
- Improved vimfiler/mapping source.
- Improved redraw behavior.
- Deleted vimfiler/mapping source.
- Added <Plug>(vimfiler_toggle_simple_mode) mapping.
- Fixed change current directory.
- Improved <Plug>(vimfiler_print_filename) mapping.
2011-10-31
- Added vimfiler#do_action().
2011-10-25
- Fixed s:browse_check().
2011-10-23
- Improved check link.
- Fixed for ":edit ~".
2011-10-17
- Improved vimfiler mappings source.
2011-10-13
- Detect sudo vim.
2011-10-11
- Fixed for Vim 7.2.
2011-10-10
- Fixed variables initialize.
- Delted obsolute options.
- Improved vimfiler/drive source.
2011-10-05
- Added vimfiler/popd source.
- Improved execute file.
2011-09-27
- Set bufhidden.
- Improved syntax.
2011-09-24
- Added README.
2011-09-23
- Improved documentation.
- Changed <Plug>(vimfiler_cd) behavior.
2011-09-22
- Revised documentation.
- Added vimfiler/drive source.
2011-09-21
- Added vimfiler#mappings#search_cursor() function.
- Fixed vimfiler mappings.
2011-09-19
- Refactored local variable names.
2011-09-17
- Implemented context.
2011-09-15
- Fixed for netrw.
2011-09-04
- Fixed vimfiler create.
- Improved buffer name.
2011-09-03
- Improved cd.
- Improved expand directory.
2011-09-01
- Improved initialize vimfiler buffer.
2011-08-31
- Fixed new file action.
2011-08-29
- Fixed vimfiler buffer search.
- Fixed preview error.
- Fixed wrapper commands exists error.
2011-08-26
- Implemented event handler.
- Improved redraw screen.
- Improved event handler.
- Implemented completion interface.
- Parse cd path.
- Fixed grep error.
2011-08-25
- Improved vimfiler file interface.
- Fixed browse check.
- Improved behavior.
2011-08-24
- Improved vimfiler actions.
- Deleted g:vimfiler_cd_command option.
- Deleted mappings_caller().
- Improved exrename.
2011-08-23
- Improved switch vimfiler behavior.
- Fixed browser check.
- Fixed restore another vimfiler.
- Improved cd.
2011-08-17