Skip to content

Taken from Damian Conway's autoswap_mac but tweaked to work with iterm2(multiple windows and tabs)

Notifications You must be signed in to change notification settings

mhuggins7278/autoswap_mac_iterm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

autoswap_mac.vim

Created by Damian Conway Modified to work with iterm2 instead of mac terminal

The automatic behaviour

Find if the file already open in another Vim session in some other iTerm window. If so, go there instead and terminate this attempt to open the file. Otherwise, if swapfile is older than file itself, just get rid of it. Otherwise, open file read-only.

#settings Make sure show current job name is checked in the iterm preferences under appearance

in your vimrc add these lines

set title titlestring=

set t_ts=^[]1;

set t_fs=^G

Type CTRL-V Escape for ^[ and CTRL-V CTRL-G for ^G.

let &titleold='Shell'

About

Taken from Damian Conway's autoswap_mac but tweaked to work with iterm2(multiple windows and tabs)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published