Quantcast

Vim running in subshell with limited features

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Vim running in subshell with limited features

feebleuser
When running VIM from a subshell (ksh Version AJM 93t+ 2010-02-02) I am unable to use features like visual block or screen splitting.

However, if I run VIM from the login shell these features work fine.

What about running VIM in a subshell might cause these features to not work properly?

Apologies if this question has previously been answered.  My search didn't turn anything up...

Thanks,

Joel


VIM - Vi IMproved 7.0 (2006 May 7, compiled Jun 12 2009 07:08:36)
Included patches: 1, 3-4, 7-9, 11, 13-17, 19-26, 29-31, 34-44, 47, 50-56, 58-64, 66-73, 75, 77-92, 94-107, 109, 202, 234-237
Modified by <bugzilla@redhat.com>
Compiled by <bugzilla@redhat.com>
Huge version without GUI.  Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+cryptv +cscope +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic
+emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path
+folding -footer +fork() +gettext -hangul_input +iconv +insert_expand +jumplist
 +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu
+mksession +modify_fname +mouse -mouseshape +mouse_dec +mouse_gpm
-mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme
-netbeans_intg -osfiletype +path_extra +perl +postscript +printer +profile
+python +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent
-sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static
-tag_any_white -tcl +terminfo +termresponse +textobjects +title -toolbar
+user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace
+wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
-xterm_clipboard -xterm_save
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2    -D_REENTRANT -D_GNU_SOURCE  -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm  -I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE  -I/usr/include/python2.4 -pthread
Linking: gcc   -Wl,-E -Wl,-rpath,/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE   -L/usr/local/lib -o vim       -lncurses  -lselinux  -lacl -lgpm   -Wl,-E -Wl,-rpath,/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE  /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -lperl -lresolv -lutil -lc -L/usr/lib64/python2.4/config -lpython2.4 -lutil -lm -Xlinker -export-dynamic
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Vim running in subshell with limited features

Tim Chase
On 06/01/2011 01:48 PM, feebleuser wrote:
> When running VIM from a subshell (ksh Version AJM 93t+ 2010-02-02) I am
> unable to use features like visual block or screen splitting.
>
> However, if I run VIM from the login shell these features work fine.
>
> What about running VIM in a subshell might cause these features to not work
> properly?

This sounds suspiciously like two versions/builds of vim are on
your system, one being found by the login-shell and one being
found by the sub-shell.  In each shell, what is the output of

   ksh> which vim
   ksh> alias

Perhaps your login shell sets an alias that isn't set in the
sub-shell?

Finally, it would be useful to capture the output of ":version"
both in the case where it *does* work and the case where it
*doesn't* work.  The comparison would prove useful.

-tim


--
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Vim running in subshell with limited features

Gary Johnson-4
In reply to this post by feebleuser
On 2011-06-01, feebleuser wrote:

> When running VIM from a subshell (ksh Version AJM 93t+ 2010-02-02) I am
> unable to use features like visual block or screen splitting.
>
> However, if I run VIM from the login shell these features work fine.
>
> What about running VIM in a subshell might cause these features to not work
> properly?
>
> Apologies if this question has previously been answered.  My search didn't
> turn anything up...

Did you check that the output of :version is the same from Vim
running in the subshell as from Vim running in the login shell?
I'm wondering if the Vim running in the subshell is the small or
tiny version that Red Hat installs as /bin/vi.

Regards,
Gary

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