When you close and re-open files in SublimeText there is a way you can get your cursor to go back to the same position. I really like this behavior in VI/VIM called `autocmd` / `BufReadPost` – which is done by editing / changing a configuration file, usually `~/.vimrc` or `/etc/vim/vimrc` and enabling this part:
” Uncomment the following to have Vim jump to the last position when
” reopening a file
“if has(“autocmd”)
” au BufReadPost * if line(“‘\””) > 1 && line(“‘\””) < = line("$") | exe "normal! g'\"" | endif
"endif
##Sublime Text
In Sublime Text this is done by a plugin called BufferScroll
> BufferScroll: Remember, restore and sync scroll, bookmarks, marks, folds and cursors. keys: multiple columns one buffer, follow mode, split, screen, pages, synchronize vertical scrolling
There are two methods for installation:
###Installation with Package Manager
If you’re not yet using Package Manager you may be missing out. At first I thought “ah, who needs that I can just drop in the files I need” but once I started using it I realized that I had been wasting my time by not using it.
Installation is done by [pasting some text into the console](https://sublime.wbond.net/installation) and then once it is installed…
You can use `Cmd+Shift+P` (Windows `Control+Shift+P`) to bring up the “Command Palette” and then install lots of great addons in just a few strokes – like installing `BufferScroll` is as easy as choosing “Package Control: Install Package”:
And then selecting “BufferSroll” from the list of packages that come up! Warning – it may take a few seconds for the list of packages to show up – look at the “loading” status in the status bar (very bottom) of Sublime Text.
See! Wasn’t that easy and totally worth taking a few minutes to install Package Control!?
###Installation without Package Manager
You can also get the source code and installation instructions for a manual installation [over at github](https://github.com/SublimeText/BufferScroll) but I warn you that you will only thank yourself if you choose to install and use Package Manager instead.