Code Monkey home page Code Monkey logo

restore_view.vim's Introduction

This is a mirror of http://www.vim.org/scripts/script.php?script_id=4021

This is plugin for automatically restore one file's cursor position and folding information after restart vim.

This is a simple script to autosave cursor position and fold
information using vim\\&#039s mkview.  Although you can easily do this job by
just add serveral line to {.,_}vimrc, write a script plugin can make it
more clean and nice.  We assume you use a new enough vim to enjoy
these feature. Hope you love it:)
                                                                        
Views are only be saved when you save/write a file or EXIT VIM.
     
Suggested Setting:
Please put them in you vimrc:
set viewoptions=cursor,folds,slash,unix
" let g:skipview_files = ['*\.vim']
                                                                   
Set it in a plugin file looks dirty to me.  So you\\&#039d better do it your
self.  This only keywords not in viewoptions is \\\"options\\\". I believe it
does not belong to a view.  If you think you need it, feel free to
put it in.  If you do not want views of some files to be saved, please
set g:loaded_restore_view. The longer time you use, the bigger view
folder you will have.  So if you use UNIX environment, you may need to
use cron to do some clean job.

restore_view.vim's People

Contributors

zhou13 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.