File vifmrc changed (mode: 100644) (index 5e3aab7..3c2ac42) |
... |
... |
command! mkcd! :mkdir! %a | cd %a |
237 |
237 |
" run make in current directory |
" run make in current directory |
238 |
238 |
command! make !!make %a |
command! make !!make %a |
239 |
239 |
|
|
|
240 |
|
" use Vim to diff files |
|
241 |
|
" uses selection of current pane when it contains more than one file |
|
242 |
|
" otherwise uses left pane file and right pane file keeping order inside Vim |
|
243 |
|
command! diff : if expand('%%c') == expand('%%f') |
|
244 |
|
\ | if paneisat('right') && paneisat('bottom') |
|
245 |
|
\ | execute '!vim -d %%C %%c' |
|
246 |
|
\ | else |
|
247 |
|
\ | execute '!vim -d %%c %%C' |
|
248 |
|
\ | endif |
|
249 |
|
\ | else |
|
250 |
|
\ | execute '!vim -d %%f' |
|
251 |
|
\ | endif |
|
252 |
|
|
240 |
253 |
" ============================================================================== |
" ============================================================================== |
241 |
254 |
" targeting Vim instances |
" targeting Vim instances |
242 |
255 |
|
|