handling error in function

2010-10-17 Thread tekion
All, I have function TrimTab() %s/^tab//g endfunction map :call TrimTab() It works when their are tabs in my file to remove, but display error when there are no tabs. Is there a way to catch and handle the error so I could display a friendly message? Thanks. -- You received this message

Re: getting rid of tabs

2010-10-15 Thread tekion
All I figured it out. Please ignore this post. Thanks. On Oct 15, 10:47 pm, tekion wrote: > All, > I have the following in my vimrc file, > > function TrimTab() >    %s/^tab//g > :endfunction > > map :call  TrimTab() > > First question, I believe is Shift Funct

issue with vim when inserting

2010-10-15 Thread tekion
All, I don't remember what this option is call, when I insert text into a file, my first character is ", then any line that gets inserted after that begins with " character. Does any one know what is option is, I would like to turn it off. -- You received this message from the "vim_use" maillis

getting rid of tabs

2010-10-15 Thread tekion
All, I have the following in my vimrc file, function TrimTab() %s/^tab//g :endfunction map :call TrimTab() First question, I believe is Shift Function key 11. Second question, what is the Tab character, I know I can v then hit the tab key to get it. I am wondering is there is another way

Re: using cscope for bash scripting

2009-09-19 Thread tekion
way to detect if cscope is already loaded, I know you can run cs show to see if there is one running, but how do code in vim? Thanks. On Sep 19, 9:57 am, tekion wrote: > I've read that cscope can be use for c, java, and documentation.  I > would assu

using cscope for bash scripting

2009-09-19 Thread tekion
I've read that cscope can be use for c, java, and documentation. I would assume that it could also be use for bash scripting? Thanks. --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/mailli

Re: search function/variable references using ctags?

2009-09-19 Thread tekion
Hi, I am just learning how to use ctags. From the looks of this thread, I gather cscope can do more than ctags. Is worth to skip learning ctags and just jump into cscope? Thanks. On Sep 18, 10:29 pm, Ben Fritz wrote: > On Sep 18, 2:45 pm, Gregory Margo wrote: > > > On Fri, Sep 18, 2009 at 09:

mapping crontrol f9

2009-09-18 Thread tekion
All, I need help with map, i have the following: map :TlistToggle "control + f9 map :TlistToggle "shift +f9 map :TlistToggle "alt + f9 All of the above are not working. However, the below sytax seems to work: map tt :TlistToggle Any idea as to how this. Thanks. --~--~-~--~~

using ctrl-v to highlight a word and then search ....

2009-09-16 Thread tekion
Hi, I know of "*" and "g*" and / then ctrl-R-A , they are use for searching. I would like to know if you can use ctrl-v then hightlight the words then perform the search for the words which are hightlighted. Is this possible in VIM? I have google and search under this forum but did not find an

installing plugin

2009-05-12 Thread tekion
Hi, I have installed NERDtree, it's working. My platform is window XP. But the documention doesn't work when I use ":help NERD_tree". The path where the plugin resides is: HOME/vimfiles/plugin/ HOME/vimfiles/doc/ Any idea why the using ":help NERD_tree" or ":help NERD_tree.txt" does not work?