3 ms·
I recently picked up a copy of "Practical Vim" https://pragprog.com/titles/dnvim2/practical-vim-second-edition/ https://pragprog.com/titles/dnvim2/practical-vim
by mstudio 4y ago
I recently picked up a copy of "Practical Vim" https://pragprog.com/titles/dnvim2/practical-vim-second-edition/ https://pragprog.com/titles/dnvim2/practical-vim-second-edit... based on a recommendation from a comment on HN. The first chapter mentions the built-in `vimtutor`
I never it existed! It was incredibly helpful with some features I'd never used such as Put, Replace and Visual mode. If you have vim, you should just be able to run `vimtutor` in the command line. If you have trouble, you can run `:help vimtutor` within vim.
- dunham 4y agoYeah, I've known and used "vi" for a couple of decades, saw someone use visual mode in a video a few months ago, and it blew my mind. I still don't know how to do project navigation in vi, as I mainly use it for editing config files. I used emacs back in the day, but vscode is what I'm currently most comfortable with for moving between files in a large, deeply nested project.
- patricius 4y agoUse fzf for file navigation and perhaps vim-vinegar. When you open Vim, use :cd to change to your project directory and you’re ready. Use :term to start stuff, e.g., a local web server or whatever. Use fzf to navigate between open buffers.
- mstudio 4y agoYou might find the ":NERDTree" plugin useful for project/directory navigation: https://catonmat.net/vim-plugins-nerdtree-vim https://catonmat.net/vim-plugins-nerdtree-vim and https://github.com/preservim/nerdtree https://github.com/preservim/nerdtree