How to reproduce
----------------

printf '%s\n' 'line 2' 'line 3'  > example.txt
LC_ALL=C vim -u NONE + -c 'norm mam"ggOline 1' example.txt



Observed result
---------------

:marks
mark line  col file/text
 '      3    0 line 3
 a      3    0 line 3
 "      2    0 line 2


Expected result
---------------

Mark " should refer to line 3, similarily as mark a .  This would be useful 
when 
file enter position has been set by a last-position-jump BufRead-autocommand, 
and after some editing work I want to jump back to this “last-position”.



vim version
-----------
:version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar 21 2012 11:59:10)
Included patches: 1-135
Modified by Gentoo-7.3.135
Compiled by [email protected]
Huge version without GUI.  Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent 
-clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments 
+conceal -cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs 
-dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path
+find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv 
+insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent 
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape 
+mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse 
+mouse_xterm 
+multi_byte +multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra +perl 
-persistent_undo -printer +profile +python -python3 +quickfix +reltime 
-rightleft -ruby +scrollbind +signs +smartindent -sniff +startuptime 
+statusline 
-sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo 
+termresponse +textobjects +title -toolbar +user_commands +vertsplit 
+virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu 
+windows +writebackup +X11 +xfontset -xim +xsmp_interact +xterm_clipboard 
-xterm_save
   system vimrc file: "/etc/vim/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: x86_64-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 
-march=native -pipe -D_FORTIFY_SOURCE=1
Linking: x86_64-pc-linux-gnu-gcc   -Wl,-E  -Wl,-O1 -Wl,--as-needed 
-L/usr/local/lib -Wl,--as-needed -o vim    -lSM -lICE -lXpm -lXt -lX11 -lXdmcp 
-lSM -lICE -lm   -lcurses -lacl -lattr -ldl    -Wl,-E -Wl,-O1 -Wl,--as-needed  
-L/usr/lib64/perl5/5.12.3/x86_64-linux/CORE -lperl -lnsl -ldl -lm -lcrypt 
-lutil 
-lc -L/usr/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker 
-export-dynamic

-- 
Roland Eggner

Attachment: pgpGitnNlTGfb.pgp
Description: PGP signature

Raspunde prin e-mail lui