guide to compiling vim on windows

2011-07-25 Thread skeept
I have been updating my vim windows with Yongwei's build (http:// wyw.dcweb.cn/#download) listed in http://www.vim.org/download.php but it the last two weeks I wasn't able to access this page. What I like in the binary that is provided there is that it was compiled against python 2.7, while

how do I get the current window width?

2012-02-11 Thread skeept
If I type :set lines? I get the width of the current terminal. I would like to know if there is a way of getting the width of the current window. The reason I would like to do this is that I would like to set up my statusline in such a way that some information is only displayed if the width of

Re: how do I get the current window width?

2012-02-11 Thread skeept
Thanks! On Feb 11, 4:01 pm, Gary Johnson garyj...@spocom.com wrote: On 2012-02-11, skeept wrote: If I type :set lines? I get the width of the current terminal. I would like to know if there is a way of getting the width of the current window. The reason I would like to do

Is there a way of moving in the jump list without using ctrl_i?

2012-02-14 Thread skeept
Hi, in my vimrc I have map tab c-w This is very convenient for all the window commands (like close, go to previous, go to top, etc...) but it seems that this prevents me from using the ctrl_i command. So if I type ctrl_o then I cannot go back just by typing ctrl_i. Is there another way of using

Howto format latex tables?

2012-05-16 Thread skeept
If I have a latex table with long line I always enter newline after // But if I select the table visually and use the Q command to format it puts the // in the middle of the text. I would like to know if there is an option to tell vim not format the table, but enter a newline after it sees a

Can I use conceal to hide ctrl-m in end of line?

2012-06-12 Thread skeept
Hi, I am working with someones elses file, some of them are readonly so I cannot really just read read of the annyoying ^M in the end of the line. Some lines have this charather others don't. Even if I do set ff=dos they are still changing. I was thinking that it should be possible to hide

Re: Can I use conceal to hide ctrl-m in end of line?

2012-06-12 Thread skeept
On Tuesday, June 12, 2012 12:22:44 PM UTC-5, Ben Fritz wrote: On Tuesday, June 12, 2012 10:38:34 AM UTC-5, skeept wrote: Hi, I am working with someones elses file, some of them are readonly so I cannot really just read read of the annyoying ^M in the end of the line. Some lines have

Re: VIM: best way to swap the Caps and esc, but JUST for vim

2012-06-18 Thread skeept
experts: this might be an old topic...but surprisingly I don#39;t get a good answer from google easily... in my work I use linux and I already swapped the esc/caps with xmodmap, so I don#39;t have issue to do it for the whole computer (not just for vim). but from time to time I need

Re: Error starting gvim and using diff

2012-06-18 Thread skeept
On Sunday, June 17, 2012 9:53:43 PM UTC-5, AndyHancock wrote: On Jun 17, 10:13 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 18/06/12 03:44, AndyHancock wrote: On Jun 17, 8:16 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 17/06/12 22:14, AndyHancock wrote: I'm

Cannot use vimdiff when started from cygwin

2012-07-11 Thread skeept
Hi, I am trying to start vimdiff from a cygwin shell but it is not working properly. I start it with gvimdiff.bat file1 file2 and the error messages I get is: E810: Cannot read or write temp files E97: Cannot create diffs I tried setting different values for the TMP variable in _vimrc,

Re: Cannot use vimdiff when started from cygwin

2012-07-11 Thread skeept
Generally, mixing Cygwin and non-Cygwin programs always causes trouble. In your case, I suspect, Vim fails to create temporary files for the diff. So please show us the output of :echo tempname() from Cygwin vim and gvim. Is this directory accessible from gvim/Cygwin vim (consider

Re: Cannot use vimdiff when started from cygwin

2012-07-12 Thread skeept
is it possible for you to turn off the HTML formatting in whatever client you're using? It isn't translating properly on the Google Groups interface. I don't know what it looks like in an email. Sorry about that, I am just using the page in google groups to write the message, google groups

Re: Cannot use vimdiff when started from cygwin

2012-07-13 Thread skeept
On Thursday, July 12, 2012 8:28:52 AM UTC-5, skeept wrote: gt; is it possible for you to turn off the HTML formatting in whatever client you#39;re using? It isn#39;t translating properly on the Google Groups interface. I don#39;t know what it looks like in an email. Sorry about that, I am

Re: Cannot use vimdiff when started from cygwin

2012-07-13 Thread skeept
On Friday, July 13, 2012 10:13:22 AM UTC-5, Ben Fritz wrote: On Friday, July 13, 2012 8:16:44 AM UTC-5, skeept wrote: gt; gt; what I would like to have is gt; if has(amp;quot;win32amp;quot;) and shell.find(amp;#39;bashamp;#39;) amp;gt;= 0 gt; amp;quot;let $TMP = amp;#39;c:\\htemp

Re: Scripting the enter key

2012-07-16 Thread skeept
On Monday, July 16, 2012 4:13:23 PM UTC-5, Douglas Mayle wrote: Thanks for the tip on lt;exprgt;, I hadn#39;t known about it! /div Long story short, I was using #39;autoclose#39; to do what delimitmate does, and was looking to add the CR expansion myself.  It turns out that delimitmate

Vertically maximized window changing size when closing tab

2012-08-16 Thread skeept
I tried this on Windows 7, vista and on Linux. If I have a window maximized vertically, then open a new tab (say :tab he) and then close that tab, so the tab line disappears the gvim window loses a line. I would like it to keep its original size since I had it vertically maximized to start

defining imap that calls performs second call if cursor didn't move

2012-08-20 Thread skeept
Hi, Suppose I have two functions Func1 and Func2. I would like to know if it is possible to define a imap that first calls Func1 (imap f1 c-r:call Func1()CR) if the cursor moves as a result of this call then we are done, otherwise it would call Func2 after calling Func1. Thank you. -- You

Re: defining imap that calls performs second call if cursor didn't move

2012-08-20 Thread skeept
On Monday, August 20, 2012 6:23:53 PM UTC-4, Simon Ruderich wrote: On Mon, Aug 20, 2012 at 01:42:04PM -0700, skeept wrote: Hi, Suppose I have two functions Func1 and Func2. I would like to know if it is possible to define a imap that first calls Func1 (imap f1 c-r:call Func1

Re: defining imap that calls performs second call if cursor didn't move

2012-08-24 Thread skeept
The following mapping works: imap C-L C-O:call SelectImapOrUlti()CR I'm not 100% sure why C-R=SelectImapOrUlti()CR doesn't work, but I guess because it's only meant to insert text. Btw. the LaTeX-Suite might not be the best solution. Here's what the bot vimgor

Re: Building Vim for Windows (like Vim Without Cream)

2012-08-25 Thread skeept
On Saturday, August 25, 2012 10:02:30 AM UTC-4, Michael Henry wrote: All, I'm interested in compiling Vim for Windows. Ideally, I'd like to replicate the Vim Without Cream build associated with the Cream project: http://cream.sourceforge.net/ The Cream FAQ didn't seem to

Different behavior expanding snippet directly or through inoremap

2012-08-30 Thread skeept
Hi, I use the snippet plugin ultisnips. Assume I have two snippets: snippet snip1 snippet1 !w ( $1 - $2 )$0 endsnippet snippet snip2 snippet2 !w [ $1 - $2 ]$0 endsnippet I use c-j to expand the snippets and move forward to the next placeholder: inoremap NL c-r=UltiSnips_ExpandSnippetOrJump()CR

Re: Spellcheck on Tex-Files

2012-10-01 Thread skeept
On Tuesday, January 15, 2008 2:35:06 PM UTC-5, (unknown) wrote: Hi! I am using the built in spellcheck for vim 7 and I want to use it with Latex-files. There are some fillips which are irritating me. So, for example if I have a table defined as: \begin{tabular}{c} ... The c in the

Re: Spellcheck on Tex-Files

2012-10-16 Thread skeept
On Tuesday, October 16, 2012 11:51:23 AM UTC-4, Charles Campbell wrote: skeept wrote: On Tuesday, January 15, 2008 2:35:06 PM UTC-5, (unknown) wrote: Hi! I am using the built in spellcheck for vim 7 and I want to use it with Latex-files. There are some fillips which are irritating

Re: Spellcheck on Tex-Files

2012-10-16 Thread skeept
On Tuesday, October 16, 2012 3:10:38 PM UTC-4, Charles Campbell wrote: I would gladly put the specific rules in my after/ftplugin, but unfortunately I don't know exactly what to put there. Could you please tell me what specifically I would put there or point me for some files with

Re: Spellcheck on Tex-Files

2012-11-01 Thread skeept
On Wednesday, October 31, 2012 5:45:57 PM UTC-4, DrChip wrote: xxx wrote: I would really appreciate a specific example on how to acomplish this. My last try is syn region texComment matchgroup=texStatement start='{tabular}{' end='}' \ contains=@NoSpell but it doesn't work... You

Re: Variable amount of snippet arguments in ultisnips plugin

2012-11-03 Thread skeept
On Friday, November 2, 2012 5:44:35 PM UTC-4, Marco wrote: Hi, I discovered the plugin ultisnips and like it a lot. However, I have problems setting up the snippets (BTW: I don't know python). I need a snippet that has two mandatory arguments and several optional ones (no more

Re: Spellcheck on Tex-Files

2012-11-03 Thread skeept
On Friday, November 2, 2012 9:50:51 AM UTC-4, Charles Campbell wrote: skeept wrote: Thank you very much! With the help of your plugin HILINKS and your last suggestion I was finally able to get it to work. The version I have in my config file (which I would not be able to write

Re: Variable amount of snippet arguments in ultisnips plugin

2012-11-03 Thread skeept
snippet def def def ${1:${VISUAL:foo}} {${2}} ${3:{${4}}} ${5:{${6}}} $0 endsnippet This does not work for me. The optional text is not surrounded by braces. It should work (it works for me), but you have to hit c-j twice (the first one corresponds to $3 and

Using autocommand to change scrolloff but it is changed in all buffers

2013-01-11 Thread skeept
Hi, I have the following autocommand set readonly files to autoread autocmd BufRead,BufNewFile * if readonly == 1 | setlocal autoread so=0 \ sbo+=ver,hor | endif I usually set so=2 in my vimrc. After I use vim help the value of so is changed in all buffers to be 0. I am sure that

Re: Using autocommand to change scrolloff but it is changed in all buffers

2013-01-11 Thread skeept
'scrolloff' is a global option, :setlocal can be used to change a global OK, I understand why this is the case now. I will remove that setting from the autocommand. Thank you. Jorge. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text

How to paste register over visual selection?

2013-01-11 Thread skeept
If I have something stored in a specific register say register z and select something visual then I try to paste over it with zp but this doesn't seem to do anything... Is there a easy way of accomplishing this? Regards, Jorge -- You received this message from the vim_use maillist. Do not

Re: How to paste register over visual selection?

2013-01-11 Thread skeept
On Friday, January 11, 2013 8:32:44 PM UTC-5, Tim Chase wrote: On 01/11/13 19:26, skeept wrote: If I have something stored in a specific register say register z and select something visual then I try to paste over it with zp but this doesn't seem to do anything

Re: How to paste register over visual selection?

2013-01-12 Thread skeept
On Friday, January 11, 2013 10:00:37 PM UTC-5, skeept wrote: On Friday, January 11, 2013 8:32:44 PM UTC-5, Tim Chase wrote: On 01/11/13 19:26, skeept wrote: If I have something stored in a specific register say register z and select something visual then I try to paste over

Re: How to paste register over visual selection?

2013-01-14 Thread skeept
On Saturday, January 12, 2013 2:46:34 PM UTC-5, David Fishburn wrote: On Jan 12, 2013, at 12:10 PM, skeept wrote: Would it be possible to define a mapping for p that, when in visual mode checks if I have specified a register (with a) and in that case pastes

What is a supposed to do in visual mode?

2013-01-14 Thread skeept
Hi I was reading some documentation and I came across |v_aquote| a extend highlighted area with a double In my case I start visual mode and type a but nothing seems to happen. Is this supposed to surround the visual selection with ? I tried this with vim -u NONE

Re: What is a supposed to do in visual mode?

2013-01-14 Thread skeept
On Monday, January 14, 2013 3:57:27 PM UTC-5, Jack Gates wrote: On Mon, Jan 14, 2013 at 3:55 PM, stosss wrote: On Mon, Jan 14, 2013 at 3:49 PM, skeept wrote: Hi I was reading some documentation and I came across |v_aquote| a extend highlighted area

Re: Mapping for switching windows

2013-01-26 Thread skeept
On Friday, January 25, 2013 5:57:30 PM UTC-5, Adolfo Olivera wrote: Hello List,              Does anyone have some examples on mappings to switch windows faster CTRL-W, h and CTRL-W, l ? I use the mappings nmap TAB C-W nmap TABTAB C-WC-W this makes the movement between windows very

viewing local buffer mappings?

2013-03-14 Thread skeept
What would be a good way of viewing the mappings that are only local to the current buffer? Regards, Jorge -- -- 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

Is there some copy of vim sources on github?

2013-03-20 Thread skeept
Hi, I recall someone having a(non-official) copy of the vim sources on github. This is useful for me because I can download the sources as a zip file. The network configurations of the place where I work don't allow to clone directly from googlecode (or from other places either). Could someone

correctly setting terminal in SunOS for vim

2013-04-02 Thread skeept
I am trying to use vim in a computer sunos computer uname -a: SunOS cmc01 5.10 Generic_142910-17 i86pc i386 i86pc At this point I was able to compile ncurses, screen and vim. I can only login to the machine from the work laptop. If ssh into the machine and use vim with the vim setting t_Co=256

Re: correctly setting terminal in SunOS for vim

2013-04-03 Thread skeept
Also, it's possible that screen is linked to the legacy termcap library on Solaris rather than /usr/lib/termcap (which sym-links to libcurses). You can check that using ldd. If it's linked to the legacy termcap library, you can't use TERMINFO to fix it. Thanks for the info. ldd screen

Re: correctly setting terminal in SunOS for vim

2013-04-03 Thread skeept
For anyone interested the way I solved this was the following: I noticed that the linking step when compiling was done with: cc -o screen screen.o ansi.o fileio.o mark.o misc.o resize.o socket.o search.o tty.o term.o window.o utmp.o loadav.o putenv.o help.o termcap.o input.o attacher.o pty.o

comammand to wipe buffer and save view

2013-04-09 Thread skeept
I have this command in my vimrc which I got from the internet: command! Kwbd let kwbd_bn= bufnr(%)|enew|exe bdel .kwbd_bn|unlet kwbd_bn this keeps the view but I would prefer to have another buffer from the list opened in the window instead of a new one. If no other buffer in the list then it

Re: Using same font looks bad in different computers / configurations

2013-04-17 Thread skeept
When using Vim in a console (be it Windows cmd.exe, Cygwin bash, the Linux text console, Mac Terminal, or any of a number of emulators displaying through X11 such as xterm, mlterm, konsole, gnome-terminal, etc., Vim has no knowledge of the font face, the terminal does it all.

Disable swap file for large files?

2013-08-20 Thread skeept
Is there a way of enabling swap files for files say less than 10Mb but disabling swap files for files or larger sizes? Thanks, Jorge -- -- 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

Calling a user function via a map cancels visual mode

2013-09-26 Thread skeept
I have the following function and mappings: function! JumpToNextNonMatching(direction) let flags = '' if a:direction == -1 let flags = flags . 'b' endif let ntimes = max([v:count, 1]) let i = 1 while i = ntimes let i = i + 1 let curr_line = getline('.') let spattern =

Re: Calling a user function via a map cancels visual mode

2013-09-28 Thread skeept
The : in your mappings is what ends visual mode. You can't avoid this, but you can go back into visual mode with the same region as you had, simply by adding 'gv' to the end of your mapping. :help gv Thanks Ben, I modified my function and mappings to the following: function!

Is there a setting to allow case insensitive completion on e: and :find?

2013-10-22 Thread skeept
When I use :e file I can use tab to give me completions matching the file name I am typing if it has the same case. Is there a setting to allow completion even if the the case does not match? Regards, Jorge -- -- You received this message from the vim_use maillist. Do not top-post! Type

Completing functions with # in the name

2014-04-24 Thread skeept
Hi all, is there a setting that I can use that will allow me to complete a function with # in the name? The current situation is as follows: Suppose I want to call a function called unite#custom#alias() If I type :call unite and hit tab multiple times then eventually matching completions

Re: Completing functions with # in the name

2014-04-25 Thread skeept
what version are you using, as with my version it works as expected :call unite# TAB will complete with functions that start unite# and not at the beginning of the list as in your case. Hi Chris, my current vim version is 7.4.265, compiled this morning. I can reproduce the behavior

Replicate TextPad feature (copy marked lines)

2015-05-28 Thread skeept
Hi All, I use vim as much as possible, but today I saw a coworker do something interesting with TextPad. He would use find with a string or regular expression. Then he can mark all matching lines. He can repeat the process with several strings. After that he would copy all the marked lines

Re: Gvim shows some letters with strike

2015-08-30 Thread skeept
On Thursday, August 27, 2015 at 5:14:29 AM UTC-6, Yukihiro Nakadaira wrote: On Thu, Aug 27, 2015 at 7:30 PM, skeept ske...@gmail.com wrote: When viewing the attached file with gvim I get the screenshot attached. I am using Terminus font but i think it is possible to see this with other

Replace c cast to c++ style cast

2016-02-26 Thread skeept
There is a switch in g++ that warns about c style casts. I will try to fix those but there are plenty in the project where I am working. Can someone recommend a function that would allow to do this in vim? Or outside vim, can anyone recommend a tool that would be useful in doing this? Thank

Re: Replace c cast to c++ style cast

2016-02-27 Thread skeept
Hi Dominique and Luc, thanks you for the advice. I agree that it is not a good idea to blindly replace everything. The most common case for me is probably static_cast so I would do that by default. > In lh-cpp (*), I have 3 mappings that transform C casts into C++ casts -- and > 6 more to

Re: Mapping to search for current line

2016-11-08 Thread skeept
> In your first attempt, should be . See :help key-notation. Thank you! -- -- 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

Mapping to search for current line

2016-11-07 Thread skeept
I tried the following mapping for searching for the current line: nnoremap gsl /=getline('.') unfortunately this actually searchs for the string I give it literally. So I defined instead the mapping nnoremap gsl /^R=getline('.')^M where ^R is obtained with typing ctrl-v followed by ctrl-r and

Re: vim8 can't be set as default program in win7 pro

2016-10-10 Thread skeept
> > Is this working for anyone? > > I had to re-install gvim7.4 and use that as the default program. I had exactly the same problem. I followed the instructions in the first answer in this link to solve the issue. It works for me now.

Re: Any way to make packadd load plugins in start when -u NONE or --noplugins are passed

2017-08-15 Thread skeept
On Monday, August 14, 2017 at 11:16:50 PM UTC-5, Tony Mechelynck wrote: > On Tue, Aug 15, 2017 at 5:44 AM, skeept wrote: > > I have some plugins in the locations: > > > > > > ~/.vim/pack/bundle/start > > ~/.vim/pack/bundle/opt > > > > if I start

Any way to make packadd load plugins in start when -u NONE or --noplugins are passed

2017-08-14 Thread skeept
I have some plugins in the locations: ~/.vim/pack/bundle/start ~/.vim/pack/bundle/opt if I start vim with vim --noplugins vim -u NONE then I can load plugins from opt but not from start. So if a plugin say, unimpaired is in ~/.vim/pack/bundle/opt I can load it with packadd unimpaired (and

Re: Any way to make packadd load plugins in start when -u NONE or --noplugins are passed

2017-12-17 Thread skeept
> > That is a reasonable request. If the "start" packages were not loaded > then :packadd can also look there. > When I saw these replies I thought, "well now I have some vacation days, this is a good time to try to go and implement this". But I see Bram already added it himself, so Thank

netwr open file in new background tab

2018-11-20 Thread skeept
When in netrw if I press 't' it will open the file in new tab. If I select multiple lines with visual mode and press 't' nothing will open. What would be a good mapping for opening a file in the background? Do some of the other file manager plugins do this already? Thanks! -- -- You received

vim crashes in windows when trying to execute python 3 command

2019-07-13 Thread skeept
I had to change computers recently. In my previous computer I was compiling vim with python to avoid this issue also, but I had no time to compile it yet so I downloaded a 64 bit build of vim for windows: MS-Windows 64-bit console version Included patches: 1-1649 Compiled by appveyor@APPVYR-WIN

Re: vim crashes in windows when trying to execute python 3 command

2019-07-14 Thread skeept
> Although nowhere stated explicitly, I believe Vims python implementation > is not exactly compatible with conda. Please try with a normal python > distribution. > > > Best, > Christian > -- > Man soll die lieben, über die man befielt, aber man soll es ihnen > nicht sagen. >

Re: automatization with powershell Start-Process

2020-01-17 Thread skeept
On Friday, January 17, 2020 at 4:01:09 PM UTC-6, Erhy wrote: > > Hallo! > My task is, to convert many files encoding in latin1 to UTF-8 > > I know the sequence which works: > > open a file > set set fileencoding=utf-8 > set bomb > wrtite to another file > > but there are problems with the