![]() ![]() deleted vim alias in ~/.bashrc as /usr/local/bin already higher on my $PATH than /usr/bin.re-install MacVim ( brew cask zap macvim & brew cask install macvim) which created a symlink at /usr/local/bin/vim.upgrade to MacOS Catalina involved upgrade of system vim which dropped support for iwhite.git difftool set to vimdiff which pointed to system /usr/bin/vim and was unaffected by vim alias.vim aliased to /usr/bin/local/mvim in ~/.bashrc.Uninstall MacVim and reinstalling it caused it to re-install symlinks including /usr/local/bin/vim, a command that did not exist as such when I originally installed MacVim. So why was this causing me problems? I realized that I had been using an alias to invoke MacVim from the terminal but that my alias did not capture invocation of the form vimdiff which used the system vim. I don't use the system version of vim anyway, instead using MacVim installed using Homebrew Cask. I'm not going to dive into it too thoroughly, but if you confirm that Catalina is to blame, let me know in the comments. Most of my frustration is environment specific, but it does seem like MacOS Catalina bundled a different version of vim that removed support for the iwhite option. This error was driving me crazy, as when I ran git diff when there were many changed files, this error message would display for me to acknowledge between every file comparison.Īfter beating my head against the wall for a while, I finally figured out the issue. Had a new version of vim been released that deprecated this diffopt option? No, iwhite still appeared in the manual under :help diffopt. Me, I’ll use tmux to swap the panes and then move into copy mode to seeįull-screen mode."Ignore whitespace with vimdiff if & diff set diffopt +=iwhite If I run tests or git diff and want to see more output than the 25% allots Split for vim and a terminal so I can run tests, interact with git, and code. When I’m working on any Ruby work specifically, I’ll have a 75%/25% vertical Mentioned, I run all of this inside one tmux session (named work) and switchīetween the different windows throughout the day. Irssi, and maybe run vim in another window to take notes for myself. These are some of my must-haves in my tmux config:ĭuring the day, I’ll work on one or two Rails apps, work on my dotfiles, run tmux source-file ~/.nf reloads the current tmux configuration (based on a default tmux config) Tmux list-keys lists out every bound key and the tmux command it runs tmux list-commands lists out every tmux command and its arguments tmux info lists out every session, window, pane, its pid, etc. + selects the next pane in numerical order tmux split-window (prefix + ") splits the window into two vertical panes tmux split-window -h (prefix + %) splits the window into two horizontal panes tmux swap-pane - (prefix + ) swaps pane with another in the specified direction tmux select-pane - selects the next pane in the specified direction tmux select-pane -t. People argue that OS X’s Cmd+Tab is just asįast, but I don’t think so. I don’t have to switchĪpplications to switch contexts (editing, reading logs, IRB, etc.) - everything They’re the reason I wasĪble to uninstall MacVim and develop solely in iTerm2. Panes take my development time from bland to awesome. tmux new-window (prefix + c) create a new window tmux select-window -t :0-9 (prefix + 0-9) move to the window based on index tmux rename-window (prefix + ,) rename the current window Way, I can recognize windows by context and not what application it’s running. The same thing goes for client applications. Organized, I rename all the windows I use if I’m hacking on a gem, I’ll name Tmux has a tabbed interface, but it calls its tabs “Windows”. tmux new -s session_name creates a new tmux session named session_name tmux attach -t session_name attaches to an existing tmux session named session_name tmux switch -t session_name switches to an existing session named session_name tmux list-sessions lists existing tmux sessions tmux detach (prefix + d) detach the currently attached session ![]() Open-source gems or other work I hack on at home. Need during my day-to-day development, while in ‘Play’, I keep open current ‘Work’ session and a ‘Play’ session in ‘Work’, I keep everything open that I Sessions are useful for completely separating work environments. That means you would first hit (and release) Control + b They’re accessed by entering a key combination called the prefixįor example, if you see prefix + d below, If a tmux command I mention is bound to a keyboard shortcut by default, I’ve compiled a list of tmuxĬommands I use daily to help me work more efficiently. Live in the terminal (and especially vim). ![]() Navigating output, and session management make it a no-brainer for those who Pane and window management, copy-mode for I’ve been using tmux for about six months now and it has become just asĮssential to my workflow as vim.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |