![]() Next, you have to enable vim to recognize mouse commands. I wanted to use my dotfiles on my VM so I wrote an ansible script to configure vim on my VM. ![]() This wasn't really an issue until recently when I needed to debug a gem in my VM, but bundle open opened a blank vi editor without any vim configuration. Press question mark to learn the rest of the keyboard shortcuts. Now after fresh OS X install I decided to use Vim again, but Press J to jump to the feed. However, getting my mouse to work with iTerm and vim on a mac wasn't as intuitive as I thought. I have been using Vim in the past (not for long though) and it worked fine. So to solve this problem in Vim, I started using fuzzy search (cirl-p), NERDTree for file navigation, and lastly enabling my mouse for scrolling through files, copy-pasting, and clicking NERDTree nav. Because of this, Sublime has been my go-to with its easy to use file tree, file finder, and project-based search preview being the difference makers. GUI-based navigation is especially important when joining a new project where you don't know where anything is. Therefore, navigation becomes my biggest pain point. I've been trying to commit to Vim full-time, but almost all of the projects I've worked on are rails projects which become bloated with files and directories. If you are using fontconfig, make sure bitmap fonts are not disabled. In iTerm2, also make sure that you set both the regular font and the non-ASCII font to a patched powerline font. Set mouse = a " tell vim to recognize mouse commands in " all " modes set ttymouse = xterm2 " tell vim you 're using xterm, this isn't necessary but I believe improves performance set ttyfast " improve fluidity of mouse commands, this isn 't necessary but I believe improves performance set paste " don 't mess up the indenting of pasted text vmap "+y " map ctrl - c to copy a block of text selected by the mouse If you are using vim in iTerm, you may also have to turn transparency off in the iTerm preferences, and move the contrast slider to the lowest position. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |