Could find where the error is coming from
I am using tags to browse the code. For the first time, when I press CTRL-] to enter a module, everything works properly. But when I press the CTRL-] second time onwards, I get this annoying Error message. --- Error detected while processing function 8_LoadFTPlugin: line3: E108: No such variable: "b:browsefilter" --- Although the Error message is reported, the vim takes me properly to the intended file. Why this message is coming and from which file this is coming ? I tried to grep for "8_LoadFTPlugin", but could not find anywhere. Any help is appreciated. Regards, Shankar This e-mail, and any associated attachments have been classified as: [X] Public [ ] Freescale Semiconductor Internal Use Only [ ] Freescale Semiconductor Confidential Proprietary
RE: Could find where the error is coming from
Thanks Gerald and Eric, I now greped for browsefilter. I could get hold of it in verilog.vim inside ftplugin dir I removed the b:browsefilter from the unlet portion, the error is not coming now. Thanks a lot guys Shankar >-Original Message- >From: Gerald Lai [mailto:[EMAIL PROTECTED] >Sent: Wednesday, April 26, 2006 11:30 AM >To: SHANKAR R-R66203 >Cc: 'vim@vim.org' >Subject: Re: Could find where the error is coming from > >On Wed, 26 Apr 2006, SHANKAR R-R66203 wrote: > >> I am using tags to browse the code. >> For the first time, when I press CTRL-] to enter a module, everything >works properly. >> >> But when I press the CTRL-] second time onwards, I get this annoying >Error message. >> --- >> Error detected while processing function 8_LoadFTPlugin: >> line3: >> E108: No such variable: "b:browsefilter" >> --- >> Although the Error message is reported, the vim takes me properly to the >intended file. >> >> Why this message is coming and from which file this is coming ? >> I tried to grep for "8_LoadFTPlugin", but could not find anywhere. >> Any help is appreciated. > >Hi Shankar, > >I think the function you're looking for is in the file > > $VIM/ftplugin.vim > >Here's the latest version on CVS: > > >http://cvs.sourceforge.net/viewcvs.py/vim/vim7/runtime/ftplugin.vim?rev=1.4 >&view=markup > >I see that line 3 of the function is: > > unlet! b:undo_ftplugin b:did_ftplugin > >The error code E108 does have something to do with line 3. After doing > > :help E108 > >I get (on Vim 6.3) > > *:unlet* *:unl* *E108* > :unl[et][!] {var-name} ... > Remove the internal variable {var-name}. Several > variable names can be given, they are all removed. > With [!] no error message is given for non-existing > variables. > >that points to ":help :unlet". > >However, I'm not making much sense out of your problem. Perhaps someone >else has a better idea. >-- >Gerald
RE: Using vim to keep a todo list
Step-1: Put this text in a file named admin.vim and put the file admin.vim in your syntax dir. x---cut here-x syn match HP ".* \*\*\*\*\*$" hi link HP ErrorMsg syn match MP ".* \*\*\*\*$" hi link MP DiffChange syn match LP ".* \*\*\*$" hi link LP Search syn match IM ".* \*\*$" hi link IM DiffDelete syn match Done ".* -done$" hi link Done g syn match TBR ".* -tobereviewed$" hi link TBR Folded x---cut here-x Step-2: Add this to your filetype.vim au BufNewFile,BufRead *.adm setf admin Step-3: Create your file with todo.adm Open it in gvim and enjoy. -Sample file--- TBD : ¯¯¯ § Proposal for PCM ** § Activity table to be compiled. ** § Redraw and review the Power Connection ** § update the diagrams for the Issue - 1033 ** § Complete the Ethics Training § Get account in Austin as per Sanjeevs mail § Get subscribed to the maillist in Munich. § Document the change of PWM-PCM issue as a disclossure. § PLLMUXDIV - Is this a Glitch Free Mux. § Change PCM * § Call DaveRussel for PLLMUXDIV (analog/digital) § Redraw the proposal for clock structure. § OVERTAKING OF SOC GUIDE Closing of all the open questions. § Verify the LEC results. -- Send mail and close the issue -done ISSUES: § close the PCM proposal with JohnBodnar *** * ** *** * -done -tobereviewed ---End of Sample file- >-Original Message- >From: Yi Qiang [mailto:[EMAIL PROTECTED] >Sent: Friday, May 05, 2006 10:43 AM >To: vim@vim.org >Subject: Using vim to keep a todo list > >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >Hi, >I've looked all over the net for a simple console based todo list >manager and I always eventually come back to just using vim to edit a >plain text file. I imagine there are other people who use vim to manage >a todo list so I'd like to know what kind of tips&tricks you might have. > >Thanks in advance, >Yi >-BEGIN PGP SIGNATURE- >Version: GnuPG v1.4.2.2 (GNU/Linux) > >iD8DBQFEWt7LtXlIMrUVVksRAiYBAJ4t1OlUVIqDFDqnENp1/DlRhiXR+gCfZH5E >uri7p8l1s8rUMUa9KP21lp4= >=RDSB >-END PGP SIGNATURE-
Copying everything which matches a pattern
Hi Vimmers, I want to copy everything that matches a search pattern. For example, if my search pattern is /\$.*s I want to copy all the patterns that matches this into a buffer. How can I do this ? Regards, Shankar
RE: Copying everything (not the complete line, only the matching pattern) which matches a pattern
This will copy the entire line. I do not want to copy the entire line, but just the pattern. Regards, Shankar >-Original Message- >From: Vishnu [mailto:[EMAIL PROTECTED] >Sent: Wednesday, May 31, 2006 3:53 PM >To: SHANKAR R-R66203 >Cc: vim@vim.org >Subject: RE: Copying everything which matches a pattern > >Hi Shankar, > > >:g//t$ > >t - copy to address $ > > >you can call function instead of t$ > >~Vishnu > > >-Original Message- >From: SHANKAR R-R66203 [mailto:[EMAIL PROTECTED] >Sent: Wednesday, May 31, 2006 3:41 PM >To: 'vim@vim.org' >Subject: Copying everything which matches a pattern > > >Hi Vimmers, > > I want to copy everything that matches a search pattern. > >For example, if my search pattern is > >/\$.*s > >I want to copy all the patterns that matches this into a buffer. > >How can I do this ? > >Regards, >Shankar
RE: Copying everything (not the complete line, only the matching pattern) which matches a pattern
This is assuming that the each line has only one matching pattern. After hit and trial I have used the macro to do that. But want to have some cute solution. Regards, Shankar > >Hi Shankar, > >1. Get the pattern matching lines in a separate buffer >:g//t$ > >2. >:%s/^.*\(\).*$/\1/ > > >~VIshhu > >-----Original Message- >From: SHANKAR R-R66203 [mailto:[EMAIL PROTECTED] >Sent: Wednesday, May 31, 2006 4:06 PM >To: 'Vishnu' >Cc: vim@vim.org >Subject: RE: Copying everything (not the complete line, only the >matching pattern) which matches a pattern > >This will copy the entire line. >I do not want to copy the entire line, but just the pattern. > >Regards, >Shankar > > > >>-Original Message----- >>From: Vishnu [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, May 31, 2006 3:53 PM >>To: SHANKAR R-R66203 >>Cc: vim@vim.org >>Subject: RE: Copying everything which matches a pattern >> >>Hi Shankar, >> >> >>:g//t$ >> >>t - copy to address $ >> >> >>you can call function instead of t$ >> >>~Vishnu >> >> >>-Original Message- >>From: SHANKAR R-R66203 [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, May 31, 2006 3:41 PM >>To: 'vim@vim.org' >>Subject: Copying everything which matches a pattern >> >> >>Hi Vimmers, >> >> I want to copy everything that matches a search pattern. >> >>For example, if my search pattern is >> >>/\$.*s >> >>I want to copy all the patterns that matches this into a buffer. >> >>How can I do this ? >> >>Regards, >>Shankar
Vim7 : tags and tabpage
Hi All, I am using tags very heavily. I am used to open the files in the same window or split window using tags. How to open a file "for a tag under the cursor" in a new tabpage. Regards, shankar
problem in understading "0tag" usage
Hi All, I am using tags heavily. 0tags command seems to not work properly. Let me explain the problem: When I type tags, the following is printed by VIM. # TO tag FROM line in file/text 1 1 mcu_mac7201 1 \Profiles\r66203\_tags\LF\harlech.hier 2 1 core_mac7201 1017 ~\..\..\Projects\Harlech\verilog\mcu_mac7201.v 3 1 ipss_mac7201 1696 ~\..\..\Projects\Harlech\verilog\core_mac7201.v > 4 1 crg_arm 1908 crg_arm #(MOD_EN_WIDTH) crg_arm ( 5 1 crg_core 472 ~\..\..\Projects\Harlech\verilog\crg_arm.v 6 1 crg_cgen 448 ~\..\..\Projects\Harlech\verilog\crg_core.v I am currently at tag#4 i.e. crg_arm I want to go to tag#5, i.e. crg_core So, I type the following in the command line :0tag As per my understanding with the 0tag documentation, this command takes to the "last used tag". This does not work. VIM reports an error message. How do I go to tag#5, without typing :tag crg_core Best Regards, Shankar
RE: problem in understading "0tag" usage
If I type :tag I get the following Error Message. E562: usage: cstag Regards, Shankar >-Original Message- >From: Yegappan Lakshmanan [mailto:[EMAIL PROTECTED] >Sent: Wednesday, June 28, 2006 11:46 AM >To: SHANKAR R-R66203 >Cc: vim@vim.org >Subject: Re: problem in understading "0tag" usage > >Hello, > >On 6/27/06, SHANKAR R-R66203 <[EMAIL PROTECTED]> wrote: >> Hi All, >> >> I am using tags heavily. >> >> 0tags command seems to not work properly. >> >> Let me explain the problem: >> >> When I type tags, the following is printed by VIM. >> >> # TO tag FROM line in file/text >> 1 1 mcu_mac7201 1 \Profiles\r66203\_tags\LF\harlech.hier >> 2 1 core_mac7201 1017 >> ~\..\..\Projects\Harlech\verilog\mcu_mac7201.v >> 3 1 ipss_mac7201 1696 >> ~\..\..\Projects\Harlech\verilog\core_mac7201.v >> > 4 1 crg_arm 1908 crg_arm #(MOD_EN_WIDTH) crg_arm ( >> 5 1 crg_core 472 ~\..\..\Projects\Harlech\verilog\crg_arm.v >> 6 1 crg_cgen 448 >> ~\..\..\Projects\Harlech\verilog\crg_core.v >> >> >> I am currently at tag#4 i.e. crg_arm >> I want to go to tag#5, i.e. crg_core >> >> So, I type the following in the command line >> :0tag >> As per my understanding with the 0tag documentation, this command takes >> to the "last used tag". >> This does not work. >> VIM reports an error message. >> >> How do I go to tag#5, without typing >> :tag crg_core >> > >You can use ":tag" command to jump to the next tag in the tag >stack. The ":0tag" command jumps to the current tag in the tag >stack. You can use the ":pop" command (or CTRL-T) to jump to >the previous tag in the tag stack. > >- Yegappan
RE: problem in understading "0tag" usage
Hi Thanks for your input. I am not using ctags for sure. Somewhere I have set cscopetags option. When set "nocst", then :tag Works properly. I have to find out in which file, this option is set. I tried using :verbose set cst But,this returned nothing. I am not sure how to set this. Regards, Shankar >-Original Message- >From: Yegappan Lakshmanan [mailto:[EMAIL PROTECTED] >Sent: Wednesday, June 28, 2006 12:23 PM >To: SHANKAR R-R66203 >Cc: vim@vim.org >Subject: Re: problem in understading "0tag" usage > >Hi, > >On 6/27/06, SHANKAR R-R66203 <[EMAIL PROTECTED]> wrote: >> If I type >>:tag >> I get the following Error Message. >> >> E562: usage: cstag >> > >It looks like you are using cscope and not a "tags" file for doing the >tag jumps. Some of the tags commands doesn't work properly with >the cscope interface. > >- Yegappan > >> >> >-----Original Message- >> >From: Yegappan Lakshmanan [mailto:[EMAIL PROTECTED] >> >Sent: Wednesday, June 28, 2006 11:46 AM >> >To: SHANKAR R-R66203 >> >Cc: vim@vim.org >> >Subject: Re: problem in understading "0tag" usage >> > >> >Hello, >> > >> >On 6/27/06, SHANKAR R-R66203 <[EMAIL PROTECTED]> wrote: >> >> Hi All, >> >> >> >> I am using tags heavily. >> >> >> >> 0tags command seems to not work properly. >> >> >> >> Let me explain the problem: >> >> >> >> When I type tags, the following is printed by VIM. >> >> >> >> # TO tag FROM line in file/text >> >> 1 1 mcu_mac7201 1 \Profiles\r66203\_tags\LF\harlech.hier >> >> 2 1 core_mac7201 1017 >> >> ~\..\..\Projects\Harlech\verilog\mcu_mac7201.v >> >> 3 1 ipss_mac7201 1696 >> >> ~\..\..\Projects\Harlech\verilog\core_mac7201.v >> >> > 4 1 crg_arm 1908 crg_arm #(MOD_EN_WIDTH) crg_arm ( >> >> 5 1 crg_core 472 >> ~\..\..\Projects\Harlech\verilog\crg_arm.v >> >> 6 1 crg_cgen 448 >> >> ~\..\..\Projects\Harlech\verilog\crg_core.v >> >> >> >> >> >> I am currently at tag#4 i.e. crg_arm >> >> I want to go to tag#5, i.e. crg_core >> >> >> >> So, I type the following in the command line >> >> :0tag >> >> As per my understanding with the 0tag documentation, this command >> takes >> >> to the "last used tag". >> >> This does not work. >> >> VIM reports an error message. >> >> >> >> How do I go to tag#5, without typing >> >> :tag crg_core >> >> >> > >> >You can use ":tag" command to jump to the next tag in the tag >> >stack. The ":0tag" command jumps to the current tag in the tag >> >stack. You can use the ":pop" command (or CTRL-T) to jump to >> >the previous tag in the tag stack. >> > >> >- Yegappan >>
tag stack
Hi All, Just a weird question. Can we store/save and restore the tag-stack. If I am browsing through the files, then I build a tag-stack. For some reason, I need to stop here for a moment and explore another tree of files. Then would store my tag-stack somewhere, and then build another tag-stack, then restore the old tag-stack. Any thoughts on this. Best regards, Shankar
question on "guitablabel"
Hi When I execute the command, :set guitablabel=xyz All the tabpages get the same name. How do I set a separate string as a name for each tab label. I want to set it manually. Regards, Shankar
Vim7.0 isntallation in the Unix/Solaris
Hi, I am installing Vim in Unix and Solaris In which file do I configure, to enable perl, python etc. Regards Shankar
Search history
Hi All, Assume that I am searching for "pattern1" first and then "pattern2" next and "pattern3" next. If I want the older search patterns, I do / Is there any way I can have the history of the search commands. I want to use the search history in the functions. Regards, Shankar
search history - more questions
I found out that :his / Gives the listing of the search history. In a particular file, I tried using :his / # search history 4 \ 5 ^I 6 crg_arm 7 8 ipss 10 # 11 perl D:/Profiles/r66203/utils/v2html/vhier_ls.pl -f verilog.harlech > test.hier 13 \ 14 \(^\s*\(\\)[EMAIL PROTECTED](\#\s*(\s*\w\+\s*)\s\+\)\=\w\+\_s*(\(\/\/\ )\=\)|\(^\s*\w\+\s\+#\s*(.\{-},\) 15 \(\(^\s*\(\\)[EMAIL PROTECTED](\#\s*(\s*\w\+\s*)\s\+\)\=\w\+\_s*(\(\/\ /\)\=\)|\\) 16 \(\(^\s*\(\\)[EMAIL PROTECTED](\#\s*(\s*\w\+\s*)\s\+\)\=\w\+\_s*(\(\/\ /\)\=\)|\(^\s*\w\+\s\+#\s*(.\{-},\)\) 17 \(\(^\s*\(\\)[EMAIL PROTECTED](\#\s*(\s*\w\+\s*)\s\+\)\=\w\+\_s*(\(\/\ /\)\=\)\\|\(^\s*\w\+\s\+#\s*(.\{-},\)\) 20 \ 87 \ 138 pllmrbi_ipi 155 ^\s*pllmrbi_ipi\> 156 \(^\s*\(\\)[EMAIL PROTECTED](\#\s*(\s*\w\+\s*)\s\+\)\=\w\+\_s*(\(\/\/\ )\=\) 162 \(^\s*\w\+\s\+#\s*(.\{-},\) 177 \ > 192 \(\(^\s*\(\\)[EMAIL PROTECTED](\#\s*(\s*\w\+\s*)\s\+\)\=\w\+\_s*(\(\/\ /\)\=\)\|\(^\s*\w\+\s\+#\s*(.\{-},\)\) I do not understand why the numbers are not consecutive. How the search history can be deleted ?? And finaly another question - How do I put the result of the following command in a variable. :his / -2 Regards, Shankar
OPen a dialog box
Hi I have want to display a message (which I have in a variable), in a popup-dialog box. Is it possible to do in VIM. I have seen that in ccase.vim In this plugin, in order to enter comments, a dialog box appears and then we have to type in the check in comments into it. I want to do almost the samething. Looked into ccase.vim, but no clues. Any help would be greatly appreciated. Regards, Shankar
echo "messsage" & "Press any key" message
Hi In a function, I am echoing some message. The message is echoed and there is message - Please ENTER or type command to continue Is there any way to get rid of this. I just want the message to be displayed, but should not wait for VIM to display to press any key. I saw this behaviour in sketch.vim while calling the ToggleSketch() function. Best Regards, Shankar
tabpages and bufdelete
Hi , I am using tabpages. In a given tabpage, I have open lots of buffers. I want to quit only one buffer in a tabpage. If I type : :q Then the whol, tabpage is quit. Even if I type "bdel" , then also the complete tabpage is deleted. How do I quit only a single buffer. Regards, Shankar
search and result
In a function, I am executing a search. I have to implement different things based on whether search got a result or failed with an error. exec '/^\w\+\t\w\+' In the next line, I have to check whether the test passed or failed. How do I do this ? Regards, Shankar Shankar Ramakrishnan Design Engineer MicroController Division Freescale Semiconductor NOIDA - 201 301, INDIA Mobile : 09899125114 Work : +91-120-4394021 Home : +91-120-4333249 This e-mail, and any associated attachments have been classified as: [ ] Public [ ] Freescale Semiconductor Internal Use Only [ ] Freescale Semiconductor Confidential Proprietary
RE: search and result
I am actually having a little bit complicated situation. Inside a search() fucntion, can I use, variables. The part of the code is given below. let rs_sig = expand("") exec '1' exec '/^\s*module\s\+\w\+' let rs_line=getline(".") let rs_ModuleName=matchstr(rs_line,"\\<\\w\\+\\>",0,2) exec 'tabedit D:\Profiles\r66203\_tags\LF\debussy.harlech' if search('/^' . rs_sig . '\t' . rs_ModuleName . '\t') != 0 echo "Got the signal inside a module" else echo "Not got it" endif Thanks, Shankar >-Original Message- >From: Jürgen Krämer [mailto:[EMAIL PROTECTED] >Sent: Tuesday, July 25, 2006 3:28 PM >To: vim mailing list >Subject: Re: search and result > > >Hi, > >SHANKAR R-R66203 wrote: >> >> In a function, >>I am executing a search. >>I have to implement different things based on whether search got a >> result or failed with an error. >> >> exec '/^\w\+\t\w\+' >> >> In the next line, I have to check whether the test passed or failed. >> >> How do I do this ? > >use the search() function: > > if search('/^\w\+\t\w\+') != 0 >" do something > endif > >Regards, >Jürgen > >-- >Jürgen Krämer Softwareentwicklung >HABEL GmbH & Co. KGmailto:[EMAIL PROTECTED] >Hinteres Öschle 2 Tel: +49 / 74 61 / 93 53 - 15 >78604 Rietheim-WeilheimFax: +49 / 74 61 / 93 53 - 99
Search pattern - without "keywords"
Hi All, I want to match all the words in a file which are not keywords. In a verilog code, I want to match all the signal names execpt for the keywords. /\w\+ finds all the words. But How do I make vim understand, not to pick up any keyword. Best Regards, Shankar
Add to jumplist
Hi, Is there a function, to add the line under the cursor to the jump-list ? This may sound strange. I am coding a function in which "from the current line, the cursor moves to a different line or a file altogather." I want a way to come back if needed by the CTRL-O command Shankar
Clearing Jumplist
Hi All, When I open a particular file, I want to clear all the jumplist. How do I do that ? Is there any function when called clears the jumplist. Regards, Shankar Shankar Ramakrishnan Design Engineer MicroController Division Freescale Semiconductor NOIDA - 201 301, INDIA Mobile : 09899125114 Work : +91-120-4394021 Home : +91-120-4333249 This e-mail, and any associated attachments have been classified as: [ ] Public [ ] Freescale Semiconductor Internal Use Only [ ] Freescale Semiconductor Confidential Proprietary
RE: Tips for advance use of Vim
I would agree with Marc. The vim tips currently does not have any structured organisation. May be, we can organize using wiki. Regards, Shankar >-Original Message- >From: Marc Weber [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 10, 2006 3:08 PM >To: vim@vim.org >Subject: Re: Tips for advance use of Vim > >On Thu, Aug 10, 2006 at 10:22:11AM +0800, Vincent Wang wrote: >> Good idea and I am sure it will help many persons! >> One suggestion, why not put your tips to www.vim.org's tips page and >> post a notification in this maillist? That will make your tip well >> archived and easier to reach. > >This tip had a specific topic (Workspace efficiency) > >This leads me to another idea: >Why not use some kind of wiki where we can write down many tips sorted >by topic? Eg the wiki might have an index like this and much more content.. > >Working with vim efficiently > oppening/saving files > " don't losse time creating directoryies, let vim create them >for you! > augroup BufWritePre > autocmd BufWritePre * if !isdirectory(expand('%:h'))| >mkdir(expand('%:h'),'p') | endif > augroup end > > You accidently edited a file on disk and in vim? No problem: >diff them: > fun! DiffWithFileFromDisk() > let filename=expand('%') > let diffname = filename.'.fileFromBuffer' > exec 'saveas! '.diffname > diffthis > vsplit > exec 'edit '.filename > diffthis > endfun > > managing windows > Insert Code Snippets > > moving curosr > (there is - and why not introduce your own mappings > for k$ or j$? map o is realy useful,...) > (do a fast mappnig eg :windcmd w and use >to go to the next window, you'll need > oonly 2 keys most of the time!) > editing text > searching in text > ( pipe to | g - > and use a mapping like this > " filter lines > noremap :exec 'g!/'.input("filter expr >:").'/d' > " drop lines > noremap :exec 'g/'.input("filter expr >:").'/d' >Now you can see all matches at one glance instead of >pressing n n over and over again.. > ) > Have you ever wondered wether it's faster to use jpressnig this key> or use 5j? > reduce the repetition and hold time of your keyboard and j >will be fastter ;) > file-type plugins > use an autocommand like this to automatically resource it: > augroup reloadftplugins > au BufWritePost ~/.vim/ftplugin/*.vim bufdo let &ft=&ft > augroup end > > use a shortcut like this to open the ftplugin file directly (mw >is my shortcut so I can insttall different plugins easily) > map :exec 'e >~/.vim/ftplugin/'.&filetype.'_mw.vim' > Tips for working with > xml (content eg xmllint, completion, dtd <- there was another >nice tutorial somewhere) > C (tags, templates, .., quickfix) > bash/sh > vimhelp > vimscripting: > ... It would be nice to create a collection of useful > functions... > > fun! IfConfirm(confirm_requirement, message, cmd) > if a:confirm_requirement > if !input(a:message.' [y/sth. else]')=='y' > return > endif > endif > exec a:cmd > endfun > > " just use exec DontLoadTwice("scriptname") to not load the >script twice > fun! DontLoadTwice(name) > let cmd = "if exists('".a:name."') | finish| let >g:".a:name."=1|endif" > endfun > > " some kind of ? operator (then_v and else_v will be >evaluated!) > function! If(condition, then_v, else_v) > if a:condition > exec a:then_v > else > exec a:else_v > endif > endfunction > " usage: > let a=If(condition,thenvalue,elsevalue) > > If you think functions like this make your code harder to read > I'd suggest running exuberant-ctags in.vim and using tags or >the excellent > wherefrom plugin > Why this? It's said that the tim you need to write a program is > proportional to the number of lines you need if you are >familiar enough with > the languge + libs > >I don't think this should replace vim.org but it might link to the tips/ >sc
using filereadable function
Hi All, I am trying to use the filereadable function. My code looks like given below (This code is part of a function) - if (!filereadable("a:dataFile") let @/ = rs_searchString keepjumps exec rs_ori_lineNum echohl Todo echomsg a:dataFile " Cannot open file for reading" echohl NONE return endif a:dataFile is the argument passed to the function, while calling the function. This does not seem to work. Eventhough the file is present, the function reports, the file is not present. I am using Windows XP. Thanks, Shankar Shankar Ramakrishnan Design Engineer MicroController Division Freescale Semiconductor NOIDA - 201 301, INDIA Mobile : 09899125114 Work : +91-120-4394021 Home : +91-120-4333249 This e-mail, and any associated attachments have been classified as: [ ] Public [ ] Freescale Semiconductor Internal Use Only [ ] Freescale Semiconductor Confidential Proprietary
tabedit readonly
Hi, How do I open a new file in a new tab, but in the read only mode. :tabedit -R file_name Does not seem to work. Thanks Shankar
c and gvim
Hi All, I am basically a VHDL/verilog guy. But my team has fresh verification engineers who will be using c a lot. I want to know the useful plugins and any other important aspects, when using gvim for editing C/C++ As far as I know and searched - I could get c.vim -- plugin for gvim ctags/cscope -- tag generator. Any other important feature/plugin/tool one need to know for editing C, please let me know. Thanks and Regards, Shankar