Andrei Kulakov | 17 Apr 04:52 2014
Picon

Going from linux vim to Macvim?

Hi,

I'll be using a macbook air fairly often, and I'm completely new to the
Mac environment. I'm used to using Gvim in Ubuntu. The first thing
I noticed is that I have two command keys on either side of space
bar, and a control key tucked away on the left side. I'm really used
to using ctrl key for shortcuts but I need it on both sides!

I googled a bit for this but I haven't found a way to make Macvim
remap all command key to control - other than manually defining
mappings with <D-> . What's the best way to deal with this?

The other issue is that when I :set macmeta , it seems to work
for my custom meta mappings, but it doesn't work reliably for
tabbar mappings that map meta-1 through 9 to buffers in 
tabbar. It seems to work a few times and then stops. No errors,
either.

Macvim also seems to have a limitation that disallows multiple
modifier keys in the same mapping.

Is it feasible to compile gtk vim in macos? What are the pro's
and con's?

Is there a guide for going from linux to macvim?

thanks!

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ping song | 17 Apr 04:47 2014
Picon

vim: missing register * and #

after installing vim in ubuntu14.04 in a new HD,
I found I'm missing * and # register now...

did some research but still no idea how to get it back.

I did have vim-gnome installed, and version shows I have the clipboard ability...
what am I missing here?


:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan  2 2014 19:39:47)
Included patches: 1-52
Compiled by buildd <at>
Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
+acl             +cmdline_compl   +diff            +find_in_path    +keymap          +modify_fname    +mouse_xterm     +profile         -sniff           +termresponse    +vreplace        -xterm_save
+arabic          +cmdline_hist    +digraphs        +float           +langmap         +mouse           +multi_byte      +python          +startuptime     +textobjects     +wildignore      +xpm
+autocmd         +cmdline_info    +dnd             +folding         +libcall         +mouseshape      +multi_lang      -python3         +statusline      +title           +wildmenu
+balloon_eval    +comments        -ebcdic          -footer          +linebreak       +mouse_dec       -mzscheme        +quickfix        -sun_workshop    +toolbar         +windows
+browse          +conceal         +emacs_tags      +fork()          +lispindent      +mouse_gpm       +netbeans_intg   +reltime         +syntax          +user_commands   +writebackup
++builtin_terms  +cryptv          +eval            +gettext         +listcmds        -mouse_jsbterm   +path_extra      +rightleft       +tag_binary      +vertsplit       +X11
+byte_offset     +cscope          +ex_extra        -hangul_input    +localmap        +mouse_netterm   +perl            +ruby            +tag_old_static  +virtualedit     -xfontset
+cindent         +cursorbind      +extra_search    +iconv           +lua             +mouse_sgr       +persistent_undo +scrollbind      -tag_any_white   +visual          +xim
+clientserver    +cursorshape     +farsi           +insert_expand   +menu            -mouse_sysmouse  +postscript      +signs           +tcl             +visualextra     +xsmp_interact
+clipboard       +dialog_con_gui  +file_in_path    +jumplist        +mksession       +mouse_urxvt     +printer         +smartindent     +terminfo        +viminfo         +xterm_clipboard
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-  
pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/       
libpng12 -I/usr/include/harfbuzz   -pthread -DORBIT2=1 -D_REENTRANT -I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2. 
0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/x86_64-linux-gnu/gnome-vfs-2.0/include -I/   
usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/ 
bonobo-activation-2.0 -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/gail-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/   
include -I/usr/include/cairo -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/include/libpng12     -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -          
U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1     -I/usr/include/tcl8.6  -D_REENTRANT=1  -D_THREAD_SAFE=1  -D_LARGEFILE64_SOURCE=1
Linking: gcc   -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -rdynamic -Wl,-export-dynamic -Wl,-E  -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2. 
0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype     -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnomevfs-2 -lgnomecanvas-2 -lgnome-2 -     
lpopt -lbonobo-2 -lbonobo-activation -lORBit-2 -lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lfreetype -   
lgconf-2 -lgthread-2.0 -lgmodule-2.0 -lgobject-2.0 -lglib-2.0   -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl  -L/usr/lib -llua5.2 -Wl,-E  -fstack-  
protector -L/usr/local/lib  -L/usr/lib/perl/5.18/CORE -lperl -ldl -lm -lpthread -lcrypt -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -
Wl,-Bsymbolic-functions  -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz -lpthread -lieee -lm -lruby-1.9.1 -lpthread -lrt -ldl -lcrypt -lm  -L/usr/lib

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Adrian Nagle | 16 Apr 17:58 2014
Picon

Opening large files?

'm helping another user open a large, 3Gb, file.  The standard windows
editors balk, so I recommended VIM.  Unfortunately, even vim crashes
after scrolling some amount.  For instance, he can't go straight to
the end of file.

The work station is Windows 7, 64 bit, with 32Gb of RAM.  Are there
any settings to modify to make vim more stable with large files, or is
there some Windows performance limitation and just out of luck?

Thanks.
Adrian
-- 
Adrian Nagle (anagle <at> gmail.com)
"There can be no thought of finishing, for 'aiming at the stars,' both
literally and figuratively, is a problem to occupy generations, so
that no matter how much progress one makes, there is always the thrill
of just beginning."  Dr. Goddard to H.G. Wells, 1932

-- 
--

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ven Tadipatri | 16 Apr 15:50 2014
Picon

Reverse search and replace

In Vim, you can do a search and replace with :%s, with a confirm option. But if the text you want to replace is the last line in the current window, then you can't really see any context for it. Is there a way to do a reverse search and replace? Or when a match is found, can you have vim show a few lines below it?

Thanks,
Ven

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
FlashBurn | 15 Apr 15:15 2014
Picon

my invisible characters are not displayed properly

For some reason my invisible characters are not displayed properly. I have to source my vimrc a second time
for the 'list' setting to work.

Here is my setting for 'listchars'
set listchars=tab:►\ ,eol:¬,trail:●

The results of the invisibles not being displayed is in the attached file called invisibles_wrong.jpg.

If I source my vimrc again, everything is working. You can see the result in the attached imaged called invisibles_right.jpg

Can anyone explain why this is happening?

Any help is appreciated.

-- 
--

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
netraken | 14 Apr 22:22 2014
Picon

Problem with latex template

Hello all,

I am transitioning from the other well known editor, mostly for latex.

I have a latex template. When I open it in vim, everything is fine.
When I create a file, then insert the template in the file with 
:TTemplate, the tex file is inserted but the first line is cut away and 
formatting is funky.

If a leave a blank line on the top of the file to get the first line 
(\documentclass[11pt]{article}
the contents of the files are completely screwed up like that :

<++>\<++>d<++>o<++>c<++>u<++>m<++>e<++>n<++>t<++>c<++>l<++>a<++>s<++>s<++>[<++>1<++>0<++>p<++>t<++>]<++>{<++>a<++>r<++>t<++>i<++>c<++>l<++>e<++>}<++>
(a <++> is inserted between each letter !)

What is happening ?

I am on linux mint 16, all files in utf8.

Thanks for your help,

Alain

-- 
--

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alain Bertrand | 14 Apr 19:01 2014
Picon

Problem with latex template

Hello all,

I am moving after years with ***** to vim, mostly for latex.
I have installed latex-suite.

I encounter a strange problem with templates :

My template is the template_patron.tex file.
After inserted it in a new file with :TTemplate it becomes like the test.tex file:

first line is supressed and indentation becomes strange.

In order to get the first line not removed, I have inserted a blank line at the top of the file.
(short_tem.tex) then after inserting the template the file is completly spoilt.

What I am doing wrong here ?

Thanks for your help,

Alain

-- 
--

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Attachment (template_patron.tex): text/x-tex, 2358 bytes
Attachment (test.tex): text/x-tex, 2931 bytes
Attachment (strange.tex): text/x-tex, 11 KiB
Attachment (short_tem.tex): text/x-tex, 2359 bytes
Tim Johnson | 14 Apr 21:07 2014

Many problems, how to debug on startup

I have transitioned my vim resources from OS X 10.7 to ubuntu 12.04

I've got a real mess and rather than go into the gory details, I
need two sets of advice to begin with

1) When I start gvim, I get an error message that says "No Mapping
Found" - most mapping does appear to work, so I need to step through
gvim startup process.
  -- if I do `gvim -V20', I can see the startup steps, but I need to
  capture those messages in a file 'gvim -V20 > debug.txt' doesn't
  give me any results. Which syntax should I use?

2)Once I have gvim started, I'm getting erratic results when I
restore a session. Some sessions are fine, others have the syntax
highlight turned off and I can't get it to resume, among other
issues...
  -- similarly, I need a process to step through the session
  restoration.

Any help would be appreciated, answering the questions above should
enable me to trouble-shoot. In the meantime, I have a compromised
development platform.

TIA
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

-- 
--

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Егор | 14 Apr 14:50 2014
Picon

Modify file name of tab to short

I get tab name with bufname(buflist[tabpagewinnr(a:n) - 1])
But i get whole relative path like lib/App/Model/Chart.pm
How to get it short like l/A/M/Chart.pm

-- 
--

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeri Raye | 14 Apr 10:58 2014
Picon

Another SRT questions

Hi,

I have an SRT file that have dialog sentences that sometimes ends halve way with a dot.
And then a next sensentence starts.
This text doesn't start then with a uppercase character, but with a lower case letter.

For example:
I want to tell you this. and also this.

How to change this into:
I want to tell you this. And also this.


It's basicly search for "<one or more character and spaces ending with chars>. <lower char>"
I played with getline and toupper() in an function call, but got lost.



Rgds,
Jeri

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jeri Raye | 13 Apr 07:47 2014
Picon

How to change an SRT file

Hi,

I have an srt file where every new subtitle starts with a capital letter.
See here an example.

+-----+
12
00:01:35,095 --> 00:01:38,598
The people you see
actually lived.

13
00:01:38,598 --> 00:01:41,601
All the words
they speak

14
00:01:41,601 --> 00:01:44,604
Were spoken
or written by them.

15
00:01:46,606 --> 00:01:50,110
+-----+

I would like to change this.
I would like that only the new subtitle that follow after an dot (.) of the previous subtitle starts with a captial letter.

So in the example shown, in subtitle 14, the word 'Were' should be changed in 'were'.

How to do that?

Rgds,
Jeri

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gmane