From 62610c82c5697bebd13fd78cab4ca7dfaef19139 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 4 Jul 2019 08:19:16 +0200 Subject: [PATCH] Add vim folds to vifmrc file --- .config/vifm/vifmrc | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index 00bda95..5019f68 100644 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -1,4 +1,4 @@ -" vim: filetype=vifm : +" vim: filetype=vifm : 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. @@ -6,7 +6,8 @@ " The basic format for each item is shown with an example. " ------------------------------------------------------------------------------ - +" Options {{{ +" ============================================================================== " This is the actual command used to start vi. The default is vim. " If you would like to use another vi clone such as Elvis or Vile " you will need to change this setting. @@ -101,6 +102,8 @@ set mintimeoutlen=50 " set the pre-key timeout really high, see https://git.io/fNm1d set timeoutlen=5000 +" }}} +" Marks {{{ " ------------------------------------------------------------------------------ " :mark mark /full/directory/path [filename] @@ -111,6 +114,8 @@ mark p ~/projects/ mark n ~/Nextcloud/Notes/ mark t ~/.local/share/vifm/Trash/ +" }}} +" Commands {{{ " ------------------------------------------------------------------------------ " :com[mand][!] command_name action @@ -134,6 +139,8 @@ command! mkcd :mkdir %a | cd %a " command! vgrep nvim "+grep %a" command! reload :write | restart +" }}} +" Filetypes {{{ " ------------------------------------------------------------------------------ " The file type is for the default programs to be used with @@ -368,6 +375,8 @@ filextype */ " For Windows: " filetype * start, explorer +" }}} +" vifminfo {{{ " ------------------------------------------------------------------------------ " What should be saved automatically between vifm runs @@ -389,6 +398,8 @@ set vifminfo=dhistory,savedirs,chistory,state,tui,shistory, " " filter! /^.*\.(lo|o|d|class|py[co])$|.*~$/ +" }}} +" Mappings {{{ " ------------------------------------------------------------------------------ " make quitting simpler @@ -460,6 +471,8 @@ nnoremap te :execute ':tree! | echo ":tree"' nnoremap t nnoremap tt t +" }}} +" " ------------------------------------------------------------------------------ " Various customization examples