Re: Vim surprisingly slow?

2017-11-14 Thread Nazri Ramliy
On Sun, Nov 12, 2017 at 10:21 PM, Tim Chase wrote: > If I change the "exec" to an "echo", it's as fast as I expect. > > Any idea what might be making the exec so slow? It's vim writing to disk that makes it slow. I ran it on SSD it's fast, on a spindle disk it's slow. I

Re: highlight items in red that are past due

2017-07-10 Thread Nazri Ramliy
On Tue, Jul 11, 2017 at 1:28 AM, Robert wrote: > I have a specific tag "due:-MM-DD" in my files. > > Is it possible for a function to compare all the matches it finds to today's > date and if the "due:" is is past, to highlight it? Your question can be simplified to "How

Re: vim: toggle between tabs and toggle between buffers

2013-12-13 Thread Nazri Ramliy
On Fri, Dec 13, 2013 at 2:51 PM, ping song songpingem...@gmail.com wrote: I tried these pseudo-codes, but these are just 1 time thing and won't change over time...couldn't figure out a good way. Use the 'expr' argument to map to have a dynamic behavior: function NextBufferOrNextTab() if

Re: Vim Lua and such

2013-07-08 Thread Nazri Ramliy
On Mon, Jul 8, 2013 at 12:03 AM, meino.cra...@gmx.de wrote: The longest line of the dbfile is 71 characters long. So I think, at least this is no problem ;) It seems to be a problem with one of the plugins. Lua itsself read/interprets the dbfile without a second of delay, though. I am not

Re: redir and glob

2013-03-18 Thread Nazri Ramliy
On Tue, Mar 19, 2013 at 6:39 AM, FlashBurn rail.shafigu...@gmail.com wrote: Obviously there is something wrong with the way I use redir and glob, but I can't get my finger on it. Does anybody know what am I doing wrong? To redir to the s:output_file variable do this: redir = s:output_file

Re: unable to run cscope

2013-03-12 Thread Nazri Ramliy
On Tue, Mar 12, 2013 at 10:20 PM, FlashBurn rail.shafigu...@gmail.com wrote: When I do that, I'm getting the following error: E567: No cscope connections. I looked for help for E567 but it just shows me help for cs-find. Has anybody encountered this problem before and managed to fix it? You

map that cross windows

2013-02-27 Thread Nazri Ramliy
Hi, When there are multiple windows open I'd like to be able to place marks that allow me to jump across windows. Say in window 1 I place the mark 'a' on some line and on window 2 I place the mark 'b', then from window 2 I can go directly to window 1 at mark 'a' without issuing window jumping

Re: don't want to type _

2012-04-03 Thread Nazri Ramliy
On Wed, Apr 4, 2012 at 9:49 AM, sinbad sinbad.sin...@gmail.com wrote: imap does help, it's not my emotion, it requires shift to enter _ or -, i tend to use my left little finger to press shift and lately that finger is paining a lot, so i am finding ways to avoid shift as much as possible.

Re: VIM, TCL, and TAG

2010-10-27 Thread Nazri Ramliy
On Wed, Oct 27, 2010 at 12:59 AM, a b pppbig...@gmail.com wrote:   Hi, I'm having trouble using tag on tcl files in VIM. I have created the tag file in the base directory and it's there. I can do :tag tagname. But I can't use the ctrl-] shortcut to jump into tcl proc The problem is that

Re: problem with map in custom vimrc

2010-10-27 Thread Nazri Ramliy
On Mon, Oct 25, 2010 at 10:43 PM, A Chaudhuri acarc...@gmail.com wrote: I have a custom vimrc file with exactly this line: map F11 :call libcallnr(gvimfullscreen.dll, ToggleFullScreen, 0) cr When I call vim with -u pointed to the path of the custom vimrc, pressing F11 does not work.

Re: Toggle off end-id type of abbreviation in Vim (insert mode)

2010-10-27 Thread Nazri Ramliy
On Mon, Oct 25, 2010 at 12:36 AM, Scott Steele scottlste...@gmail.com wrote: Because of how the end-id type of abbreviation is defined, this problem doesn't exist for two-letter abbreviations, and I can still use them (e.g. aa for always, bc for because). The single letter abbreviations offer

Re: Vim 7.3d ready for beta testing

2010-08-05 Thread Nazri Ramliy
On Fri, Aug 6, 2010 at 6:22 AM, Libo Song ls...@google.com wrote: I have an issue in the new Vim7.3e BETA. It is probably not a bug. When I use :find, type some letters, then TAB gives me a list of choices. In 7.2, it shows, for example, the files under a dir. But in 7.3e, it shows the files

Re: Recover a deleted file from its swap file

2010-05-09 Thread Nazri Ramliy
Thank you all for your enlightening responses. My problem is gone (it's was a PEBKAC). Here's what happened: I edited a file, typed something in, then decided that the file is better saved in a different directory so I moved the file to that other directory. I typed more stuff into the file and

Recover a deleted file from its swap file

2010-05-06 Thread Nazri Ramliy
I have a vim swap file for a file that I have just deleted. It is possible to get vim to (sort of) recover the content of the file referred to by the swap file? Thanks in advance for any help. nazri. -- You received this message from the vim_use maillist. Do not top-post! Type your reply

Re: How to automatically open a window when using tags?

2010-04-04 Thread Nazri Ramliy
On Mon, Apr 5, 2010 at 5:50 AM, Tony Mechelynck antoine.mechely...@gmail.com wrote: Help windows all reuse the same window by design; but I suppose you could do something like        :noremap        C-]   C-WsC-] That's a lot more keys than you'd actually need: C-W] Would achieve

Re: How do I go to the next non-blank character in the current column?

2009-03-15 Thread Nazri Ramliy
On Mon, Mar 16, 2009 at 12:40 AM, jw232 lin...@gmail.com wrote: Going either up or down See :he /\%c e.g: /\%9c[^ ] searches for anything that is not a space in the 9th column nazri. --~--~-~--~~~---~--~~ You received this message from the vim_use

Re: Pattern question: search for the last line of the same pattern

2009-02-27 Thread Nazri Ramliy
On Sat, Feb 28, 2009 at 3:28 AM, Sean maxiangji...@gmail.com wrote: idle -- line 1 idle -- line 2 if   -- line 3 if   -- line 4 if   -- line 5 iff  -- line 6 ill  -- line 7 What I want is two numbers with the pattern starting with if:

Re: open a file with a different path than specified

2009-02-25 Thread Nazri Ramliy
On Wed, Feb 25, 2009 at 7:33 PM, Samuel Ferencik sferen...@gmail.com wrote: I will have to search on, I guess. In your original email you used BufReadPre autocommand. Try it with BufReadPost. It tried it here on my linux in my .vimrc: au BufReadPost test.txt e /tmp/test.txt And it seems

Re: Insert mode completion for sentences

2009-02-25 Thread Nazri Ramliy
On Thu, Feb 26, 2009 at 12:19 AM, Tuomas Pyyhtiä tuomas.pyyh...@iki.fi wrote: Thanks for the suggestion. Although abbreviations are great, they don't get the job done here as I would have to define and memorize 1 abbreviations and that seems highly impractical. It seems to be that I am not

Re: open a file with a different path than specified

2009-02-24 Thread Nazri Ramliy
On Tue, Feb 24, 2009 at 6:05 PM, Samuel Ferencik sferen...@gmail.com wrote: Basically, I am looking for a way (an autocmd, perhaps) to change the path to the file being opened - before it is opened. I can determine the physical path by an external (system) command. Suppose there is a call

Re: Insert mode completion for sentences

2009-02-24 Thread Nazri Ramliy
On Wed, Feb 25, 2009 at 2:59 AM, Tuomas Pyyhtiä tuomas.pyyh...@iki.fi wrote: Any pointers to a script with an auto-completion feature that finishes those whole sentences as well, or any other suggestions how I get this done? Thanks! Use abbreviations. he :abbreviations example:

Re: Profiling VIM and/or displaying current action

2009-02-22 Thread Nazri Ramliy
On Sun, Feb 22, 2009 at 11:59 PM, WL izaq...@gmail.com wrote: 1. Is there a way to profile VIM so that I could find the culprit script or .vimrc line? 2. Does VIM support a way to display the action its currently doing or give some kind of feedback that its still alive when performing time

Re: Bash-like tab completion

2009-02-09 Thread Nazri Ramliy
On Mon, Feb 9, 2009 at 3:52 PM, Per Thulin per.thu...@valentinewebsystems.se wrote: (1) Table like display of files... like in bash Try :find Ctrl+D (2) More careful suggestion of filenames so that I don't have to backspace... like in bash :help wildignore nazri.

Re: vim + unix shell + perl better than moder GUI IDEs like Eclipse or NetBeans ?

2008-12-18 Thread Nazri Ramliy
On Wed, Dec 17, 2008 at 10:39 PM, alex alessandro.bernardini.1...@gmail.com wrote: - Unix + vim are better than GUI-IDEs or not in your eyes ? Absolutely, if you know what you're doing and you're a touch typist - can type without looking at the keyboard, ever. Mind you that's quite a big `if'