File data/vifmrc changed (mode: 100644) (index fee88b7c2..af6fb5f0e) |
1 |
1 |
" vim: filetype=vifm : |
" vim: filetype=vifm : |
|
2 |
|
" Sample configuration file for vifm (last updated: 2 Jun, 2012) |
2 |
3 |
" You can edit this file by hand. |
" You can edit this file by hand. |
3 |
4 |
" The " character at the beginning of a line comments out the line. |
" The " character at the beginning of a line comments out the line. |
4 |
5 |
" Blank lines are ignored. |
" Blank lines are ignored. |
|
... |
... |
set trash |
23 |
24 |
|
|
24 |
25 |
" This is how many directories to store in the directory history. |
" This is how many directories to store in the directory history. |
25 |
26 |
|
|
26 |
|
set history=15 |
|
|
27 |
|
set history=100 |
27 |
28 |
|
|
28 |
29 |
" Follow links on l or Enter. |
" Follow links on l or Enter. |
29 |
30 |
|
|
|
... |
... |
set norunexec |
54 |
55 |
|
|
55 |
56 |
" Use KiB, MiB, ... instead of KB, MB, ... |
" Use KiB, MiB, ... instead of KB, MB, ... |
56 |
57 |
|
|
57 |
|
set iec |
|
|
58 |
|
set noiec |
58 |
59 |
|
|
59 |
60 |
" Selected color scheme |
" Selected color scheme |
60 |
61 |
|
|
|
... |
... |
set fusehome=/tmp/vifm_FUSE |
72 |
73 |
|
|
73 |
74 |
set timefmt=%m/%d\ %H:%M |
set timefmt=%m/%d\ %H:%M |
74 |
75 |
|
|
|
76 |
|
" Show list of matches on tab complition in command-line mode |
|
77 |
|
|
|
78 |
|
set wildmenu |
|
79 |
|
|
|
80 |
|
" Ignore case in search patterns unless it contains at least one uppercase |
|
81 |
|
" letter |
|
82 |
|
|
|
83 |
|
set ignorecase |
|
84 |
|
set smartcase |
|
85 |
|
|
|
86 |
|
" Don't highlight search results automatically |
|
87 |
|
|
|
88 |
|
set nohlsearch |
|
89 |
|
|
|
90 |
|
" Use increment searching (search while typing) |
|
91 |
|
set incsearch |
|
92 |
|
|
|
93 |
|
" Try to leave some space from cursor to upper/lower border in lists |
|
94 |
|
|
|
95 |
|
set scrolloff=4 |
|
96 |
|
|
|
97 |
|
" Don't do to much requests to slow file systems |
|
98 |
|
|
|
99 |
|
set slowfs=curlftpfs |
|
100 |
|
|
|
101 |
|
" Set custom status line look |
|
102 |
|
|
|
103 |
|
set statusline=" %t%= %A %10u:%-7g %15s %20d " |
|
104 |
|
|
75 |
105 |
" :mark mark /full/directory/path [filename] |
" :mark mark /full/directory/path [filename] |
76 |
106 |
|
|
77 |
107 |
mark b ~/bin/ |
mark b ~/bin/ |
|
108 |
|
mark h ~/ |
78 |
109 |
|
|
79 |
110 |
" :com[mand] command_name action |
" :com[mand] command_name action |
80 |
111 |
" The following macros can be used in a command |
" The following macros can be used in a command |
|
... |
... |
command vgrep vim "+grep %a" |
105 |
136 |
|
|
106 |
137 |
" Pdf |
" Pdf |
107 |
138 |
filetype *.pdf zathura %f,apvlv %f,xpdf %f |
filetype *.pdf zathura %f,apvlv %f,xpdf %f |
|
139 |
|
fileview *.pdf pdftotext -nopgbrk %c - |
|
140 |
|
|
|
141 |
|
" PostScript |
|
142 |
|
filextype *.ps,*.ps.gz gv %c %i & |
108 |
143 |
|
|
109 |
|
" Mp3 |
|
110 |
|
filetype *.mp3 ffplay %f |
|
111 |
|
fileviewer *.mp3 ffprobe -show_format -pretty %f 2> /dev/null |
|
|
144 |
|
" Djvu |
|
145 |
|
filextype *.djvu apvlv %f |
|
146 |
|
|
|
147 |
|
" Audio |
|
148 |
|
filetype *.wav,*.mp3,*.flac,*.ogg,*.m4a |
|
149 |
|
\ {Play using ffplay} |
|
150 |
|
\ ffplay %c, |
|
151 |
|
\ {Play using MPlayer} |
|
152 |
|
\ play_music %f, |
|
153 |
|
fileviewer *.mp3 mp3info |
112 |
154 |
|
|
113 |
155 |
" Video |
" Video |
114 |
|
filetype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv dragon %f |
|
115 |
|
fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv ffprobe -show_format -pretty %f 2> /dev/null |
|
|
156 |
|
filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.vob,*.flv |
|
157 |
|
\ {View using ffplay} |
|
158 |
|
\ ffplay -fs %c, |
|
159 |
|
\ {View using Dragon} |
|
160 |
|
\ dragon %f, |
|
161 |
|
\ {View using mplayer} |
|
162 |
|
\ mplayer %f, |
|
163 |
|
fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.vob |
|
164 |
|
\ ffprobe -show_files -pretty %f 2> /dev/null |
116 |
165 |
|
|
117 |
166 |
" Web |
" Web |
118 |
|
filetype *.html,*.htm links,mozilla |
|
|
167 |
|
filetype *.html,*.htm links,mozilla,uzbl-browser %f %i & |
119 |
168 |
|
|
120 |
169 |
" Object |
" Object |
121 |
170 |
filetype *.o nm %f | less |
filetype *.o nm %f | less |
122 |
171 |
|
|
123 |
172 |
" Image |
" Image |
124 |
|
filetype *.jpg,*.jpeg,*.png,*.gif gpicview %c |
|
125 |
|
|
|
126 |
|
" Md5 |
|
127 |
|
filetype *.md5 md5sum -c %f |
|
|
173 |
|
filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm |
|
174 |
|
\ {View in sxiv} |
|
175 |
|
\ sxiv, |
|
176 |
|
\ {View in gpicview} |
|
177 |
|
\ gpicview %c, |
|
178 |
|
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm convert -identify %f -verbose /dev/null |
|
179 |
|
|
|
180 |
|
" MD5 |
|
181 |
|
filetype *.md5 |
|
182 |
|
\ {Check MD5 hash sum} |
|
183 |
|
\ md5sum -c %f, |
128 |
184 |
|
|
129 |
185 |
" FuseZipMount |
" FuseZipMount |
130 |
|
filetype *.zip,*.jar,*.war,*.ear FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR |
|
|
186 |
|
filetype *.zip,*.jar,*.war,*.ear |
|
187 |
|
\ {Mount with fuse-zip} |
|
188 |
|
\ FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR, |
|
189 |
|
\ {View contents} |
|
190 |
|
\ zip -sf %c | less, |
|
191 |
|
\ tar -xf %c, |
131 |
192 |
fileviewer *.zip,*.jar,*.war,*.ear zip -sf %c |
fileviewer *.zip,*.jar,*.war,*.ear zip -sf %c |
132 |
193 |
|
|
133 |
194 |
" ArchiveMount |
" ArchiveMount |
134 |
|
filetype *.bz2,*.tgz,*.tar.gz FUSE_MOUNT|archivemount %SOURCE_FILE %DESTINATION_DIR |
|
135 |
|
fileviewer *.bz2,*.tgz,*.tar.gz tar -tzf %c |
|
|
195 |
|
filetype *.tar.bz2,*.tbz2,*.tgz,*.tar.gz |
|
196 |
|
\ {Mount with archivemount} |
|
197 |
|
\ FUSE_MOUNT|archivemount %SOURCE_FILE %DESTINATION_DIR, |
|
198 |
|
fileviewer *.tgz,*.tar.gz tar -tzf %c |
|
199 |
|
fileviewer *.tar.bz2,*.tbz2 tar -tjf %c |
136 |
200 |
|
|
137 |
201 |
" Rar2FsMount |
" Rar2FsMount |
138 |
|
filetype *.rar FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR |
|
|
202 |
|
filetype *.rar |
|
203 |
|
\ {Mount with rar2fs} |
|
204 |
|
\ FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR, |
139 |
205 |
|
|
140 |
206 |
" IsoMount |
" IsoMount |
141 |
|
filetype *.iso FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR |
|
|
207 |
|
filetype *.iso |
|
208 |
|
\ {Mount with fuseiso} |
|
209 |
|
\ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR, |
142 |
210 |
|
|
143 |
211 |
" SshMount |
" SshMount |
144 |
|
filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR |
|
|
212 |
|
filetype *.ssh |
|
213 |
|
\ {Mount with sshfs} |
|
214 |
|
\ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR, |
|
215 |
|
|
|
216 |
|
" FtpMount |
|
217 |
|
filetype *.ftp |
|
218 |
|
\ {Mount with curlftpfs} |
|
219 |
|
\ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR, |
|
220 |
|
|
|
221 |
|
" Fuse7z |
|
222 |
|
filetype *.7z |
|
223 |
|
\ {Mount with fuse-7z} |
|
224 |
|
\ FUSE_MOUNT|fuse-7z %SOURCE_FILE %DESTINATION_DIR, |
|
225 |
|
|
|
226 |
|
" Office files |
|
227 |
|
filextype *.doc,*.docx,*.xsl,*.xslx libreoffice %f & |
|
228 |
|
fileview *.docx, docx2txt.pl %f - |
|
229 |
|
|
|
230 |
|
" Qt projects |
|
231 |
|
filextype *.pro qtcreator %f & |
|
232 |
|
|
|
233 |
|
" Directories |
|
234 |
|
filextype */ |
|
235 |
|
\ {View in thunar} |
|
236 |
|
\ Thunar %f &, |
|
237 |
|
fileview */ tree %f |
145 |
238 |
|
|
146 |
239 |
" For automated FUSE mounts, you must register an extension with FILETYPE=.. |
" For automated FUSE mounts, you must register an extension with FILETYPE=.. |
147 |
240 |
" in one of following formats: |
" in one of following formats: |
|
... |
... |
filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR |
165 |
258 |
" Like in previous versions of vifm |
" Like in previous versions of vifm |
166 |
259 |
" set vifminfo=options,filetypes,commands,bookmarks,dhistory,state,cs |
" set vifminfo=options,filetypes,commands,bookmarks,dhistory,state,cs |
167 |
260 |
" Like in vi |
" Like in vi |
168 |
|
set vifminfo=bookmarks |
|
|
261 |
|
set vifminfo=dhistory,savedirs,chistory,state,tui,shistory, |
|
262 |
|
\phistory,dirstack,registers,bookmarks |
169 |
263 |
|
|
170 |
264 |
" Sample mappings |
" Sample mappings |
171 |
265 |
|
|
|
... |
... |
nmap S :sort<cr> |
174 |
268 |
nmap w :view<cr> |
nmap w :view<cr> |
175 |
269 |
nmap o :!gvim --remote-tab-silent %f<cr> |
nmap o :!gvim --remote-tab-silent %f<cr> |
176 |
270 |
nmap O :!gvim %f<cr> |
nmap O :!gvim %f<cr> |
177 |
|
" open file in the background using its default program |
|
|
271 |
|
|
|
272 |
|
" Open file in the background using its default program |
178 |
273 |
nmap gb :file &<cr>l |
nmap gb :file &<cr>l |
179 |
274 |
|
|
|
275 |
|
" Yank current directory path into the clipboard |
|
276 |
|
nmap yd :!echo %d | xclip %i<cr> |
|
277 |
|
|
|
278 |
|
" Yank current file path into the clipboard |
|
279 |
|
nmap yf :!echo %c:p | xclip %i<cr> |
|
280 |
|
|
|
281 |
|
" Mappings for faster renaming |
|
282 |
|
nmap I cw<c-a> |
|
283 |
|
nmap cc cw<c-u> |
|
284 |
|
nmap A cw<c-w> |
|
285 |
|
|
|
286 |
|
" Opening console in current directory |
|
287 |
|
nmap ,t :!xterm &<cr> |
|
288 |
|
|
|
289 |
|
" Opening vim to edit .vifmrc |
|
290 |
|
nmap ,c :execute ':!vim $MYVIFMRC' | restart<cr> |
|
291 |
|
" Opening gvim to edit .vifmrc |
|
292 |
|
nmap ,C :!gvim --remote-tab-silent $MYVIFMRC &<cr> |
|
293 |
|
|
|
294 |
|
" Toggle wrap setting on ,w key |
|
295 |
|
nmap ,w :set wrap!<cr> |
|
296 |
|
|
|
297 |
|
" Example of standard two-panel file managers mappings |
180 |
298 |
nmap <f3> :!less %f<cr> |
nmap <f3> :!less %f<cr> |
181 |
299 |
nmap <f4> :edit<cr> |
nmap <f4> :edit<cr> |
182 |
300 |
nmap <f5> :copy<cr> |
nmap <f5> :copy<cr> |