![]() To create a Zip archive in a specific directory, the user needs to have. Zsh does not, but it has its own implementation of vi-like editing mode (see weronikas answer. zip is a command-line utility that helps you create Zip archives. Bash and some other programs use readline, so you will get vi-like editing in them. , you'll wind up in the hidden directory. zshrc to default to vim insert mode: Readline library itself can do this: instead of using set -o vi in bash, add set editing-mode vi to /.inputrc. Although note that with this method, if you cd somewhere and then cd. This is a colon-separated list of directories in which the shell looks for destination directories specified by the cd command. From the Bash man page: CDPATH The search path for the cd command. Then set CDPATH to include the path to that hidden directory. 9 Answers Sorted by: 38 You can use the environment variable CDPATH for this. It could also contain links to any other directories you frequently visit. In ~/.bashrc, and then typing cd somewhere would take you to /user/something/somefolders/somewhere (assuming there's no directory named somewhere within the current directory).Īlternatively, if you don't want to refer to the folder somewhere by its real name, you could create a hidden directory that contains a symbolic link to /user/something/somefolders/somewhere with the name you want to use. And add two new key remaps to the c.vim file. Then I made a c.vim file in /.vim/after/ftplugin directory. Then move the run (or whatever name you gave to your script) file to the bin directory. In your case, you can set export CDPATH=.:/user/something/somefolders Go to your home directory, and make a directory named bin. Type the contents of file and get into command mode (Press Esc ) :tabedit file2, will open a new tab and take you to edit file2. ![]() You can use the environment variable CDPATH for this. Steps: Open Vim with any file or just Vim: vim file1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |