sponsor Vim development Vim logo Vim Book Ad

visualMarks.vim : Show file marks visually

 script karma  Rating 17/5, Downloaded by 690    Comments, bugs, improvements  Vim wiki

created by
Alexandre Viau
 
script type
utility
 
description
See latest version on github: https://github.com/viaa/VimPlugins

" Documentation
    " Name: visualMarks.vim
    " Version: 2.2
    " Description: Simple plugin to show file marks visually
    " Author: Alexandre Viau (alexandreviau@gmail.com)
    " Installation: Copy the plugin to the vim plugin directory.

" Usage:
    " Simply use vim marks like usually doing
    " ma, mb, mc...mz
    " or
    " mA, mB, mC...mZ
    " to marks positions in files.
    " NOTE: Only new marks are shown visually, this means that the marks already in the viminfo file will not be showned visually.
    " <tab>m To show the marks log file (in a split view)
    " f3 To show the marks log file (in current buffer)
    " <tab>f3 To show the marks log file (in a new tab)
    " <s-tab>f3 Open and grep the marks log file
    " <tab>g To grep the marks log file
    " All files opened in vim are added to the log file

" Todo:
    " 1. Load the marks from vim info and show them visually.
    " 2. Add mapping to automatically mark with next unused mark.
    " 3. Show warning if mark already used somewhere to prevent overwriting marks.
    " 4. s0 Add the possibility to select a log in the log file and then go to that position in the file
    " 5. s0 Le type the recherche ne devrait pas etre regex car s'il y a des [ ou ] alors la chaine n'est pas trouvee
    " 6. s0 Fix the mapping for the search for the line number it is not working now, everything I put is not working

" History:
    " 1.0 Initial release
    " 1.1 Removed the space in the mappings that where moving the cursor to the right after execution
    " 1.2 Change the file format for unix
    "     Added a fold to history
    " 1.3 Added 2 mappings (commented, to uncomment if you want to) to remap ` on ' and ' on `, because ` is more useful and ' more close
    " 1.4 Now the marks are saved to a log file so that it can be viewed to remember the previous marked positions. Also the line logged is copied to the clipboard. Later I will add the possibility go to the positions marked in the log file.
    " 2.0 I added a log file where each mark location is saved to it. And doing <tab>m will show the log file and allow to choose one of the previously logged location. Also, all files opened in vim are added to the log file, so it is like an history of files opened and locations in files. Tab<f3> will run grep to search the log file.
    " 2.1 I added and modified mappings
    " 2.2 I added 't' to open a file in another tab and I removed the '!' in the 2nd autocommand because it suppressed the first autocommand (thanks to Xaizek for that tip)
 
install details
Installation: Copy the plugin to the vim plugin directory.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
visualMarks.vim 2.4 2016-03-26 7.0 Alexandre Viau Some extra lines are added to the log every time, this is fixed
I remove error message if search string not found.
visualMarks.vim 2.2 2015-10-05 7.0 Alexandre Viau I added 't' to open a file in another tab and I removed the '!' in the 2nd autocommand because it suppressed the first autocommand (thanks to Xaizek for that tip)
visualMarks.vim 2.1 2015-09-20 7.0 Alexandre Viau I added and modified mappings
visualMarks.vim 2.0 2015-09-12 7.0 Alexandre Viau     " 2.0 I added a log file where each mark location is saved to it. And doing <tab>m will show the log file and allow to choose one of the previously logged location. Also, all files opened in vim are added to the log file, so it is like an history of files opened and locations in files. Tab<f3> will run grep to search the log file.
visualMarks.vim 2.0 2015-09-12 7.0 Alexandre Viau I added a log file where each mark location is saved to it. And doing <tab>m will show the log file and allow to choose one of the previously logged location. Also, all files opened in vim are added to the log file, so it is like an history of files opened and locations in files. Tab<f3> will run grep to search the log file.
visualMarks.vim 1.1 2012-12-27 7.0 Alexandre Viau Removed the space in the mappings that where moving the cursor to the right after execution
visualMarks.vim 1.0 2012-12-26 7.0 Alexandre Viau Initial upload
ip used for rating: 54.80.23.105

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo