Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netrw shortcuts #13

Open
8 of 61 tasks
danprince opened this issue Sep 7, 2023 · 0 comments
Open
8 of 61 tasks

netrw shortcuts #13

danprince opened this issue Sep 7, 2023 · 0 comments

Comments

@danprince
Copy link
Owner

danprince commented Sep 7, 2023

  • <F1> Causes Netrw to issue help
  • <cr> Netrw will enter the directory or read the file
  • <del> Netrw will attempt to remove the file/directory
  • <c-h> Edit file hiding list
  • <c-l> Causes Netrw to refresh the directory listing
  • <c-r> Browse using a gvim server
  • <c-tab> Shrink/expand a netrw/explore window
  • - Makes Netrw go up one directory
  • a Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide), and showing (display only files which match g:netrw_list_hide)
  • c Make browsing directory the current directory
  • C Setting the editing window
  • d Make a directory
  • D Attempt to remove the file(s)/directory(ies)
  • gb Go to previous bookmarked directory
  • gd Force treatment as directory
  • gf Force treatment as file
  • gh Quick hide/unhide of dot-files
  • gn Make top of tree the directory below the cursor
  • i Cycle between thin, long, wide, and tree listings
  • mb Bookmark current directory
  • mc Copy marked files to marked-file target directory
  • md Apply diff to marked files (up to 3)
  • me Place marked files on arg list and edit them
  • mf Mark a file
  • mF Unmark files
  • mg Apply vimgrep to marked files
  • mh Toggle marked file suffices' presence on hiding list
  • mm Move marked files to marked-file target directory
  • mp Print marked files
  • mr Mark files using a shell-style |regexp|
  • mt Current browsing directory becomes markfile target
  • mT Apply ctags to marked files
  • mu Unmark all marked files
  • mv Apply arbitrary vim command to marked files
  • mx Apply arbitrary shell command to marked files
  • mX Apply arbitrary shell command to marked files en bloc
  • mz Compress/decompress marked files
  • o Enter the file/directory under the cursor in a new browser window. A horizontal split is used.
  • O Obtain a file specified by cursor
  • p Preview the file
  • P Browse in the previously used window
  • qb List bookmarked directories and history
  • qf Display information on file
  • qF Mark files using a quickfix list
  • qL Mark files using a |location-list|
  • r Reverse sorting order
  • R Rename the designated file(s)/directory(ies)
  • s Select sorting style: by name, time, or file size
  • S Specify suffix priority for name-sorting
  • t Enter the file/directory under the cursor in a new tab
  • u Change to recently-visited directory
  • U Change to subsequently-visited directory
  • v Enter the file/directory under the cursor in a new browser window. A vertical split is used.
  • x View file with an associated program
  • X Execute filename under cursor via |system()|
  • % Open a new file in netrw's current directory
  • <leftmouse> (gvim only) selects word under mouse as if a had been pressed (ie. edit file, change directory)
  • <middlemouse> (gvim only) same as P selecting word under mouse; see |netrw-P|
  • <rightmouse> (gvim only) delete file/directory using word under mouse
  • <2-leftmouse> (gvim only) when: * in a netrw-selected file, AND * |g:netrw_retmap| == 1 AND * the user doesn't already have a <2-leftmouse> mapping defined before netrw is autoloaded, then a double clicked leftmouse button will return to the netrw browser window. See |g:netrw_retmap|.
  • <s-leftmouse> (gvim only) like mf, will mark files. Dragging the shifted leftmouse will mark multiple files. (see |netrw-mf|)
@danprince danprince changed the title additional netrw shortcuts netrw shortcuts Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant