[OT] vgrind or substitute for pretty printing on Ubuntu or Windows?

2023-03-17 Thread 'Suresh Govindachar' via vim_use

Sorry for an off-topic post.

Surprisingly, google search does not show the availability of vgrind for 
Ubuntu. The replacement I currently use is https://www.lerup.com/printfile/


Would appreciate any suggestions for getting vgrind or another 
substitute for pretty-printing on Ubuntu (20.04) or Windows.


--
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/c9b5c31d-d924-6528-3e19-b0318954ae63%40yahoo.com.


Re: List of changed lines

2022-12-02 Thread 'Suresh Govindachar' via vim_use

On 12/3/2022 6:42 AM, Salman Halim wrote:

On Thu, Dec 1, 2022 at 5:04 PM Salman Halim  wrote:


On Thu, Dec 1, 2022, 15:32 Owajigbanam Ogbuluijah
 wrote:

Does *:h changes*help?


I hadn't thought to look at that. That's interesting. I suspect
I'm going to just do the diff stuff similarly to Mundo (as
suggested by Christian) or Gundo because I need an exact list of
lines that were added or changed, but want to skip any that were
deleted.


[...]

Basically, I can't check the entire file after every save. I need to 
have some way of restricting the diff regions.


1) Vim can diff contents of buffers that are not associated with 
physical files. On detecting a save, from the change list get the lines 
of interest in the previous and current version; then appendingly-yank 
the regions of interest in the current buffer and likewise 
appendingly-yank the corresponding regions in the saved file; and then 
open a new buffer that compares the yanked stuff. (I don't mean do these 
steps manually, but via a script.)


2) I came late to this thread and do not know if comparing an entire 
file but restricting the display via folds meets your needs. If so, one 
could detect a save command and write a script that opens a new buffer 
that visually compares the previous and current versions with unchanged 
regions folded and the ability to jump to changes via ]c and [c.


--Suresh

--
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/9abf9794-77aa-bb96-37c3-71bce25a4635%40yahoo.com.


How to debug performance of gvim

2022-07-25 Thread 'Suresh Govindachar' via vim_use

Hello,

The gvim of (A) below is much faster than the gvim of (B) -- how would 
one debug this difference in performance?


Both (A and B) are from WSL 2 Ubuntu 20.04 inside Microsot Windows 11

A) $ sudo apt-get install vim-gtk3
   # VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 01 2022 09:16:32)
   # Included patches: 1-2269, 3612, 3625, 3669, 3741
   # Modified by team+...@tracker.debian.org #<-- what was done here?
   # Compiled by team+...@tracker.debian.org
   # Huge version with GTK3 GUI.
   $ gvim

B) # git clone ...; cd vim/src
   $ make clean
   $ make distclean
   $ ./configure --prefix=/opt/vim  --enable-gui --enable-gui=gtk3 
--with-features=huge

   $ make && make test
   $ sudo make install
   $ /opt/vim/bin/gvim

--Suresh

--
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/9209d428-7c9c-d30d-0585-01f4530692f4%40yahoo.com.


Dry run for 'make install`?

2022-07-25 Thread 'Suresh Govindachar' via vim_use



Is it possible to do a dry-run of `make install`? If so, how exactly? If 
not, are there other ways to find out what would happen on executing 
`make install`?


--Suresh

--
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ae65b020-93c3-b5a1-446a-9b3bf68d12b8%40yahoo.com.


Re: Building in WSL

2022-07-25 Thread 'Suresh Govindachar' via vim_use

On 7/25/2022 9:00 AM, 'Suresh Govindachar' via vim_use wrote:

On 7/25/2022 7:24 AM, 'Suresh Govindachar' via vim_use wrote:

On 7/24/2022 8:42 AM, 'Suresh Govindachar' via vim_use wrote:



Details are provided after the questions


Here's what already exists inside WSL 2 Ubuntu 20.04 inside Microsot 
Windows 11:


$  vi --version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 01 2022 09:16:32)
Included patches: 1-2269, 3612, 3625, 3669, 3741
Modified by team+...@tracker.debian.org
Compiled by team+...@tracker.debian.org
Huge version with GTK3 GUI.

type [vi|vim|gvim] shows "is hashed" /usr/bin/[vi|vim|gvim]
which is soft-linked as follows:
/usr/bin/[vi|vim|gvim] -> /etc/alternatives/[vi|vim|gvim] -> 
/usr/bin/vim.gtk3


What was done:



   "git clone; cd vim/src"


make clean
make distclean
./configure --prefix=/usr --enable-gui --enable-gui=gtk3 
--with-features=huge

make && make test


Questions:

1) How to get the one unsuccessful test to pass?
3) How to install so that the existing version disappears?

Details:

Executed 118 tests   in   0.642854 seconds
./vim -u NONE -U NONE --noplugin --not-a-term -S summarize.vim messages 
--cmd 'au SwapExists * let v:swapchoice = "e"' | LC_ALL=C LANG=C 
LANGUAGE=C awk '/Executing Test_/{match($0, "Executing 
Test_[^\\)]*\\)"); print substr($0, RSTART, RLENGTH) "\r"; fflush()}'


Test results:

Skipped:
     test_balloon_gui.vim: only works in the GUI
     Test_buffer_scheme(): only works on MS-Windows
     Test_job_start_windows(): only works on MS-Windows
     Test_job_with_list_args(): only works on MS-Windows
     Test_no_hang_windows(): only works on MS-Windows
     Test_fuzzy_completion_menu(): only works in the GUI
     Test_crypt_sodium(): sodium feature missing
     Test_head_only_4(): sodium feature missing
     Test_uncrypt_xchacha20(): sodium feature missing
     Test_uncrypt_xchacha20_2(): sodium feature missing
     Test_uncrypt_xchacha20_3_persistent_undo(): sodium feature missing
     Test_uncrypt_xchacha20_invalid(): sodium feature missing
     test_cscope.vim: cscope program not executable
     Test_edit_shift_bs(): only works on MS-Windows
     Test_mac_locale(): osxdarwin feature missing
     Test_browse(): browse feature missing
     Test_browsedir(): browse feature missing
     Test_executable_longname(): only works on MS-Windows
     Test_executable_windows_store_apps(): only works on MS-Windows
     Test_readdirex_sort(): de_DE collation is not available
     Test_resolve_win32(): only works on MS-Windows
     Test_gui_lowlevel_keyevent(): only works on MS-Windows
     Test_set_guifontset(): xfontset feature missing
     Test_iminsert_toggle(): only works in the GUI
     Test_ins_completeslash(): only works on MS-Windows
     Test_issue_7021(): only works on MS-Windows
     test_lua.vim: lua feature missing
     Test_mksession_winpos(): only works in the GUI
     Test_modeline_fails_always(): luadll option not supported
     test_mzscheme.vim: mzscheme feature missing
     Test_normal35_g_cmd4(): output of g< can't be tested currently
     Test_normal_changecase_turkish(): Turkish locale not available
     Test_opt_cdhome(): only works on non-Unix
     Test_bind_in_python(): python feature missing
     test_perl.vim: perl feature missing
     Test_popup_and_preview_autocommand(): python feature missing
     test_python2.vim: python feature missing
     test_python3.vim: python3 feature missing
     test_pyx2.vim: python feature missing
     test_pyx3.vim: python3 feature missing
     test_ruby.vim: ruby feature missing
     Test_shellslash(): shellslash option not supported
     test_shortpathname.vim: only works on MS-Windows
     test_sound.vim: sound feature missing
     Test_win32_symlink_dir(): only works on MS-Windows
     Test_system_with_shell_quote(): only works on MS-Windows
     Test_tabline_tabmenu(): only works in the GUI
     test_tcl.vim: tcl feature missing
     Test_term_mouse_middle_click_no_clipboard(): clipboard support 
works

     Test_terminal_eof_arg_win32_ctrl_z(): only works on MS-Windows
     Test_balloon_show(): only works in the GUI
     Test_browse(): browse feature missing
     Test_debugbreak(): only works on MS-Windows
     Test_luaeval(): lua feature missing
     Test_mzeval(): mzscheme feature missing
     Test_perleval(): perl feature missing
     Test_py3eval(): python3 feature missing
     Test_pyeval(): python feature missing
     Test_pyxeval(): python feature missing
     Test_rubyeval(): ruby feature missing
     Test_sound_playevent(): sound feature missing
     Test_sound_playfile(): sound feature missing
     Test_sound_stop(): sound fe

Re: Building in WSL

2022-07-25 Thread 'Suresh Govindachar' via vim_use

On 7/25/2022 7:24 AM, 'Suresh Govindachar' via vim_use wrote:

On 7/24/2022 8:42 AM, 'Suresh Govindachar' via vim_use wrote:


Details are provided after the questions pertaining to WSL 2 Ubuntu 
20.04 inside Microsot Windows 11:


   "git clone; cd vim/src"


make clean
make distclean
./configure --prefix=/usr --enable-gui --enable-gui=gtk3 
--with-features=huge

make && make test


Questions:

1) How to get the one unsuccessful test to pass?
3) How to install so that the existing version disappears?

Details:

Executed 118 tests   in   0.642854 seconds
../vim -u NONE -U NONE --noplugin --not-a-term -S summarize.vim messages 
--cmd 'au SwapExists * let v:swapchoice = "e"' | LC_ALL=C LANG=C 
LANGUAGE=C awk '/Executing Test_/{match($0, "Executing 
Test_[^\\)]*\\)"); print substr($0, RSTART, RLENGTH) "\r"; fflush()}'


Test results:

Skipped:
test_balloon_gui.vim: only works in the GUI
Test_buffer_scheme(): only works on MS-Windows
Test_job_start_windows(): only works on MS-Windows
Test_job_with_list_args(): only works on MS-Windows
Test_no_hang_windows(): only works on MS-Windows
Test_fuzzy_completion_menu(): only works in the GUI
Test_crypt_sodium(): sodium feature missing
Test_head_only_4(): sodium feature missing
Test_uncrypt_xchacha20(): sodium feature missing
Test_uncrypt_xchacha20_2(): sodium feature missing
Test_uncrypt_xchacha20_3_persistent_undo(): sodium feature missing
Test_uncrypt_xchacha20_invalid(): sodium feature missing
test_cscope.vim: cscope program not executable
Test_edit_shift_bs(): only works on MS-Windows
Test_mac_locale(): osxdarwin feature missing
Test_browse(): browse feature missing
Test_browsedir(): browse feature missing
Test_executable_longname(): only works on MS-Windows
Test_executable_windows_store_apps(): only works on MS-Windows
Test_readdirex_sort(): de_DE collation is not available
Test_resolve_win32(): only works on MS-Windows
Test_gui_lowlevel_keyevent(): only works on MS-Windows
Test_set_guifontset(): xfontset feature missing
Test_iminsert_toggle(): only works in the GUI
Test_ins_completeslash(): only works on MS-Windows
Test_issue_7021(): only works on MS-Windows
test_lua.vim: lua feature missing
Test_mksession_winpos(): only works in the GUI
Test_modeline_fails_always(): luadll option not supported
test_mzscheme.vim: mzscheme feature missing
Test_normal35_g_cmd4(): output of g< can't be tested currently
Test_normal_changecase_turkish(): Turkish locale not available
Test_opt_cdhome(): only works on non-Unix
Test_bind_in_python(): python feature missing
test_perl.vim: perl feature missing
Test_popup_and_preview_autocommand(): python feature missing
test_python2.vim: python feature missing
test_python3.vim: python3 feature missing
test_pyx2.vim: python feature missing
test_pyx3.vim: python3 feature missing
test_ruby.vim: ruby feature missing
Test_shellslash(): shellslash option not supported
test_shortpathname.vim: only works on MS-Windows
test_sound.vim: sound feature missing
Test_win32_symlink_dir(): only works on MS-Windows
Test_system_with_shell_quote(): only works on MS-Windows
Test_tabline_tabmenu(): only works in the GUI
test_tcl.vim: tcl feature missing
Test_term_mouse_middle_click_no_clipboard(): clipboard support 
works

Test_terminal_eof_arg_win32_ctrl_z(): only works on MS-Windows
Test_balloon_show(): only works in the GUI
Test_browse(): browse feature missing
Test_debugbreak(): only works on MS-Windows
Test_luaeval(): lua feature missing
Test_mzeval(): mzscheme feature missing
Test_perleval(): perl feature missing
Test_py3eval(): python3 feature missing
Test_pyeval(): python feature missing
Test_pyxeval(): python feature missing
Test_rubyeval(): ruby feature missing
Test_sound_playevent(): sound feature missing
Test_sound_playfile(): sound feature missing
Test_sound_stop(): sound feature missing
Test_test_gui_event(): only works in the GUI
Test_function_python(): python3 feature missing
test_windows_home.vim: only works on MS-Windows
Test_write_file_encoding(): only works on MS-Windows

---
Executed:  5168 Tests
 Skipped:67 Tests
  FAILED: 1 Tests


Failures:
From test_startup.vim:
Found errors in Test_geometry():
command line..script 
/opt/vim/src/testdir/runtest.vim[468]..function 
RunTheTest[44]..Test_geometry line 31: Expected '41' but got '-32768'
command line..script 
/opt/vim/sr

Building in WSL

2022-07-24 Thread 'Suresh Govindachar' via vim_use

Hello,

Details are provided after the questions pertaining to WSL 2 Ubuntu 
20.04 inside Microsot Windows 11:


  "git clone; cd vim/src"
  make distclean
  ./configure --prefix=/usr --enable-gui=gtk
  make && make test


Questions:

1) Build results in vim only -- no gui vim; how to build the gui vim?
2) 4 tests fail -- how to get a successful test?
3) How to install so that the existing version disappears?

Details:

What exists:
  OS: WSL 2 Ubuntu 20.04 inside Microsot Windows 11

  $  vi --version
  VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 01 2022 09:16:32)
  Included patches: 1-2269, 3612, 3625, 3669, 3741
  Modified by team+...@tracker.debian.org
  Compiled by team+...@tracker.debian.org
  Huge version with GTK3 GUI.

  type [vi|vim|gvim] shows "is hashed" /usr/bin/[vi|vim|gvim]
  which is soft-linked as follows:
  /usr/bin/[vi|vim|gvim] -> /etc/alternatives/[vi|vim|gvim] -> 
/usr/bin/vim.gtk3


What I did:

  sudo apt install git make clang libtool-bin libxt-dev libgtk-3-devfg
  git clone  https://github.com/vim/vim.git
  cd vim/src
  make clean
  make distclean
  ./configure --prefix=/usr --enable-gui=gtk
  make  && make test

---
Executed:  5169 Tests
 Skipped:67 Tests
  FAILED: 4 Tests


Failures:
From test_startup.vim:
Found errors in Test_geometry():
command line..script 
/opt/vim/src/testdir/runtest.vim[468]..function 
RunTheTest[44]..Test_geometry line 31: Expected '41' but got '0'
command line..script 
/opt/vim/src/testdir/runtest.vim[468]..function 
RunTheTest[44]..Test_geometry line 32: Expected '150' but got '0'
command line..script 
/opt/vim/src/testdir/runtest.vim[468]..function 
RunTheTest[44]..Test_geometry line 33: Expected '[41, 150]' but got '[0, 0]'

From test_vim9_builtin.vim:
Found errors in Test_remote_expr():
command line..script 
/opt/vim/src/testdir/runtest.vim[468]..function 
RunTheTest[44]..Test_remote_expr[7]..10_CheckDefExecAndScriptFailure[13]..10_CheckDefExecFailure 
line 7: ['remote_expr("", "")']: Expected 'E241: Unable to send to ' but 
got 'E449: Invalid expression received': ['remote_expr("", "")']
command line..script 
/opt/vim/src/testdir/runtest.vim[468]..function 
RunTheTest[44]..Test_remote_expr[7]..10_CheckDefExecAndScriptFailure[14]..10_CheckScriptFailure 
line 6: ['vim9script', 'remote_expr("", "")']: Expected 'E241: Unable to 
send to ' but got 'E449: Invalid expression received': ['vim9script', 
'remote_expr("", "")']

Found errors in Test_remote_foreground():
command line..script 
/opt/vim/src/testdir/runtest.vim[468]..function 
RunTheTest[44]..Test_remote_foreground line 8: command did not fail: 
remote_foreground("")

Found errors in Test_remote_send():
command line..script 
/opt/vim/src/testdir/runtest.vim[468]..function 
RunTheTest[44]..Test_remote_send line 6: command did not fail: 
remote_send("", "")


TEST FAILURE
make[1]: *** [Makefile:49: report] Error 1
make[1]: Leaving directory '/opt/vim/src/testdir'
make: *** [Makefile:2234: scripttests] Error 2

--Suresh




--
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/765b5b11-a2c8-99fb-cc5a-310c2b0545c9%40yahoo.com.


Ubuntu files in WSL to Windows gvim

2022-07-19 Thread 'Suresh Govindachar' via vim_use

Hello,

It is possible to work on files in Windows 11's WSL's Ubuntu sub-system 
using VSCode installed in Windows. It seems there is a "client-server" 
connection to enable VSCode to access filesL 
https://docs.microsoft.com/en-us/windows/wsl/tutorials/wsl-vscode .


Is it possible to use gvim installed on Windows to work on files inside 
WSL's Ubuntu? IF so, how exactly?


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/7d9545ab-e73c-4500-1d22-a03a4b6810d1%40yahoo.com.


Re: GVIM replace from clipbrard?

2021-12-27 Thread 'Suresh Govindachar' via vim_use


There  are three questions in-lined below.

On 12/27/2021 3:15 PM, Mike Schleif wrote:
On Mon, Dec 27, 2021 at 12:12 PM 'Paul' via vim_use 
 wrote:


On Sun, Dec 26, 2021 at 08:42:41AM -0800, Mike Schleif wrote:
>I use VIM on various *NIX platforms.
>
>I use GVIM on various MS Windows hosts.
>
>I often do this:
>1. Copy a string to the clipboard
>2. Visual mode select a string

How exactly do you do get into visual mode on the troublesome windows 
computer?



>3. :s///g
>4. Enter - replace all substrings
>
>This works delightfully everywhere - EXCEPT on Windows host!
>
>On that host, Ctrl-v pastes the entire Visual Mode selection -
NOT the
>originally copied string!
>

After issuing the command ":registers" do you see the copied text in 
some register? If so, which register?



>I'm sure that I've got something in that host's VIMRC; but, what
is it?

What do you find if you search in that vimrc file for "-v" (case 
in-sensitive)?



See :help CTRL-Q



Although I think I understand :help CTRL-Q, I fail to understand how 
that resolves the different behavior on one host.


Please, advise. Thank you.

~ Mike



--
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/98c3425e-9586-3d63-49ec-cd8187906b76%40yahoo.com.


Re: Seach and follow with keystrokes or a macro

2021-07-10 Thread 'Suresh Govindachar' via vim_use

On 7/10/2021 6:23 AM, Gua Chung Lim wrote:

Hi,

I have been using vim for years, I usually use @ macros. I have a question hard 
to explain. Assuming I have a text file ...


...


Certainly, I can assign 9lv10l~0 to a macro. But what if I have 1,000+ lines like this, I 
would never want to [manually] use the macro for every line containing 
"^keyword". Is there anyway to search and replace in a single colon command? 
Like ...

:%s/^keyword/do_keystrokes/g
or
:%s/^keyword/do_a_macro/g



Yes -- see :help :g or :help multi-repeat

--Suresh

--
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/72de0cba-ab79-b933-b944-573c1e3cf583%40yahoo.com.


Re: Pre-fold output of :r! command

2021-07-04 Thread 'Suresh Govindachar' via vim_use

On 7/4/2021 1:08 PM, Julius Hamilton wrote:
I would like to print the output of a shell command - a webpage dump - 
into a Vim buffer, and have those lines immediately folded, rather than 
a second step of selecting and folding them.


The command would look something like:

:r! w3m -dump url.com  FOLD

How would this be possible?


Tested the following for  being dir:

   exec(':r !') |normal zM

I would like to navigate my folds in an easier way than navigating to 
the blue line that appears, and unfolding them. Is it possible to get 
some kind of table of contents sidebar 


Doesn't the first line of the fold constitute a table of contents? I do 
not see a blue line -- instead, I see a + in the left most column and 
the rest of the line is the first line of the folded material.


where you can select a fold and 
open or close it? In my current configuration, I don't see an indicator 
that a fold is on a certain line, if that fold is currently unfolded.


For me, I know the rules being used for creating folds. So when I see 
unfolded material, I can see the rule for folding in the material and 
know that the material is unfolded material. Since I can readily see 
that the unfolded material is part of a fold, I do not need an 
additional, superfluous indicator that the material can be folded.




Thank you very much,
Julius



--
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/8e03f1a5-aecf-089c-17d0-94c95c1a8c60%40yahoo.com.


Re: How to delete from the current cursor position to a particular character on the same line?

2021-02-26 Thread 'Suresh Govindachar' via vim_use

On 2/26/2021 7:35 AM, Joseph Wulf wrote:

I've a common problem that I've never been able to find a solution for.
...
... how can I delete from the current cursor position ... to the first 
double-quote mark (") efficiently?


In normal mode, consider "deleting with motion": dt" or df"

--Suresh



--
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/76958eb7-7a89-96dc-fab3-54d6174cad3c%40yahoo.com.


Working with events in itchyny's calendar.vim

2020-12-29 Thread 'Suresh Govindachar' via vim_use

Hello,

Started looking at itchyny's caledar.vim.

First, I love the idea of "Vim as an application platform" -- this is 
similar to my "Editable User Interface (EUI, eui_vim) : The use of a 
text editor as the user interface to applications" 
https://www.vim.org/scripts/script.php?script_id=906


Please help resolve these issues:

1) The views shown with > stop at the clock -- help says that after the 
clock-view, there will be the event-view.


2) Pop-up that results from hitting E has the heading "3 PM" -- what is 
this, how can it be changed?


3) In the pop-up from hitting E and in the time-line of the day-view, 
the events are listed in order of time. However, in the list of events 
for the day, the events are listed in the order in which they were 
entered. How to fix this?


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/93287798-b305-00af-ed31-483d7636cea6%40yahoo.com.


Re: Markdown with LSD-hallucinations... :)

2020-11-30 Thread 'Suresh Govindachar' via vim_use



[after starting a thread concerning seeing strange colors for markdown 
files] On 11/30/2020 8:29 PM, tu...@posteo.de wrote:



> On 11/30 08:05, BPJ wrote:
>>
>> :setl syntax=
>>
>>   maybe? :-)
>>

..turns any syntax element red...



1) What does ":echo colors_name" report?
2) What happens with ":set ft="?

--
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/27d60908-eb89-3dd9-bcd7-d1581c03df5e%40yahoo.com.


Re: Happy birthday!

2020-11-18 Thread 'Suresh Govindachar' via vim_use



On 11/2/2020 10:19 AM, Bram Moolenaar wrote:


Hello Vim users,

29 years ago the very first version of Vim was built and distributed.
And Vim is more popular than ever before!  So, what's going on these days?


VIM 9 DEVELOPMENTS - MAKING VIM SCRIPT FASTER AND EASIER TO USE

This is a big project.  A lot of progress has been made, but it will
take time until we'll have "version 1.0".  

>
[...]>

RELIABILITY - MAKING SURE VIM NEVER FAILS

The functionality included with Vim for testing has been greatly
improved.  Besides unit testing, 

>
[...]


I dare to say that Vim is more reliable than ever before.  Thanks to
everybody who helped with that.

Happy Vimming!



Congratulations, Bram. Thank yous for your product.

--Suresh

--
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/a3569072-ba2f-7c6a-772d-b55f72366253%40yahoo.com.


Re: :term and terminal color escape codes

2019-10-04 Thread 'Suresh Govindachar' via vim_use

On 10/3/2019 9:17 AM, Christian Brabandt wrote:

Have you read the answers?


I assume you are referring to the answers at stackexchange -- I did try 
the three answers as specifically itemized (1,2,3) in  the original post 
(use of cat inside term was misleading since it did not allow scrolling 
and the tail end of the file did not have any escape codes.)


If you are referring to the responses on this mailing list, "On 
10/3/2019 8:43 AM, Gary Johnson" and "On 10/3/2019 8:15 AM, Marius 
Gedminas" each explained the modifications needed for my attempts 1 and 
3.  I did respond to the list indicating that Johnson's tweaks did work 
for me.  Gedminas's tweaks did work too.





Am 03.10.2019 um 17:05 schrieb 'Suresh Govindachar' via vim_use 
:

???
To view a file containing terminal color escape codes (file was created by 
redirecting the stdout and stderr into it), I tried the suggestions at 
https://vi.stackexchange.com/questions/485/can-vim-interpret-terminal-color-escape-codes
 -- but there was no difference compared to just opening the file and not doing 
any of the following:

1) Opening foo.txt and sourcing AnsiEscPlugin.vim
2) Opening foo.txt and sourcing ColorizerPlugin.vim
3) Starting vi and doing ":term less foo.txt"

Ubuntu 16.04, VIM version: 8.1.229, Colorscheme: ChocolateLiquor

So how can one view files with terminal color escape codes?

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/a5f487dd-06bd-c4cb-fbdd-08da67e8b56e%40yahoo.com.


Re: :term and terminal color escape codes

2019-10-03 Thread 'Suresh Govindachar' via vim_use

On 10/3/2019 8:43 AM, Gary Johnson wrote:

On 2019-10-03, 'Suresh Govindachar' via vim_use wrote:

To view a file containing terminal color escape codes (file was
created by redirecting the stdout and stderr into it), I tried the
suggestions at 
https://vi.stackexchange.com/questions/485/can-vim-interpret-terminal-color-escape-codes
-- but there was no difference compared to just opening the file and
not doing any of the following:

 1) Opening foo.txt and sourcing AnsiEscPlugin.vim
 2) Opening foo.txt and sourcing ColorizerPlugin.vim
 3) Starting vi and doing ":term less foo.txt"

Ubuntu 16.04, VIM version: 8.1.229, Colorscheme: ChocolateLiquor

So how can one view files with terminal color escape codes?


I don't know about 2 and 3, but after sourcing AnsiEscPlugin.vim,
you need to execute the :AnsiEsc command.  You will also need to
have AnsiEsc.vim in your autoload directory.  You may also need to
source, or just have in your plugin directory, the cecutil.vim
script.  I get errors from the :AnsiEsc command if I don't also
source cecutil.vim.


Worked!  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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/59b49379-345d-4094-9418-0be2ce7f914c%40yahoo.com.


:term and terminal color escape codes

2019-10-03 Thread 'Suresh Govindachar' via vim_use



To view a file containing terminal color escape codes (file was created 
by redirecting the stdout and stderr into it), I tried the suggestions 
at 
https://vi.stackexchange.com/questions/485/can-vim-interpret-terminal-color-escape-codes 
-- but there was no difference compared to just opening the file and not 
doing any of the following:


1) Opening foo.txt and sourcing AnsiEscPlugin.vim
2) Opening foo.txt and sourcing ColorizerPlugin.vim
3) Starting vi and doing ":term less foo.txt"

Ubuntu 16.04, VIM version: 8.1.229, Colorscheme: ChocolateLiquor

So how can one view files with terminal color escape codes?

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/dd3295cf-3c70-8649-2a93-77e35c587596%40yahoo.com.


Re: follow link on internet with vim

2019-07-09 Thread 'Suresh Govindachar' via vim_use

On 7/9/2019 5:56 AM, Mathieu Roux wrote:


Is it possible to follow a link with vim? for exemple, if my cursor is
on https://fr.wikipedia.org/wiki/Vim
i want to use my browser to go to this website.

By the same way, i can open a file with "gf" if my cursor is on the
file's name. But i don't know how to follow a link.



On Windows, when the following lines are in vimrc, the stuff below the 
cursor can be opened with the default browser by hitting "\x" (below, 
the "essential" characters that come after noremap need to be in the 
same line):


  "eXecute string below cursor
  nnoremap \x   :silent !start rundll32 url.dll,FileProtocolHandler 
  " eXecute string below cursor after prepending it with path to file
  nnoremap \xp  :silent !start rundll32 url.dll,FileProtocolHandler 
%:p:h/


--
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/099ec4e6-8f95-9000-56d0-b51e52922b6e%40yahoo.com.
For more options, visit https://groups.google.com/d/optout.


Re: Interloper vi

2018-08-01 Thread 'Suresh Govindachar' via vim_use
Resolved -- the interloper vi (i.e., what was executed when vi was 
called in bash) was a vi that bash had hashed rather than the vi that 
was currently in the PATH.


Extract from replies:  `which` does not report on what bash will 
execute;  `type` does.  Although `type` provides info on whether the 
command is hashed or not, `type -a` does not. `hash -r` clears the hash.


--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Interloper vi

2018-07-31 Thread 'Suresh Govindachar' via vim_use



Tried the suggestions from Tim and Tony, but to no avail:


$ echo $PATH

/lhome/me/tools/bin:/lhome/me/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/opt/rocm/bin:/lhome/me/g/bin

$ alias  vi
bash: alias: vi: not found

$ cd
$ find . -maxdepth 1 -type f |xargs  grep alias |  grep vi


$ type -a vi
vi is /lhome/me/tools/bin/vi
vi is /usr/bin/vi

$ ll  /lhome/me/tools/bin/vi
lrwxrwxrwx 1 hidden hidden 28 Jul 31 19:18 /lhome/me/tools/bin/vi 
-> /lhome/me/tools/bin/vim*


$ ll  /lhome/me/tools/bin/vim
-rwxr-xr-x 1 hidden hidden 2723248 Jul 31 18:53 
/lhome/me/tools/bin/vim*


$ ll  /usr/bin/vi
lrwxrwxrwx 1 root root 20 Jun 16  2017 /usr/bin/vi -> 
/etc/alternatives/vi*


$ ll   /etc/alternatives/vi
lrwxrwxrwx 1 root root 17 Jun 21  2017 /etc/alternatives/vi -> 
/usr/bin/vim.gtk3*


$ ll  /usr/bin/vim.gtk3
-rwxr-xr-x 1 root root 2927872 Nov 24  2016 /usr/bin/vim.gtk3*

$ which vi
/lhome/me/tools/bin/vi

Still `vi --version` shows the old version (and `vim --version` 
shows the latest version)


--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Interloper vi

2018-07-31 Thread 'Suresh Govindachar' via vim_use

Hello,

On Ubuntu 16.04, downloaded sources from github, and executed

cd vim
./configure --prefix=/lhome/me/tools
cd src
make
make install

ls /lhome/me/tools/bin does not show any vi.  So executed

cd /lhome/me/tools/bin
ln -s /lhome/me/tools/bin/vim vi

$ which vi
/lhome/me/tools/bin/vi

$ ll /lhome/me/tools/bin/vi
lrwxrwxrwx 1 hidden hidden 3 Jul 31 19:01 /lhome/me/tools/bin/vi -> 
/lhome/me/tools/bin/vim*


vim --version does show the expected version.
However, vi --version shows some old version!

Why is the old vi being executed even though `which vi` shows the newer 
one?  And how to get vi to execute the newly installed vim?


$ ll /usr/bin/vi
lrwxrwxrwx 1 root root 20 Jun 16  2017 /usr/bin/vi -> 
/etc/alternatives/vi*


$ ll /etc/alternatives/vi
lrwxrwxrwx 1 root root 17 Jun 21  2017 /etc/alternatives/vi -> 
/usr/bin/vim.gtk3*


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Searching mailing list archive

2018-03-11 Thread 'Suresh Govindachar' via vim_use


On vim-dev at 3/11/2018 8:04 AM, Bram Moolenaar wrote:

> Why I finally added the terminal window, ...
> I mentioned the reasons quite a while ago (July 2nd 2017).

I was unsuccessful at finding that post on google groups (which is 
really painful to search in), on nabble 
(http://vim.1045645.n5.nabble.com/) and on 
http://mm.iit.uni-miskolc.hu/Data/Supports/VIM/mail.html#archives


So (1) what's a good place to search the vim mailing list archives?
and (2) please provide a link to the post Bram cited.

Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


:tabdo -- get back to original tab

2017-04-09 Thread 'Suresh Govindachar' via vim_use

Hello,

Any suggestions for getting back to the starting tab after issuing the 
following command?:


  :tabdo windo set nocursorbind

Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to determine what a "bare-bones" vim is for a plugin

2017-03-17 Thread 'Suresh Govindachar' via vim_use


Hello,

Some plugin authors understandably require that any issue reports to be 
reproducible on a "bare-bones" vim.  But that plugin might be requiring 
a vim that has more capabilities than one started with "gvim -u none -U 
NONE".  As an example, fugitive.vim is inoperable in such a gvim, and 
silently so (no error messages).


So, in general, given a plugin, how does one determine what is the 
"bare-bones" vim it's author has assumed?


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fugitive.vim -- cursorbind

2017-03-16 Thread 'Suresh Govindachar' via vim_use

On 3/16/2017 5:42 AM, 'Suresh Govindachar' via vim_use wrote:

On 3/15/2017 11:19 PM, Christian Brabandt wrote:


Isn't that something for vim-fugitives issue tracker?


Where is the vim-fugitive issue tracker?


Found it -- although google bring up some tracker related to Debian, at 
the top of github pages is a horizontal list of items, the second item 
being "issue".


I did look for such a thing at fugitive's github site before the 
original post, but did not spot it at that time.


--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fugitive.vim -- cursorbind

2017-03-16 Thread 'Suresh Govindachar' via vim_use

On 3/15/2017 11:19 PM, Christian Brabandt wrote:


Isn't that something for vim-fugitives issue tracker?


Where is the vim-fugitive issue tracker?

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Fugitive.vim -- cursorbind

2017-03-15 Thread 'Suresh Govindachar' via vim_use

Hello,

Very grateful to Tim Pope for having created and shared fugitive.vim and 
Drew Neil for his teaching videos on fugitive and associated aspects of git.


I am finding that after a :Gdiff followed by :diffoff, cursorbind remains.

As per this link, an issue with cursorbind was addressed in August 2014 
https://github.com/tpope/vim-fugitive/pull/538/commits/8dcaff42c26f7c1ca4958737e6b9d8d9401d6b10?diff=split


I understand that :Gdiff needs to have cursorbind on.

But I see in the code that w:fugitive_diff_restore get assigned a value 
without checking if it already exists -- so if someone issues the 
command :Gdiff twice, and cursorbind was off before the first :Gdiff, 
would w:fugitive_diff_restore not have the incorrect value by getting 
assigned the state that cursorbind is on?


However, it could still be that I might be doing something wrong.  Any 
suggestions?  I can provide more information if necessary.


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Automatically prefixing argument to :find with *

2017-03-11 Thread 'Suresh Govindachar' via vim_use

On 3/11/2017 7:48 AM, 'Suresh Govindachar' via vim_use wrote:

On 3/9/2017 9:15 PM, 'Suresh Govindachar' via vim_use wrote:

Hello,

Most of my uses of :find family of commands involves starting the
argument with * and hitting tab to get completion.

Would like to avoid the need to explicitly type the prefix *.


There is a solution via custom-completion -- see below -- but am 
wondering if there might be a simpler one using :find directly:


function! SFC(ArgLead, CmdLine, CursorPos)

  let s:myarg  =  '*' . a:ArgLead . '*'
 "either one of the following lines works
 "let s:foo = globpath(, s:myarg, 0, 1)
  let s:foo = split(globpath(, s:myarg), "\n")
  return s:foo

endfunction

command! -nargs=* -complete=customlist,SFC TestFc :find 

--Suresh


--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Automatically prefixing argument to :find with *

2017-03-11 Thread 'Suresh Govindachar' via vim_use

On 3/9/2017 9:15 PM, 'Suresh Govindachar' via vim_use wrote:

Hello,

Most of my uses of :find family of commands involves starting the
argument with * and hitting tab to get completion.

Would like to avoid the need to explicitly type the prefix *.


Something's wrong in the following attempt:

function! StarFC(ArgLead, CmdLine, CursorPos)

  let s:myarg  =  '*' . a:ArgLead . '*'
  let s:foo = globpath(, s:myarg )
 "echo s:foo
  return s:foo

endfunction

command! -nargs=* -complete=custom,StarFC Tryf :find 

The echo shows expected results for

:call StarFC("fragment", "foo", 5)

But those results do not show up as matching suggestions for the following:

:Tryf fragment

What's the error?

Thanks,

--Suresh


--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Automatically prefixing argument to :find with *

2017-03-09 Thread 'Suresh Govindachar' via vim_use

Hello,

Most of my uses of :find family of commands involves starting the 
argument with * and hitting tab to get completion.


Would like to avoid the need to explicitly type the prefix *.

The following shows a "chicken and egg" issue:  for :Pf to be completed 
one needs the prefix *, but one is introducing :Pf just to avoid having 
to type the prefix *.


 command! -complete=file_in_path -nargs=* Pf :find *

I am able to write a custom completion function, but was wondering if 
there was a simpler solution.


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


define :A {arg-name} similar to :b +cmd {bufname}

2017-03-05 Thread 'Suresh Govindachar' via vim_use


Hello,

Note that although both ":buffer N" and ":buffer {bufname}" exist, 
:argument takes only numbers.


Just as we have ":b {bufname}", would like to have ":A {arg-file}".

Would be nice for :A to have all the features of :b but for the argument 
list -- features such as returning all files that containing the string 
{arg-file}, support for ":SA {arg-file}" and ":tab SA {arg-file}".


So how can a ":A" command be defined to do for the arg-list what :b does 
for the buffer list?


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


What is location list?

2017-03-05 Thread 'Suresh Govindachar' via vim_use


Hello,

Looked at :help for new-location-list, location-list-window, lopen etc. 
but am still clueless about what location list is.


No matter what I tried, :lopen always reports E776.

What exactly is "list of positions in files" and how can I end up with a 
non-empty set of locations?


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to map to ?

2017-03-05 Thread 'Suresh Govindachar' via vim_use

Hello,

How can  be made to work as ?  Following does not work 
for me:


   nnoremap  

Asking because I want to use  aka  to move among split 
buffers via:


nnoremap  w

while using  and  to navigate the jump-list.

Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reproducible issue reading large registry file

2016-05-19 Thread 'Suresh Govindachar' via vim_use


Steps to reproduce issue:

System:  Windows 7 64 bit

Gvim:  VIM - Vi IMproved 7.4 (2013 Aug 10,
 compiled Jan  2 2016 14:36:11)
   MS-Windows 32-bit GUI version with OLE support
   Included patches: 1-1023
   Compiled by mool@tororo
   Big version with GUI.

1) Export entire registry to file (in my case, about 500 MBytes)

2) gvim.exe -u NONE -U NONE --noplugin all_reg.reg

3) takes some time and then get message just before file shows up

4) Observe message before file shows up: "all_reg.reg" [Incomplete last 
line][unix format] 3912091 lines, 523120802 characters

Press ENTER or type command to continue

5) Hit enter

6) Observe contents of buffer:

ÿ[with two dots on the top of it]þ[funny looking p]W^@i^@n^@d^@o^@w^@s

[more such triples:  @^]

7) Open all_reg.reg in notepad++:  no issues, file opens very quickly, 
text is clearly seen.


Please look into this.

Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Vim can't recognize text file, but Notepad++ can

2016-05-16 Thread 'Suresh Govindachar' via vim_use

On 5/15/2016 8:10 PM, Eric Christopherson wrote:

On Sun, May 15, 2016, Tim Chase wrote:

On 2016-05-15 19:08, 'Suresh Govindachar' via vim_use wrote:

I exported the entire Windows registry -- resulting text file is
about 500 MBytes.  I can open this text file in Notepad++ -- but
opening it in Vim results in just tons of @ signs.

Does the content alternate between "@" signs and actual content
characters?




It sounds suspiciously like a UTF-16 file (Windows likes
to call this "Unicode") that Vim is reading yet somehow
misinterpreting.

When the file is opened, status message at bottom is:

"full path file name starting with \" [noeol][unix] 3912091L, 
523120802C


Vim can read small files exported from the registry without doing 
anything special.

Is your vimrc trying to set the 'encoding' or
'fileencoding' settings in an incongruous way?

You might try

   :e ++enc=utf16 file.txt
Waited for a very long time, nothing showed up in the buffer, and so 
aborted Ctrl-C.  Notepad++ opens the file quickly.

to force Vim to use utf16 to open the file.  It would also help to
know what vim outputs when you issue

   :set encoding? fileencodings?

encoding=latin1
fileencodings=ucs-bom


I'm actually thinking the @ signs are the ones used by Vim when there
isn't enough space on the screen to completely fit one or more logical
lines of text in the file. I wouldn't expect that to happen with a
registry *text* file, though.


--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Vim can't recognize text file, but Notepad++ can

2016-05-15 Thread 'Suresh Govindachar' via vim_use


Hello,

I exported the entire Windows registry -- resulting text file is about 
500 MBytes.  I can open this text file in Notepad++ -- but opening it in 
Vim results in just tons of @ signs.


What's happening?

Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Try this with release gvim74-1024.exe

2016-01-13 Thread 'Suresh Govindachar' via vim_use

On 1/13/2016 7:23 AM, Christian Brabandt wrote:
...

This has been changed by patch 7.4.129, previously getline(-1)

> returned -1 and that made your loop break.

(In case anyone else stumbles into this issue, prior to patch 7.4.129, 
getline(-1) returned 0 -- which is a bug, 
https://github.com/ignatenkobrain/vim-rpm/blob/master/7.4.129 ).


And my script was making use of this bug -- in more ways than one 
because just making the while loop exit did not result in folds.


Unfortunately, for the time-being, my quickfix is to modify 
autoload/notes.vim by introducing:


function! s:mygetline( num )
   if( a:num < 0 ) | return 0 | endif
   return getline( a:num )
endfunction

and replacing all other instances of getline() with mygetline().

Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Try this with release gvim74-1024.exe

2016-01-13 Thread 'Suresh Govindachar' via vim_use

On 1/12/2016 10:48 PM, Christian Brabandt wrote:
...


while(textm =~ '^\s*$')  " will always exit from while

>  ...

let textm = getline(cline-i)
endwhile

There is no exit condition, once cline-i is smaller than 1.
In that case getline returns an empty string,


Not according to the documentation for :help getline():

When {lnum} is smaller than 1 or bigger than the
number of lines in the buffer, an empty string is
returned.

That is the reason for the comment (will always exit from while).


which happens to match your "^\s*$" and therefore

> the loop happily continues.

--Suresh


--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Try this with release gvim74-1024.exe

2016-01-11 Thread 'Suresh Govindachar' via vim_use


On windows 7, 64 bit, using gvim74-1024.exe from vim.org site (version 
is 1023, not 1024!):


The attached archive has the file try_loading_me.txt with the modeline:

   # vim: set ft=notes syntax=off:

The archive also has the following vimfiles associated with filetype notes:

vimfiles/autoload/notes.vim
vimfiles/ftplugin/notes.vim
vimfiles/syntax/notes.vim

The vim and gvim in gvim74-1024.exe are unable to open the file 
try_loading_me.txt with vimfiles containing the above 3 files.


(No issues with Bram's release of Aug 10, 2013.)

Please look into this.

Thanks,

--Suresh





--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


expose_bug_in_vim_1023.7z
Description: Binary data


Something's broken in gvim74-1024.exe

2016-01-11 Thread 'Suresh Govindachar' via vim_use


Hello,

Just now, tried gvim74-1024.exe on Windows 7 64 bit. There is a 
particular text file that I have open in Vim always.


This latest vim (and gvim) just sits there unable to open this file.

I uninstalled this release and am now back at Bram's release of Aug 10, 
2013.


--Suresh


--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Vim with Eclipse for developing with Nvidia's NSight eclipse plugin on linux

2015-12-20 Thread 'Suresh Govindachar' via vim_use


Hello,

Anyone here using vim with eclipse for for developing with Nvidia's 
NSight eclipse plugin on linux?  If so, please point me to resources to 
help get started with such a setup.


Incidentally, I heard a presentation involving developing for Nvidia 
gpus in which the speaker said he switched from vim to emacs just 
because of the support emacs has for eclipse.  I intend to continue with 
vim no matter what, but have made this post in the hope that that 
speaker had not done good research into using vim with eclipse.


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Resolved]: Console vim beeps with file beeper.txt

2015-11-14 Thread 'Suresh Govindachar' via vim_use



On Sat, Nov 14, 2015 at 6:46 PM, 'Suresh Govindachar' via vim_use
<vim_use@googlegroups.com <mailto:vim_use@googlegroups.com>> wrote:

I copied some lines from a web-page and pasted them into console
vim. Now when I scroll (move cursor with k or l or do  or
), vim beeps.

To reproduce, use attached beeper.txt.  Also, try yanking the lines
in beeper.txt and pasting them -- I hear beeps during the paste.

What's causing this and how to get rid of it?


Additional background info: I am on Windows 7 64 bit, running console 
Vim inside ConEmu.


Thanks for the replies.  Indeed it was bullets at the beginning of each 
line.  Opening the file in gvim shows the bullets.


By the way, copying and pasting from FireFox (rather than from Internet 
Explorer) does not result in bullets being copied.


--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Console vim beeps with file beeper.txt

2015-11-14 Thread 'Suresh Govindachar' via vim_use


Hello,

I copied some lines from a web-page and pasted them into console vim. 
Now when I scroll (move cursor with k or l or do  or ), 
vim beeps.


To reproduce, use attached beeper.txt.  Also, try yanking the lines in 
beeper.txt and pasting them -- I hear beeps during the paste.


What's causing this and how to get rid of it?

Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

•The Cardini Steal
•Advanced Copper Silver
•Tenkai Pennies
•The Magical Filtration
•Advanced Copper & Silver
•Advanced Coins Through the Table
•David Roth's Purse & Glass
•Metamorphosis Change
•Milliken's Transposition
•Silver/Copper Extraction
•One-Coin Routine
•TV Surprise
•The Cardini Steal
•Advanced Copper Silver
•Tenkai Pennies
•The Magical Filtration
•Advanced Copper & Silver
•Advanced Coins Through the Table
•David Roth's Purse & Glass
•Metamorphosis Change
•Milliken's Transposition
•Silver/Copper Extraction
•One-Coin Routine
•TV Surprise
•The Cardini Steal
•Advanced Copper Silver
•Tenkai Pennies
•The Magical Filtration
•Advanced Copper & Silver
•Advanced Coins Through the Table
•David Roth's Purse & Glass
•Metamorphosis Change
•Milliken's Transposition
•Silver/Copper Extraction
•One-Coin Routine
•TV Surprise


Re: [ANN] Vim for Windows build, contains all 3rd party dependencies

2015-01-02 Thread 'Suresh Govindachar' via vim_use

On 1/2/2015 9:46 AM, Shiny Bling wrote:

On Friday, 2 January 2015 18:28:19 UTC+1, Дарио Ѓорѓевски  wrote:



The author claims that YouCompleteMe is tricky to get

 working under Windows: https://github.com/Valloric/YouCompleteMe


Are your compiles 32- or 64-bit?


32bit. Is there any real advantage having 64 build?


Not sure what is meant by contains all 3rd party dependencies -- are 
perl/python support via static linking?


I believe the dynamic perl/python support embedded into Vim needs to be 
the same as the dynamic perl/python library available in the system. 
The user of perl/python might have installed 64 bit version in order to 
support large data sizes.


No idea what will happen if version of perl/python provided via this 
complete build is different from version of perl/python in the system.


--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Spelunking C++ members and methods

2014-06-14 Thread 'Suresh Govindachar' via vim_use


Hello,

Consider the use of code spelunking tools such as :tags (ctags), 
:cscope, :Gtags or some other one on the following _skeletal_ code:


  /*  1 */   class A
  /*  2 */   {
  /*  3 */   int   x;
  /*  4 */   void  fun();
  /*  5 */   }
  /*  6 */   A::fun() { std::cout  x  \n; }
  /*  7 */
  /*  8 */   class B
  /*  9 */   {
  /* 10 */   int   x;
  /* 11 */   void  fun();
  /* 12 */   }
  /* 13 */   B::fun() { std::cout  x*x  \n; }
  /* 14 */
  /* 15 */   main()
  /* 16 */   {
  /* 17 */   A  u;
  /* 18 */   B* x  =  new B();
  /* 19 */
  /* 20 */   u.x =  3;
  /* 21 */   u.fun();
  /* 22 */
  /* 23 */   x-x =  5;
  /* 24 */   x-fun();
  /* 25 */   }


Can one find all of A's x and only A's x, getting hits on lines 3, 6, 
and 20?  If so, how exactly?


Can one find all of A's fun() and only A's fun(), getting hits on lines 
4, 6, and 21?  If so, how exactly?


Thanks,

--Suresh







--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can vim use 24 bit colorscheme in terminal?

2014-03-19 Thread Suresh Govindachar

On Mo, 17 Mär 2014, Григорий Третьяков wrote:



There is a terminal emulators that can use truecolor (24 bit), for
example konsole, and I wonder can vim use gui colorschemes in
terminal?


On Windows: can inside ConEmu -- in fact, colors for vim inside ConEmu 
look better than in gui gvim!  Color issues for vim inside ConEmu were 
fixed around late January 2014 -- early February 2014, and I have been 
using ConEmu since then;  vim.exe is Bram's build;  colorscheme is a 
tweak of calmar256_dark.


There is the minor annoyance of occasionally needing to hit Ctrl-L.

One other thing is that misspelled words are underlined and so don't 
look as good as in gvim (in gvim, they are shown with squiggles)  -- but 
perhaps this can be fixed by tweaking the colorscheme.


--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can vim use 24 bit colorscheme in terminal?

2014-03-19 Thread Suresh Govindachar


Oops!  Sorry, just realized that what I wrote below might not be what 
you are asking about -- the subject says 24 bit colorscheme and I am 
writing about 256 colors!


On 3/19/2014 9:59 PM, Suresh Govindachar wrote:

On Mo, 17 Mär 2014, Григорий Третьяков wrote:



There is a terminal emulators that can use truecolor (24 bit), for
example konsole, and I wonder can vim use gui colorschemes in
terminal?


On Windows: can inside ConEmu -- in fact, colors for vim inside ConEmu
look better than in gui gvim!  Color issues for vim inside ConEmu were
fixed around late January 2014 -- early February 2014, and I have been
using ConEmu since then;  vim.exe is Bram's build;  colorscheme is a
tweak of calmar256_dark.

There is the minor annoyance of occasionally needing to hit Ctrl-L.

One other thing is that misspelled words are underlined and so don't
look as good as in gvim (in gvim, they are shown with squiggles)  -- but
perhaps this can be fixed by tweaking the colorscheme.

--Suresh



--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Why doesn't vim pick up size info automatically?

2014-02-02 Thread Suresh Govindachar


Hello,

Although the my question below is formulated in terms of ConEmu, a 
similar issue exists with Windows cmd.exe.


When vim.exe is run in ConEmu, and the window is re-sized, the display 
gets messed up.  At this point, opening ConEmu's settings window, 
reading the values for the current number of columns and lines, and 
issuing the vim commands :set columns=number_from_conemu and :set 
lines=number_from_conemu, the display gets cleaned-up!


So the question is why isn't Vim picking up the size automatically from 
ConEmu?


Let me know if you need more information or need me to reformulate the 
question in terms of cmd.exe.


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Resolved]: Difference in Arrow keys: in buffer window vs in command window; and normal mode vs spell completion

2014-02-01 Thread Suresh Govindachar


In the context of using vim inside ConEmu64, I think I have resolved why 
the arrwo keys behaved differently depending on how vim was started.


Short answer:  The situations in which the arrow keys did not work had 
the mapping  :nnoremap ESC q:C-W_.  A fix that allows keeping this 
mapping while also allowing the arrow keys to work is to add a new 
mapping along the lines of :map esc*A k.  With this one mapping not 
only the arrow keys but the function keys start working too!


Although I came up with the fix, I don't really understand why the above 
fix works: for example,


  1) what the heck does esc have to do with the arrow and function 
keys?


  2) why does just one mapping to the up motion 'k' fix all the arrow 
and functions keys?


  3) after the fix is implemented, why does :verbose map esc*A show 
k*A and not just k?


Here's how I came up with the fix;  would appreciate any insight on the 
above questions (and question 4 below) from people more knowledgeable:


What helped in coming up with the fix was looking at the output of :set 
termcap which contains:


  t_ku Up^[O*A

Based on vague recollection of what I have seen on this mailing list, I 
figured the ^[ (or ctrl-[) part played the role of esc.  I also 
noticed that hitting the up key resulted in the command window with 
the entry *A.  I then remembered my mapping :nnoremap ESC q:C-W_.


I then decided to try :map esc*A k, and found that not only did the 
up start working, but also all the other arrow keys and the function 
keys.  Now for a fourth question:


  4) I believe esc is just '^[' (or ctrl-[) -- so, in the fix, why is 
there no mention of the 'O' of ^[O*A?


--Suresh






--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Bram's build of Big version without GUI

2014-02-01 Thread Suresh Govindachar


Hello,

1) Would like to understand why Bram's build of Big version without 
GUI does _not_ support termresponse.


2) Is it possible to build a non-GUI version for Windows with 
+termresponse?


3) And if one had a vim.exe that did support termresponse, would this 
help toward running vim inside ConEmu?


I did browse the topics

 :help xterm-codes
 :help t_RV
 :help termresponse

but do not understand what these things are all about.

Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Difference in Arrow keys: in buffer window vs in command window; and normal mode vs spell completion

2014-01-30 Thread Suresh Govindachar

On 1/30/2014 8:07 PM, Ben Fritz wrote:
 On Thursday, January 30, 2014 9:24:25 PM UTC-6, Suresh
 Govindachar wrote:

 Windows 7, 64 bit;  vim 7.4 Big version without GUI
 built by mool@tororo

 I have found that the arrow keys work differently depending on
 where/when they are used:

 1) Conemu, cmd shell:  normal mode, work as expected.
 2) Conemu, cmd shell:  Spelling menu gotten from C-Xs:
arrow keys do not work
 3) Conemu, bash shell:  arrow keys do not work in normal mode
 4) Conemu, bash shell:  arrow keys work in command window for
 selecting from options.

 The following is the incantations I have in my vimrc that
 pertain to the terminal -- the colors are beautiful:

   set term=xterm
   set t_Co=256
   let t_AB=\e[48;5;%dm
   let t_AF=\e[38;5;%dm
   set vb t_vb=

 Any idea what's going on?

 Perhaps one of your plugins creates mappings for the arrow keys?
 What do commands like these say?

:verbose map Left
:verbose map! Left

Should have mentioned in the original question that the above
return no mapping found.

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Difference in Arrow keys: in buffer window vs in command window; and normal mode vs spell completion

2014-01-30 Thread Suresh Govindachar


Oops!  Have to correct items (1, and 2) of the original post:

 On Thursday, January 30, 2014 9:24:25 PM UTC-6, Suresh
 Govindachar wrote:

 Windows 7, 64 bit;  vim 7.4 Big version without GUI
 built by mool@tororo

 I have found that the arrow keys work differently depending on
 where/when they are used:

 1) Conemu, cmd shell:  normal mode, work as expected.
 2) Conemu, cmd shell:  Spelling menu gotten from C-Xs:
arrow keys do not work

The preceding is _not_ correct -- I was misremembering my
experiments.  The actual conditions under which the results of (1
and 2) were seen was:

*) start conemu by typing at Windows Run prompt:
  c:\opt\conemu\conemu64.exe
*) Does not matter whether cmd shell is used or if bash shell
   is used via: C:\opt\msys\1.0\bin\bash.exe --rcfile 
c:\home\suresh\.bashrc

*) Start vim.exe via:

   c:\opt\vim\vim74\vim.exe
 -cur_console:h0
 -u vimrc_for_test_vim_in_conemu.vim
 --noplugin

   contents of vimrc used above is:

set runtimepath=./vimfiles,$VIMRUNTIME
set term=xterm
set t_Co=256
let t_AB=\e[48;5;%dm
let t_AF=\e[38;5;%dm
colorscheme calmar256_dark_new
   colorscheme rastafari
set laststatus=2
set statusline=%%f%h%m%r%=%{strftime(\%I:%M:%S\ \%p,\ %a\ %b\ 
%d,\ %Y\)}\ %{ff}\ %l,%c%V\ %P%{MySetMode()}

set modeline

function! MySetMode()
   let b:my_mode = mode()
   return ''
endfunction
finish

Under the above conditions, the results of (1, 2) are seen.  Note
that for my usual usage of vim (with all my plugins sourced),
:verbose map up? returns no mapping found.

Note in the above the setting of term to be xterm.  This is in
contrast to what Grégory Pakosz wrote around September 24, 2013,
in a post titled Vim + colors inside ConEmu under windows.  (see
https://groups.google.com/forum/#!msg/vim_use/WpJGscUUZNU/9RD8AzeYAlMJ):

| However, set term=xterm breaks arrow keys (and also keypad).

My experiment described above contradicts the preceding -- at
least for the use of arrow keys in normal mode.

Grégory Pakosz continues with the following:

| As Vim's documentation mentions, Vim under Windows doesn't
| really understand term being set to something else than
| 'win32'.

Would appreciate any elaboration on the above.

 3) Conemu, bash shell:  arrow keys do not work in normal mode
 4) Conemu, bash shell:  arrow keys work in command window for
 selecting from options.

 The following is the incantations I have in my vimrc that
 pertain to the terminal -- the colors are beautiful:

   set term=xterm
   set t_Co=256
   let t_AB=\e[48;5;%dm
   let t_AF=\e[38;5;%dm
   set vb t_vb=

 Any idea what's going on?

 Perhaps one of your plugins creates mappings for the arrow keys?
 What do commands like these say?

:verbose map Left
:verbose map! Left

 Should have mentioned in the original question that the above
 return no mapping found.


--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: NOlazyredraw and need for Ctrl-l (or :redraw!): provide any clue for bug with vim inside ConEmu?

2014-01-16 Thread Suresh Govindachar

On 1/16/2014 10:24 AM, Maximus ConEmu wrote:
 On Thursday, January 16, 2014 10:05:58 AM UTC+4, Suresh Govindachar 
wrote:


 When running vim inside ConEmu, although lazyredraw is OFF
 (nolazydraw),

 I still find the need to hit Ctrl-L or execute :redraw!
 (with shriek) to clear up the screen that has been messed-up by
 some bug with using Vim inside ConEmu (
 http://code.google.com/p/conemu-maximus5/issues/detail?id=1336 ).

 Issue 1336 is still awaiting yours confirmation. You have not
 received notification?  There was some fixes in ConEmu ANSI
 processor.

Yesterday, I tried 140114a but the issue is still present.  Over
the weekend, I plan to provide a more detailed response at the
bug-report site.

Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


NOlazyredraw and need for Ctrl-l (or :redraw!): provide any clue for bug with vim inside ConEmu?

2014-01-15 Thread Suresh Govindachar


Hello,

When running vim inside ConEmu, although lazyredraw is OFF (nolazydraw), 
I still find the need to hit Ctrl-L or execute :redraw! (with 
shriek) to clear up the screen that has been messed-up by some bug with 
using Vim inside ConEmu ( 
http://code.google.com/p/conemu-maximus5/issues/detail?id=1336 ).


Does the observation of the need for Ctrl-L even with NOlazyredraw 
provide a clue as to what bug with using vim inside ConEmu might be?


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


A tip or an update for doc/editing.txt *current-directory*

2013-11-18 Thread Suresh Govindachar


Hello,

Recently, I was unsuccessful at figuring out how to achieve pushd and 
popd functionality for Vim's current-directory.  All I needed was one 
level of pushd/popd.  Turns out vim does support this:



$ diff -c /c/tmp/editing.txt  /c/opt/vim/vim74/doc/editing.txt
*** /c/tmp/editing.txt  Mon Nov 18 19:05:10 2013
--- /c/opt/vim/vim74/doc/editing.txtSat Aug 10 05:31:20 2013
***
*** 1317,1326 
  will be written, because you gave a new file name and did not refer to a
  filename before the :cd.

-   *pushd* *popd*
- The combination of |:cd| and |:cd-| act pushd and popd commands -- but for
- a single level of directory changes.
-

==
  8. Editing binary files 
*edit-binary*


--- 1317,1322 


--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Missing drive indicator, alien '=', missing ':' (gVim on Windows)

2013-11-10 Thread Suresh Govindachar


Hello,

I am on Windows 7.  Some of the buffer names in gVim are missing the 
drive inidcator ('c:'), and the gVim window title has a alien character 
'=' and is missing the ':' after the drive letter.  For example:


File: c:\opt\vim\700_vimrc
Buffer name:\opt\vim\700_vimrc
Window title: 700_vimrc = (c\opt\vim) - GVIM

I tried reproducing the effect with gVim -u NONE -U NONE, but failed.

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 10 2013 14:38:33)
MS-Windows 32-bit GUI version with OLE support
Compiled by mool@tororo

Any thoughts on what's happening?

Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Missing drive indicator, alien '=', missing ':' (gVim on Windows)

2013-11-10 Thread Suresh Govindachar

On 11/10/2013 12:03 PM, Suresh Govindachar wrote:
 Hello,

 I am on Windows 7.  Some of the buffer names in gVim are missing
 the drive inidcator ('c:'), and the gVim window title has a alien
 character '=' and is missing the ':' after the drive letter.  For
 example:

The '=' in the Window title is OK as per :help 'title' -- the file
is read-only.

  File: c:\opt\vim\700_vimrc
  Buffer name:\opt\vim\700_vimrc
  Window title: 700_vimrc = (c\opt\vim) - GVIM

 I tried reproducing the effect with gVim -u NONE -U NONE, but
 failed.

  VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 10 2013 14:38:33)
  MS-Windows 32-bit GUI version with OLE support
  Compiled by mool@tororo

 Any thoughts on what's happening?


--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Missing drive indicator, alien '=', missing ':' (gVim on Windows)

2013-11-10 Thread Suresh Govindachar


 On 11/10/2013 12:28 PM, Suresh Govindachar wrote:
 On 11/10/2013 12:03 PM, Suresh Govindachar wrote:
 Hello,

 I am on Windows 7.  Some of the buffer names in gVim are missing
 the drive inidcator ('c:'), and the gVim window title has a alien
 character '=' and is missing the ':' after the drive letter.  For
 example:

 The '=' in the Window title is OK as per :help 'title' -- the file
 is read-only.

  File: c:\opt\vim\700_vimrc
  Buffer name:\opt\vim\700_vimrc
  Window title: 700_vimrc = (c\opt\vim) - GVIM

It could be I did not see properly (weak eyes, transparent title
color) -- I did a :bw! of the 700_vimrc buffer, and now cannot
find another example of a window title that is missing ':'.

But the issue of the buffer name missing the 'c:' is valid.

 I tried reproducing the effect with gVim -u NONE -U NONE, but
 failed.

  VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 10 2013 14:38:33)
  MS-Windows 32-bit GUI version with OLE support
  Compiled by mool@tororo

 Any thoughts on what's happening?




--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Bulk] Re: Missing drive indicator, alien '=', missing ':' (gVim on Windows)

2013-11-10 Thread Suresh Govindachar


To recap, the '=' in the title is a feature (:help 'title'),
the missing ':' in the title is most likely misreporting on
my part, and the missing drive indicator in buffer name
is yet another feature.

There was still the issue of me seeing two buffers for the
same file, one buffer with the drive letter and the other
without the drive letter.

Figured out why I am seeing multiple buffers for the same file.

It is because in addition to having opened the file via it's path, I 
have also opened the file via a link (Windows mklink /D command) to it.


And it looks like vim does not realize that the two paths are to the 
same file, and so is creates two buffers.


I used mklink command to create a directory link to a directory 
containing the file.  The actual file and the link are on two

different drives.  The buffer for the path involving the c: drive
is missing the drive indicator, and the path involving the d:
drive has the drive indicator (if the local directory is not
already in the upper portion of the path).

I assume the same situation (multiple buffers for the same file opened
via links) is present on unix too.

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Lot of work to recreate a window's title!

2013-11-10 Thread Suresh Govindachar


Hello,

I recently found out that it is a lot of work to recreate the title of a 
gVim window -- what I came up with in this script works for many but not 
all buffers:  http://www.perlmonks.org/?node_id=1061881 .  And what I do 
is an incomplete determination of the window's title (eg, does not 
address the [+=-] piece, and hasn't been tested with remote buffers).


If there isn't a simpler, robust way to determine the vim window's 
title, I would like to request that the a routine gettitle() be provided.


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Any tools for jumping between Gvim and cmd window?

2013-11-09 Thread Suresh Govindachar


Came up with this tool:  http://www.perlmonks.org/?node_id=1061881

Enjoy!

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Set complete option to ignore buffers for un-mounted remote drives

2013-11-08 Thread Suresh Govindachar


Hello,

Often, when I try i_CTRL-N, vim blocks out for a long time trying to 
access buffers over the network.  This is because I have buffers for 
files such as \\machine_name\c\path\to\file\on\ms_windows\computer, and 
\\machine_name is currently unavailable.


How can I set the complete option to avoid buffers that start with 
\\machine_name\ (buffers for files on un-mounted remote drives)?


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Any tools for jumping between Gvim and cmd window?

2013-11-03 Thread Suresh Govindachar


Hello,

On Windows (7 64 bit), anyone have a visual basic script or some other 
mechanism to achieve the following:


  1) Ctrl-Z in gvim shifts focus to the input prompt
 on a pre-existing cmd window.

  2) Then, in that cmd window, issuing some command, say,
 done, results in focus being brought back to
 gvim with the cursor at the place where it was when
 Ctrl-Z was typed.

So it's just two scripts, one to switch focus from gvim to cmd-window, 
and the other to shift focus in the reverse direction.  With the 
appropriate script being triggered by Ctrl-Z in gvim or by done in 
cmd-window.


If such a tool does not already exist:

Here's what I would do:  In the past, I have successfully written and 
used a perl script that examined the system tray for one particular 
application and killed it if the application was found.  I suspect that 
code could be extended to examine all windows on the desktop, and to 
turn focus on for any particular window.  I might need to run the script 
once from gvim and once from the cmd-window so that the script could 
record the Window-ID of the two applications.  Then Ctrl-Z would be 
mapped to call that script to switch to the cmd-window, and done would 
be created to call that script to switch to the gvim window.


Any thoughts on the above approach?

(The preceding is different from the sequence of operations for OutlookVim.)

Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


What are the steps to get 256 colors in vim inside ConEmu?

2013-11-02 Thread Suresh Govindachar


Hello,

I came across this thread from January on getting 256 colors in Vim on 
Windows inside ConEmu: 
https://groups.google.com/forum/#!topic/vim_dev/0H0qM1LJfuk/discussion


Searching for ConEmu in http://vim.wikia.com/ got no hits.

So is anyone successfully using vim in ConEmu with 256 colors?  If so, 
what are the steps to make this happen?


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Specifying a count to a normal mode map

2013-10-27 Thread Suresh Govindachar

Hello,

After a sequence of keys has been nmaped, one can effectively type the 
sequence as though it were a normal mode command.


But how can one specify a count to a key sequence that is a nmap? Here's 
what I mean:


function! CountTest( the_count )
 echo Count is: [ . a:the_count . ]
endfunction

:com!  -count=1 Lines  call CountTest( count )
:nnoremap buffer SPACE  :Lines

Now hitting the space bar results in :Lines whose output Count is [1].

However, hitting 5space does _not_ result in :5Lines but in 
something weird -- :.,.+4Lines whose output is some strange number.


Question 1:  What needs to be done so that hitting 5space will 
result in :5Lines?


Question 2:  Also, is it possible to get the desired effect without 
having to define the command :Lines, i.e., something like:


 :nnoremap buffer SPACE -count=1 :call CountTest( count )

Thanks,

--Suresh


--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Using substitute inside a map: v:val not recognized

2013-10-26 Thread Suresh Govindachar

Hello,

How would one use substitute inside a map?

The following fails with error:  E121: Undefined variable: v:val

  :let mylist=['c:\foo\hoo\boo', 'c:\foo2\boo2']
  :echo mylist
  :call map(mylist, substitute(v:val, 'o', 'p', 'g'))

Thanks,

--Suresh



--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Control of font via syntax highlighting

2013-10-21 Thread Suresh Govindachar


Responding to both Christian Brabandt and Tony Mechelynck:

On 10/21/2013 5:09 AM, Tony Mechelynck wrote:
 On 21/10/13 12:18, Christian Brabandt wrote:
 On Mon, October 21, 2013 04:22, Suresh Govindachar wrote:

 Hello,

 Syntax highlighting allows controlling not only the color of the
 font but also whether it is bold, italicized, or underlined (to
 see this, set file type to html and write lines bracketed by no
 tag, btag/b, itag/i, and utag/u).

 Based on the last para of :help highlight-font, I think it is
 not possible to use different font sizes in different parts of
 the document, but I thought I would ask anyway:

 Question:  is it possible to use different sized fonts in
 different parts of the document?

 It is possible, but it looks awkward and Vim might behave
 confusing.

Good that it is possible -- but how exactly (I am on Windows)?  The
awkwardness and other issues might be OK for my purposes.

 No, it is not possible, or at least, it is strongly discouraged.
 This is the last paragraph under :help highligh-font:

 All fonts used, except for Menu and Tooltip, should be of the
 same character size as the default font! Otherwise redrawing
 problems will occur.

 The Menu and Tooltip highlight groups are only supported by
 the Motif and Athena GUIs.

 In GTK2, what I see is the following:
 - Setting the font= attribute for the Normal group sets 'guifont'
   and vice-versa, this setting the font for _all_ edit text;
 - Setting a font= attribute in any other group has no effect.

 I'm less sure of how other GUI flavours react to it, but anyway
 (with the exception of Menu and Tooltip in Motif and Athena) I
 think the conclusion is that you shouldn't do it.

Does the conclusion assume that one wants to continue using Vim
as an editor while using different sized fonts?  My purpose is just
to have Vim create a display, with different parts of the display
being of different font sizes.

--Suresh






--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Control of font via syntax highlighting

2013-10-20 Thread Suresh Govindachar


Hello,

Syntax highlighting allows controlling not only the color of the font 
but also whether it is bold, italicized, or underlined (to see this, set 
file type to html and write lines bracketed by no tag, btag/b, 
itag/i, and utag/u).


Based on the last para of :help highlight-font, I think it is not 
possible to use different font sizes in different parts of the document, 
but I thought I would ask anyway:


Question:  is it possible to use different sized fonts in different 
parts of the document?


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


ESC key stopped working -- any alternate for menuless vim to get to normal mode?

2013-10-07 Thread Suresh Govindachar


Hello,

For some unknown reason, my ESC key does not work -- neither on the 
laptop keyboard nor on an external keyboard.  Is there an alternate to 
make VIM (without any menus) get back to normal mode?


Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Vim + RSS + MAIL

2013-08-24 Thread Suresh Govindachar

On 8/23/2013 11:01 PM, Alex K wrote:

Hello!
Every day I look through a lot of news via RSS and mail subscribe. Would like 
to have functionality to load them in VIM directly, read and quickly insert 
some of them into my vimwiki notes. Also it would be great to do this with my 
mail mesages. Is there any plugins to do that? I am ready to create myself but 
need some advices:
- Is there any compatible with VIM/python free library to download/parse 
rss/mail?
- Can you give some link to helpful materials about this issue?

Thank you!



Here's a mail suite, not in python but in perl 
http://www.vim.org/scripts/script.php?script_id=1052 Browsing its code 
might give you some ideas about what to do -- or what not to do!


Caveat:  I developed it and used it for several years on 32 bit Windows 
XP;  it would work on linux too with 32 bit perl modules. However, I 
have not had time to get it to work with 64 bit perl.


--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Is it possible to redirect the output of shell command to QuickFix?

2013-07-27 Thread Suresh Govindachar

On 7/27/2013 7:27 PM, Dahong Tang wrote:

Hi,

The command :%! ls -al redirects the output of the shell command, in this case 
ls -al, to the current buffer. But instead of the current buffer, I want to 
redirect the output of shell command to QuickFix. Does anyone know if this is 
possible? If so, can you please give an example? Thanks!



Browsing :help quickfix and using some other info, the following is 
likely to do what you are seeking to do:


  :cexpr system('ls -al')  |  copen

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Why doesn't the syntax file load the function from the ftplugin file?

2013-06-16 Thread Suresh Govindachar


Hello,

The file vimfiles/ftplugin/notes.vim starts as follows:

 if exists(b:did_ftplugin)
   finish
 endif
 let b:did_ftplugin = 1   Don't load another plugin for this buffer

 nmap buffer  localleaderu Yp$x^v$r-

 nmap buffer F5  :syn off\|syn oncr

 setlocal spell
 setlocal smartindent
 setlocal textwidth=80
 setlocal complete=.

 if !exists(*s:MyNotesFoldLevel)
 function! MyNotesFoldLevel(acline)

let cline = a:acline
omitting rest of the function
 endfunction
 endif
 omitting rest of the stuff in this file

The file vimfiles/syntax/notes.vim starts as follows:

 syn clear
 if !exists(*s:MyNotesFoldLevel)
   ru ftplugin/notes.vim
 endif

 %g/^/let i = line('.') |
\ let level = MyNotesFoldLevel(i) |
omitting rest of the stuff in this file

But the very first time a notes file is loaded, I get the error message:

 Error detected while processing C:\opt\vim\vimfiles\syntax\notes.vim:
 line   35:
 E117: Unknown function: MyNotesFoldLevel
 E15: Invalid expression: MyNotesFoldLevel(i) | omitting rest of 
the stuff


After that, loading the same or different notes file is OK.

How to fix the error message for the very first load?

Thanks,

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Why doesn't the syntax file load the function from the ftplugin file?

2013-06-16 Thread Suresh Govindachar


  AW On 6/16/2013 10:42 AM, Andy Wokula wrote:
  CB On 6/16/2013 11:36 AM, Christian Brabandt wrote:

   On So, 16 Jun 2013, Suresh Govindachar wrote:
  
   The file vimfiles/ftplugin/notes.vim starts as follows:
  
if exists(b:did_ftplugin)
  finish
endif
let b:did_ftplugin = 1   Don't load another plugin for this 
buffer

  
nmap buffer  localleaderu Yp$x^v$r-
  
nmap buffer F5  :syn off\|syn oncr
  
setlocal spell
setlocal smartindent
setlocal textwidth=80
setlocal complete=.
  
if !exists(*s:MyNotesFoldLevel)
function! MyNotesFoldLevel(acline)
  
   let cline = a:acline
   omitting rest of the function
endfunction
endif
omitting rest of the stuff in this file
  
   The file vimfiles/syntax/notes.vim starts as follows:
  
syn clear
if !exists(*s:MyNotesFoldLevel)
  ru ftplugin/notes.vim
endif
  
%g/^/let i = line('.') |
   \ let level = MyNotesFoldLevel(i) |
   omitting rest of the stuff in this file
  
   But the very first time a notes file is loaded, I get the error 
message:

  
Error detected while processing 
C:\opt\vim\vimfiles\syntax\notes.vim:

line   35:
E117: Unknown function: MyNotesFoldLevel
E15: Invalid expression: MyNotesFoldLevel(i) | omitting rest
   of the stuff
  
   After that, loading the same or different notes file is OK.
  
   How to fix the error message for the very first load?
  

  AW I'd define functions in an autoload script:
  AWvimfiles\autoload\mynotes.vim
  AW
  AW This script should contain a function
  AW function! mynotes#FoldLevel(acline)
  AW ...
  AW endfunction
  AW
  AW The script will only be loaded once, when invoking one of the
  AW script's functions for the first time.

  CB In your .vimrc, put the filetype plugin on command /before/
  CB the :syntax on command. This makes sure, the filetype plugin
  CB  is loaded before the syntax script.

I saw AW's suggestion before I saw CB's, and implemented the scheme 
based on autoload.  It works as expected.


Thanks,

--Suresh


--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Why doesn't the syntax file load the function from the ftplugin file?

2013-06-16 Thread Suresh Govindachar

On 6/16/2013 11:36 AM, Christian Brabandt wrote:

On So, 16 Jun 2013, Suresh Govindachar wrote:


The file vimfiles/ftplugin/notes.vim starts as follows:

  if exists(b:did_ftplugin)
finish
  endif
  let b:did_ftplugin = 1   Don't load another plugin for this buffer

  nmap buffer  localleaderu Yp$x^v$r-

  nmap buffer F5  :syn off\|syn oncr

  setlocal spell
  setlocal smartindent
  setlocal textwidth=80
  setlocal complete=.

  if !exists(*s:MyNotesFoldLevel)
  function! MyNotesFoldLevel(acline)

 let cline = a:acline
 omitting rest of the function
  endfunction
  endif
  omitting rest of the stuff in this file

The file vimfiles/syntax/notes.vim starts as follows:

  syn clear
  if !exists(*s:MyNotesFoldLevel)
ru ftplugin/notes.vim
  endif

  %g/^/let i = line('.') |
 \ let level = MyNotesFoldLevel(i) |
 omitting rest of the stuff in this file

But the very first time a notes file is loaded, I get the error message:

  Error detected while processing C:\opt\vim\vimfiles\syntax\notes.vim:
  line   35:
  E117: Unknown function: MyNotesFoldLevel
  E15: Invalid expression: MyNotesFoldLevel(i) | omitting rest
of the stuff

After that, loading the same or different notes file is OK.

How to fix the error message for the very first load?

In your .vimrc, put the filetype plugin on command /before/ the :syntax
on command. This makes sure, the filetype plugin is loaded before the
syntax script.



So what's wrong with the test and the ru ftplugin/notes.vim line in 
the syntax file?


--Suresh


--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Command line completion

2013-04-14 Thread Suresh Govindachar


Hello,

Issue:  On vim's command line, the following finds the possible completions

  :find   ./foo/blah/bleetab

but the following (without the leading ./) will not:

   :find   foo/blah/bleetab

Why?

My settings:

verbose set path?
  path=.,,c:/opt/vim,c:/opt/vim/**
Last set from C:\opt\vim\700_vimrc

verbose set wildchar?
  wildchar=Tab
Last set from C:\opt\vim\vim73\runtime\vimrc_example.vim

verbose set wildmode?
  wildmode=list:longest,full
Last set from C:\opt\vim\700_vimrc

It has been this way with various versions of vim;  my current vim is:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb 21 2013 18:17:56)
MS-Windows 64-bit GUI version with OLE support
Included patches: 1-831

Thanks,

--Suresh


--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Example building 64 bit gvim/vim with perl support on Windows 7

2013-02-21 Thread Suresh Govindachar

I used to build 32 bit Vim with perl support using mingw regularly, but stopped 
when I got 64 bit Windows 7 since my attempts at building a 64 bit version 
failed.

Some hours ago, I got the latest vim sources using mercurial, and succeeded at 
building gvim and vim with support for 64 bit perl.  The MinGW64 I used was:
 
 x86_64-w64-mingw32-gcc-4.6.3-2-release-win64_rubenvb.7z

 x86_64-w64-mingw32-mingw-w64-update-trunk-20130115_rubenvb.7z

The following commands were issued from a .bat file that had the lines @set USERNAME=name 
and @set USERDOMAIN=doman:

  c:\opt\mingw64\bin\mingw32-make.exe
   -f Make_ming.mak
   CPU=IA64
   ARCH=x86-64
   FEATURES=HUGE
   DEBUG=no
   GUI=no
   OLE=no
   STATIC_STDCPLUS=yes
   PERL=C:/opt/perl64
   PERL_VER=516
   CC=c:/opt/mingw64/bin/x86_64-w64-mingw32-gcc.exe

and a similar one with both GUI and OLE set to yes.

--Suresh

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: email plugin

2012-12-01 Thread Suresh Govindachar

On 11/30/2012 5:34 PM, Rostislav Svoboda wrote:

I'd sum up this thread:

1. Vmail:

This seems to be the kind of thing I look for. But it depends on
sqlite3, ruby, lynx and maybe some other packages so get:

ERROR:  Error installing vmail:
ERROR: Failed to build gem native extension.

2. Vim as an external editor for email client X (including mutt and
Text Editor Anywhere):

This is exactly the opposite of what I'd like to achieve. I'd like to
have _real_ vim plugin for emailing so I can take advantage of some
other plugins, omni completion, scripting, folding... all that stuff
where vim excels.

You may oppose: So you want vim to be like that Operating System
lacking a decent editor?. Yes, sort of. I think there's a point
having everything under one roof: The synergy effect.

Thanks for your replies

Bost




Consider The Mail Suite (TMS): 
http://www.vim.org/scripts/script.php?script_id=1052


I used to use this for many years when I was on 32-bit Microsoft 
Windows.  Since I moved to 64 bit, I have not been able to find or to 
build Vim with support for 64 bit perl, and so am not sure what tweaks 
will need to be done to make it work under 64 bit Microsoft Windows and 
64 bit perl.  Also, when I had access to a linux system, I had verified 
that TMS works there;  no idea what tweaks will need to be done to make 
TMS work under newer linux releases.


--Suresh


--
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


Re: Commands from insert mode

2012-11-09 Thread Suresh Govindachar

On 11/9/2012 9:32 AM, Ed Kostas wrote:

 I use vim a lot -- most of my life is spent in a vim buffer --
 and I agree with the lawyers.  I am an engineer and when I start
 a project (e.g., a new .h or .cc file), most of my time is spent
 in insert mode with brief excursions to normal mode.

 Here's my Mappings to facilitate the creation of text from
 2001:
 http://vim.wikia.com/wiki/Mappings_to_facilitate_the_creation_of_text

 Something else that you might find interesting Enhanced Command
 Window from 2004:
 http://vim.wikia.com/wiki/Enhanced_command_window

 --Suresh

 Hi, Suresh.

 Your script is exactly what I wanted all the time. Therefore, I
 don't have any work left. All I have to do is downloading your
 scripts, and start typing. However, I have a question. In the
 distribution of your mapping, there is a warning: The contents
 may not be useful for Vim 7. What does it mean? The mapping may
 not work for Vim 7.3? I run a few test, and everything seems ok.

That warning was made by some Wiki Administrator who did not
understand the tip.  I'll start a new thread to contact him.

--Suresh

--
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


Contacting Vim Tips Wiki Admin JohnBeckett

2012-11-09 Thread Suresh Govindachar


Hello JohnBeckett,

Regarding your comments to 
http://vim.wikia.com/wiki/Mappings_to_facilitate_the_creation_of_text 
please see the recent (within past 22 hours) emails in the thread 
Commands from insert mode.


See also http://vim.wikia.com/wiki/Quick_command_in_insert_mode

Thanks,

--Suresh

--
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


Re: Contacting Vim Tips Wiki Admin JohnBeckett

2012-11-09 Thread Suresh Govindachar


On 11/9/2012 7:14 PM, John Beckett wrote: Suresh Govindachar wrote:
 Hello JohnBeckett,

 Regarding your comments to
 http://vim.wikia.com/wiki/Mappings_to_facilitate_the_creation_of_text
 please see the recent (within past 22 hours) emails in the thread
 Commands from insert mode.

 See also http://vim.wikia.com/wiki/Quick_command_in_insert_mode

 The vim_use discussion is:
 
http://groups.google.com/group/vim_use/browse_thread/thread/ab736b5a399312de


 Sorry to have been dismissive in my comment last April at the
 wiki. It looks like there are two strong points of view on the
 topic, with some wanting to reconfigure Vim so as to avoid normal
 mode, with others not seeing the point of that.

You have misunderstood the issue.  No one is attempting to
reconfigure vim in any way.  No one is attempting to avoid the
normal mode.  It is just that while in insert mode, there is often a
need to do something quick in normal mode and get back to insert
mode -- the creator of Vim himself recognized this need and provided
the feature of i_ctrl-o (:help i_ctrl-o).  The mappings merely
enhance Vim's built in feature of i_ctrl-o.

 I cannot imagine a group of lawyers using Vim (unless they happen
 to be familiar with Vim).

Such a group actually exists.

 The fundamental problem is that if someone has trouble going to
 normal mode to navigate or massage text,

No one has trouble going into normal mode to navigate or massage
text.  The point of that there are times, such as when a new
document is being created, when one want to go to normal mode and
come back to inset mode quickly.

 they will get into trouble when they accidentally trigger some
 feature of Vim that confuses them.

I consider myself an expert in Vim, and the preceding concern is just 
not applicable to people interested in the enhancement to i_ctrl-o;  in 
fact, I don't even know what the above conern really means.


 At any rate, I would like the tip fixed so the concerns raised by
 Fritzophrenic (who added the dodgy tag) are addressed. Then we
 could add a note saying that some people like avoiding normal
 mode, and some don't, and we could remove the comments and other
 old stuff from the page.

I do not see the name Fritzophrenic on the wiki page in question.
By the concerns raised by Fritzophrenic (who added the dodgy
tag) do you mean the following?:

Not enough explanation. What is the purpose of each set of
 mappings, and what do they accomplish? What problem is being
 solved?

The comments toward the top of the tip provide the motivation for
the tip -- which would answer the question about what do they
accomplish and What problem is being solved?  The only thing I
can think of adding is that the reader see :help i_ctrl-o since the
tip enhances Vim's built in feature of i_ctrl-o.  Regarding what
each mapping does, there is a comment at the top of each group of
mappings.

Again, the intent is _not_ to avoid normal mode but to go to normal mode 
and come back to insert mode quickly during those times -- such as the 
creation of a document (rather than the editing of a preexisting 
document) -- when there is a need to be in insert mode for a long time.



 John


--Suresh


--
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


Re: basic vim usage

2012-11-08 Thread Suresh Govindachar

On 11/8/2012 5:22 AM, stosss wrote:

 Linux has the ability to copy without using a copy command. Simply
 high lite the text you want and then place the curse where you want to
 paste that text and just click the middle mouse button. This is
 available system wide on Linux maybe Mac too but no at all on windows.

That actually works on my Windows gvim:  In normal mode:  highlight some 
text, move mouse to some place and press middle button:  stuff that was 
highlighted gets pasted.


Also, highlight some text in normal mode, hit esc, go to some other 
place (perhaps using ijkl keys), hit p (to put the highlighted text at 
current location).


--Suresh

--
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


Re: Commands from insert mode

2012-11-08 Thread Suresh Govindachar
On 11/8/2012 6:48 PM, Ed Kostas wrote: On Thursday, November 8, 2012 
7:41:49 PM UTC-2, Alejandro Exojo wrote:

 El Jueves, 8 de noviembre de 2012, Ed Kostas escribió:

 :imap C-h Left
 :imap C-j Down
 :imap C-k Up
 :imap C-l Right

 I'm not going to answer what you asked, but since in other mail
 you said that you are beginning, I'm going to try to explain you
 something way more important:

 You are trying to avoid normal by adding in insert mode several
 mappings.

 DON'T DO THAT!

 Is called normal mode for a reason. You normally want to be in
 that mode. As Drew Neil explains in his Practical Vim book (that
 I totally recommend), a painter doesn't necessarily spend most of
 the time with the brush leaning on the canvas.

 You are losing the main reason that makes Vim useful if you don't
 use modes.  Even worse: many important Vim features like the dot
 command are completely based on the change of modes.

 Also, if you really, really want to map something, make sure that
 you make a good decision on what you use. The reason is that you
 may be hiding, and this making more difficult to use the
 functionality that Vim provides. For example:

 If you map C-x in insert mode, you will need to find another
 key to use the completion that is provided when you press C-x
 followed by another key.

 If you map C-h you may have problems with the backspace key (in
 some cases Vim will see the backspace and C-h as the same key).

 And so on...


 Hi, Alejandro.

 Thank you for your letter. In fact, I have heard a lot of
 arguments from people that claim that I should get used to the
 dichotomy between normal mode, and insertion mode. I agree with
 these argument, and in my private installation of Vim, I don't
 mess with vim key mapping. However, I would appreciate if you
 could answer me the following argument of a writer whose name is
 Caroline Shore.

 There are people who use the editor to browse text. The go around
 the text looking for a given phrase, error, sequence of chars,
 etc. For instance, an engineer who is trying to configure a
 monitor editing the /etc/profile is in this situation. In this
 case, using the normal mode to move the cursor, or erasing a few
 chars makes a lot of sense. When the need arise for typing, the
 engineer can escape to insertion mode.

 In the world at large, besides the engineer, there are creative
 writers who seldom move the cursor, or even erase characters, or
 make corrections. These people just type forward. In the old days
 of typewriters, they would type their manuscripts, and almost
 never would make corrections, or erase text. In fact, with a
 typewriter, the result of correction is not very good. This kind
 of writers live in the insertion mode, with short incursions to
 normal mode. My question: In this case, do you think that it would
 make sense to provide a short escape into normal mode?

 I prepared the map for lawyers, that prepare formal documents. The
 type very fast, and now and them a wrong char slip in the line;
 then they want to move the cursor one or two chars backward, erase
 the wrong insertion with x, and return to their typing forward.
 These lawyers claim that they prefer Emacs over Vim because Emacs
 is more productive for this kind of writing.

 By the way, nowadays lawyers plead electronically. I mean, instead
 of typing the document, printing the document, and submitting a
 hard copy to the judge, they prepare the document in LaTeX with a
 text editor (say, Emacs), produce a pdf output (say, with
 pdflatex), and submit the result to the court. A text editor, like
 Vim, with a very fast start up is appreciated.

 If you have good arguments for not using commands from insertion
 mode, even for people who type most of the time, and seldom need
 to move the cursor or erase a char, I would be happy to hear your
 arguments. In fact, I am eager to hear the other side of this
 story.

 Below I put a list of reasons for my lawyer friends appreciating
 Vim, as compared with other editors, like Eclipse, gedit, and even
 Emacs.

 1 -- Vim has a very fast start up. It is almost instantaneous.
 This is very important when you need to type a short document,
 LaTeX compile it, and submit the pdf file as soon as a submission
 window opens.

 2 -- Vim is relatively small. The compiled application has less
 than 7 megabytes. You can copy it in a pen drive, take it to
 another town, copy it into the BAR association computer, do your
 working, and erase Vim.  With Eclipse, you would need to ask
 permission to install Java, download 200 megabytes, install
 Eclipse, prepare your documents, uninstall Eclipse, uninstall
 Java, etc.

 3 -- It has scripts. Therefore you can configure your keyboard to
 speed your work.


I use vim a lot -- most of my life is spent in a vim buffer -- and I 
agree with the lawyers.  I am an engineer and when I start a project 
(e.g., a new .h or .cc file), most of my time is spent in insert mode 
with brief excursions to normal mode.



Re: Commands from insert mode

2012-11-07 Thread Suresh Govindachar


On 11/7/2012 6:11 PM, Ed Kostas wrote:

 I want to issue commands from the insert mode.

[ how to distinguish between lower and upper case X in
  the following imaps ]

   :imap C-x Delete
   :imap C-X BS

Use C-S- (S for shift), for example:

:imap C-S-X BS
:imap C-S-X escXi

--Suresh



--
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


Re: Difficulty in using VIM

2012-11-05 Thread Suresh Govindachar


Hello Ed,

[Please see the Original Post for the full context.  In essence, Ed 
Kostas mentions law firms using emacs as a front end to run programs 
that perform some fairly complex document collection, organization, and 
display tasks.]


I am fascinated by this way of using a text editor.  Here's a 
description of a project I worked on some years ago -- the platform was 
Windows, and I believe it would be easier to support the goal of the 
project on linux.  http://www.govindachar.com/eui/   Unfortunately, I 
haven't worked on this idea for years, and, at present, do not have the 
time to work on it.


Your write up mentions email:  http://www.govindachar.com/tms/ and 
browsing web-pages: 
http://vim.sourceforge.net/scripts/script.php?script_id=1053


All the best,

--Suresh

--
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


RE: Plugin gnupg.vim: Symmetric keys with gnupg (gpg)

2012-09-26 Thread Suresh Govindachar


  Earlier, I asked:
   On Windows 7, I use the following command lines to encrypt and
   decrypt using a symmetric key:
   
 1) gpg -o foo.gpg -c --force-mdc foo.txt
 2) delfoo.txt
 3) gpg -o foo.txt -d foo.gpg
   
   The first command would be done once per file.  Then, I would
   like to open the foo.gpg file, edit it, and save it from within
   Vim.  How can this be done?
   
   (At present, when I open foo.gpg from within Vim, the plugin
   gnupg.vim incorrectly reports:  File is not encrypted, all GPG
   functions disabled!).

  I have since found these two tips (which are hard to read on IE
  since they show up as green font on green background):

   http://vim.wikia.com/wiki/Edit_gnupg-encrypted_files
   http://vim.wikia.com/wiki/Edit_gpg_encrypted_files

  and a page on antagonism.org -- which neither IE or FireFox can
  display, but here's google's cached version:

 
http://webcache.googleusercontent.com/search?q=cache:XrPCqnc4bgkJ:https://ww
w.antagonism.org/privacy/gpg-vi.shtml+using+gnupg+with+vimcd=4hl=enct=cln
kgl=us

  Also a plugin that has been deleted:
http://www.vim.org/scripts/script.php?script_id=1403 

  --Suresh

-- 
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


How to expand this plugin?

2012-09-26 Thread Suresh Govindachar

Hello,

The tgpg plugin http://www.vim.org/scripts/script.php?script_id=1751 is
provided as a .vba.gz file -- I can expand the .gz to get the .vba file --
but what to do with the .vba file?

Thanks,

--Suresh 

-- 
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


RE: Plugin gnupg.vim: Symmetric keys with gnupg (gpg)

2012-09-26 Thread Suresh Govindachar


  Ben Fritz wrote:
  On Wednesday, September 26, 2012 9:10:15 AM UTC-5, Suresh Govindachar wrote:
   
   I have since found these two tips (which are hard to read on IE
   since they show up as green font on green background):
  
  http://vim.wikia.com/wiki/Edit_gnupg-encrypted_files
  http://vim.wikia.com/wiki/Edit_gpg_encrypted_files
  
  
   On Windows XP in IE8, as well as in every other browser on every
   system I've used, I see black text on a white background. Does
   this happen for you in other browsers? What version of IE are
   you using? 

  Windows 7, 64 bit, IE 8.  Looks OK in FireFox. 
  
   What if you clear your cache? Do you have any custom
   CSS/javascript getting inserted via plugin or wikia settings or
   something?

  Nothing custom.

   As a workaround, there is a printable link at the top of every
   tip on the wiki, which removes most of the fancy layout, ads,
   etc.
  
  Both the printable and monobook links result in readable
  pages.  Thanks.

  --Suresh


-- 
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


Plugin gnupg.vim: Symmetric keys with gnupg (gpg)

2012-09-25 Thread Suresh Govindachar

Hello,

On Windows 7, I use the following command lines to encrypt and decrypt using
a symmetric key:

  1) gpg -o foo.gpg -c --force-mdc foo.txt
  2) delfoo.txt
  3) gpg -o foo.txt -d foo.gpg

The first command would be done once per file.  Then, I would like to open
the foo.gpg file, edit it, and save it from within Vim.  How can this be
done?

(At present, when I open foo.gpg from within Vim, the plugin gnupg.vim
incorrectly reports:  File is not encrypted, all GPG functions disabled!).

Thanks,

--Suresh


-- 
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


RE: running a batch of commands against one file.

2012-05-27 Thread Suresh Govindachar

  On Sunday, May 27, 2012, Tim Chase wrote:
  On 05/27/12 08:31, john Culleton wrote:
  
   Running a file of commands against a single file.
   I can create a file of several hundred commands all of
   the form
   :% s/foo/bar/
   
   Of course foo and bar are different for each such command. Now
   I want to run all of those commands against file mainfile. 
   
   How do I do this? Or is it easier to use awk?
  
  
   If the colons are in the command-file, you can just yank them
   all into a register (e.g. a) and then execute the whole thing
   as a macro:
  
:e commands.txt
:%y a
:e mainfile.txt
@a
  
  Alternatively,

   :e mainfile.txt
   :source commands.txt

  --Suresh


-- 
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


the tip on ident-search

2012-05-12 Thread Suresh Govindachar

Hello,

This concerns :help ident-search -- how would one modify the tip to
collect the results in a quickfix-file and use commands like :copen etc.?

Thanks,

--Suresh


-- 
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


RE: Building Win 7 vim with support for 64 bit perl

2012-03-25 Thread Suresh Govindachar

  Sergey Khorev wrote:

   32bit application cannot use 64bit dll. Here is x64 Vim
   built with ActivePerl 5.12.4.1205:
  
http://dl.dropbox.com/u/27071670/gvim-7.3.480.x64.dynperl-5.12.4.1205.zip
  
  Thanks -- I tried your build and it works on my machine.  When
  I was on 32 bit Win XP, I used to get VIM sources from svn
  repositories and build it using MinGW.  I would like to build
  from sources on Win 7 64 bit also.  Would you please provide
  the steps for doing so?  (The only procedure I am unable to
  use would be one that involves cygwin;  procedures involving
  Visual Studio, MinGW or even cross-compiling from linux are
  OK.)

  Thanks,

  --Suresh


-- 
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


Building Win 7 vim with support for 64 bit perl

2012-03-24 Thread Suresh Govindachar

Hello,

Has anyone successfully built Vim for Windows 7 with support for 64 bit
perl?  It would be nice if VIM were 64 bit, but 32 bit VIM is OK;  embedded
perl must be 5.12 64 bit.

Build using Visual Studio or MinGW (preferred) is OK (but not cygwin).

The build Bram provides does not like perl512.dll from perl 5.12 64 bit
(E370: Could not load library perl512.dll).

Thanks,

--Suresh


-- 
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


RE: Vim finishing.

2012-03-21 Thread Suresh Govindachar

   I usually close Vim with Alt+F4 instead of :quit and
   associates. The problem is, there sometimes is quite some
   work in the VimLeave autocommand, and a dialog pops up
   saying that Vim is busy and do I want to close it, etc. The
   dialog disappears when Vim really stops, but it's annoying
   anyway.
   
   Perhaps there is a solution related to my OS (Debian) or
   Desktop (Xfce), but is there any related to Vim itself? I
   could perhaps map Alt+F4 -- except actually I can't, because
   Xfce steals the shortcut.

  M-F4 does nothing in my system so I am not sure I understand
  the question;  if the issue is the need to quit without typing
  too much, why not map

   esc:q or esc:qa 

  to something of your liking?  (The esc is there in case you 
  want to quit while in insert mode;  the side effect of having
  esc and using it in normal mode is the possibility of hearing
  a bell and a seeing a flicker.)

  --Suresh


-- 
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


RE: Hiding a string of text

2011-12-27 Thread Suresh Govindachar

Some progress since the original post:  To hide a certain string, I created
the following syntax region:

syn region conceal start=\\afootnote end=}

then split the buffer and did 
  
   :set conceallevel=3

in one of the split windows.

The correct strings are being identified.

However, there are issues:

1) The strings are highlighted with white color in both windows -- I have
verified the conceallevel via :verbose set conceallevel?.

2) My background is black -- so the highlight should be black and not white.

--Suresh


-- 
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


RE: Hiding a string of text

2011-12-27 Thread Suresh Govindachar

More progress:  To hide a certain string, I created
the following syntax region:

syn region footnote start=\\afootnote end=} conceal

then split the buffer and did 
  
   :setlocal conceallevel=3

in one of the split windows.  I then verified the conceallevel in _both_
windows via :verbose set conceallevel?

The correct strings are being identified and made into the dark background.

However, there is one issue:  the strings are vanishing in the window with
conceallevel 0 also.  How  do I prevent this?

Thanks,

--Suresh


-- 
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


[Resolved] Hiding a string of text

2011-12-27 Thread Suresh Govindachar

Solution:  To hide a certain string, I created the following syntax region:

syn region footnote start=\\afootnote end=} conceal

then split the buffer and did 
  
   :setlocal conceallevel=3

in one of the split windows.  I then verified the conceallevel in _both_
windows via :verbose set conceallevel?

This resulted in the strings being concealed in one buffer but not in the
other, as expected/desired.

--Suresh


-- 
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


Concealing the \r also

2011-12-27 Thread Suresh Govindachar

Hello,

Consider a C-file with folding method marker.

Declaring the comment regions with the argument conceal and setting
conceallevel to 2 would eat up all the characters in the comment -- except
for any carriage returns in the comment.

Is there a way to have the carriage returns eaten up too?  (Fold method
needs to remain marker.)  

Thanks,

--Suresh

-- 
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


Missing selection register (*)?

2011-03-25 Thread Suresh Govindachar
Hello,

  On Windows, after yanking a line, :echo @* shows the yanked
  line.  But on Unix, there doesn't seem to be anything in the *
  register -- it is as though there is no * register at all!
  Version of vim used on Fedora 14 was:
  
  :version
  VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Nov 16 2010 17:05:25)
  Included patches: 1-56
  Modified by bugzi...@redhat.com
  Compiled by bugzi...@redhat.com
  Huge version without GUI.  

--Suresh

  

-- 
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


RE: Missing selection register (*)?

2011-03-25 Thread Suresh Govindachar
  Tim Chase wrote:
  On 03/25/2011 02:41 PM, Suresh Govindachar wrote:
  
   On Windows, after yanking a line, :echo @* shows the yanked
   line.  But on Unix, there doesn't seem to be anything in
   the * register -- it is as though there is no * register at
   all!  Version of vim used on Fedora 14 was:
  
   :version
   VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Nov 16 2010 17:05:25)
   Included patches: 1-56
   Modified bybugzi...@redhat.com
   Compiled bybugzi...@redhat.com
   Huge version without GUI.
  
   The without GUI seems to be the key.  If you have a build
   that is GUI-aware, it should be able to access the
   clipboard.  You might check the output for +clipboard and
   for +xterm_clipboard
   
   Also remember that on X, you have both the Selection
   register (*) and the Clipboard register (+).  The former
   is for things that have been selected, while the latter is
   for thing's you've explicitly cut/copied.

  Thanks.  To go from Windows to Unix without any clipboard, I 
  ended up replacing @* with @ in my vimrc file:

nmap \e :perl my $foo = eval(VIM::Eval('@')); 
  \ VIM::DoCommand(let @\ = ' . $foo .  ' ); 
  \ my @pos = $curwin-Cursor(); 
  \ $curbuf-Append($pos[0], $foo); 
  \ VIM::Msg($foo);CR

  --Suresh


-- 
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


  1   2   >