far.vim 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. let g:far#source='rgnvim'
  2. " let g:far#source='rg'
  3. " let g:far#source='vimgrep'
  4. " let g:far#source='ag'
  5. set lazyredraw " improve scrolling performance when navigating through large results
  6. let g:far#window_width=60
  7. " Use %:p with buffer option only
  8. let g:far#file_mask_favorites=['%:p', '**/*.*', '**/*.js', '**/*.py', '**/*.java', '**/*.css', '**/*.html', '**/*.vim', '**/*.cpp', '**/*.c', '**/*.h', ]
  9. let g:far#window_min_content_width=30
  10. let g:far#enable_undo=1
  11. " let g:far#ignore_files=['$HOME/.config/nvim/utils/farignore']
  12. " let g:far#ignore_files=['node_modules/']
  13. " Below are the default mappings and corresponding variable names in
  14. " x v_x - Exclude item under the cursor.
  15. " i v_i - Include item under the cursor.
  16. " t v_t - Toggle item exclusion under the cursor.
  17. " f v_f - Smartly toggle item exclusion under the cursor: exclude all items when all are excluded, otherwise exclude all items.
  18. " X - Exclude all items.
  19. " I - Include all items.
  20. " T - Toggle exclusion for all items.
  21. " F - Smartly toggle exclusion for all items: include all items when all are excluded, otherwise exclude all items.
  22. " <CR> - Jump to the source code of the item under the cursor. See |far-jump|
  23. " p - Open preview window (if not) and scroll to the item under the cursor. See |far-preview|
  24. " P - Close preview window. See |far-preview|
  25. " CTRL-K - Scroll preview window up (if open). See |far-preview|, |g:far#preview_window_scroll_step|
  26. " CTRL-J - Scroll preview window down (if open). See |far-preview|, |g:far#preview_window_scroll_step|
  27. " zo - Expand node under the cursor.
  28. " zc - Collapse node under the cursor.
  29. " za - Toggle node expanding under the cursor.
  30. " zs - Smartly toggle exclusion for all nodes: expand all nodes when all are collapsed, otherwise collapse all nodes.
  31. " zr v_zr - Expand all nodes.
  32. " zm v_zm - Collapse all nodes.
  33. " zA v_zA - Toggle exclusion for all nodes.
  34. " zS v_zS - Smartly toggle exclusion for all nodes: expand all nodes when all are collapsed, otherwise collapse all nodes.
  35. " s v_s - Execute |:Fardo|<CR>, to replace all included items.
  36. " u v_s - Execute |:Farundo|<CR>, to undo the last replacement by |:Fardo|.
  37. " U v_U - Execute |:Farundo| --all=1<CR>, to undo all replacements by |:Fardo|. For param '--all=' see |farundo-params|.
  38. " q v_q - Close searching result buffer and its preview buffer (if exists)