diff --git a/terminal/.config/vifm/vifmrc b/terminal/.config/vifm/vifmrc index 54bb2c1..0375b97 100644 --- a/terminal/.config/vifm/vifmrc +++ b/terminal/.config/vifm/vifmrc @@ -1,4 +1,4 @@ -" vim: filetype=vifm : set foldmethod=marker foldlevel=0 nomodeline: +" vim: filetype=vim : set foldmethod=marker foldlevel=0 nomodeline: " Sample configuration file for vifm (last updated: 20 July, 2018) " You can edit this file by hand. " The " character at the beginning of a line comments out the line. @@ -227,12 +227,15 @@ nmap Q :q " Sample mappings " for now they use space for my leader key - so we can't switch panels with " space, use tab for that -"nnoremap -nnoremap +nmap +nnoremap " switch pane with tab, like cpoption did nnoremap w +" scroll through command-line options with C-p/C-n +cnoremap +cnoremap " Start shell in current directory nnoremap s :shell @@ -274,6 +277,9 @@ nnoremap cW cw " esc quits out of preview mode (it does in vim, why not here?) qnoremap q +" quickly show alternative file opening applications +nnoremap o :file + " Select file and jump in the indicated direction nnoremap J tj nnoremap K tk @@ -361,12 +367,13 @@ source $VIFM/favicons.vifm " program. " Pdf -filextype *.pdf +filextype ,*.pdf \ { view as rich file } \ sioyek %c %i, zathura %c %i &, apvlv %c, xpdf %c, \ { edit text content } \ pdftotext -nopgbrk %c - | nvim -fileviewer *.pdf pdftotext -nopgbrk %c - +filextype ,*.pdf + \ pdftotext -nopgbrk %c - " PostScript filextype *.ps,*.eps,*.ps.gz @@ -458,6 +465,11 @@ filextype *.ora \ {Edit in MyPaint} \ mypaint %f, +" OpenRaster +filetype *.sqlite,*.db + \ {Edit in sqlite3} + \ sqlite3 %f, + " tabular data filextype *.csv \ {Open with visidata}