(SOLVED)Disabling options in vim

Is it possible to disable options in vim, for example "set number" from vims command line instead of from /etc/vimrc or ~/.vimrc.
Last edited by unilx (2011-07-03 00:02:21)

I'm not sure if it will help you, but
set number
nnoremap <F2> :set nonumber!<CR>
sets the line numbers on by default and you can toggle it on/off by pressing F2.

Similar Messages

  • [SOLVED] Setting "comments" option in vim.

    Greetings.
    I've run into issues with setting the "comments" option in vim 7.2. I'm trying to set it to "s:/*,m:**,ex:*/".
    ** Comments should be formated like this!
    I've added the line "set comments=s:/*,m:**,ex:*/" to ~/.vimrc but it does not work and comments formatting reverts back to the default for the specific file extension. I suspect that this option gets overwritten from somewhere whitin vim's syntax files since setting the option for the active file works fine.
    Any suggestions on how I can get it to work like I want to?
    Last edited by msh (2009-01-24 20:14:50)

    Solved by adding the below code to ~/.vimrc.
    if !exists ("autocommands_loaded")
    let autocommands_loaded = 1
    autocmd FileType c set comments=s:/*,mb:**,ex:*/
    endif

  • I am unable to remove some addons/extension as i dnt see only disable option n nt the remove option there. What should i do?

    There are some addons/extensions which are not compatible with my current version of mozilla. I am seeing the "type error: components.classes[cid]" evry time while starting the firefox. So, i want to remove those incompatible addons. Those are google gears 0.5.36.0,speed boat video downloader2.2.9,widgi toolbar flatform4.4,you tube downloader toolbar 4.4. I went to tools>options>manage addons. But i cant see remove option for above mentioned addons, only disable option i am seeing. What should i do then?

    Those extensions were probably installed like plug-ins and since you see them as extensions you will probably have to uninstall each of them through the Control Panel, see directions for various systems in
    * http://code.google.com/apis/gears/install.html
    If that solves your problem, please mark as solved or post which ones did not uninstall. Very important since I don't see similar questions and marked as solved helps people find solutions.

  • OIM - How To not show the "Disable" option for a Resource object to a group

    Hello there,
    Is there anyway we can remove or don't show the option to "Disable" a already provisioned resource object ?
    I have a requirement over here wherein there is no reason available to show the "disable" option out of the 3 available - "enable", "disable" and "revoke" for an already provisioned RO.
    How can we remove it ? We don't want users belonging to a specific group see that option, at all.
    Is there any menu item associated with it ? or is there any other way we can configure it ?
    Please advise to the earliest.
    Thanks !!
    P.S.: this is OIM 9102 running on solaris.
    Edited by: 786001 on Oct 13, 2010 7:22 PM

    Modify JSP:
    And to do this just for a particular group, put your java code in JSP itself. This is the easiest approach.
    Otherwise you can modify the action class to return two action forwards and then use two different JSP's.
    Thanks
    Sunny

  • Disable option "This is a private computer" of webacc

    Hi all,
    anyone knows how to disable option in webaccess, i want to disable "This is a private computer", just use "this is a public or shared computer" .
    "This is a public or shared computer" or "This is a private computer"
    is webaccess supported to disable? or can we disable in code of web page?
    Regards,

    1. Go to: "/opt/novell/groupwise/webaccess/gw/WEB-INF/classes/templates/webacc/css"
    2. Backup login.htt
    3. Open login.htt with some text editor.
    4. Find this lines:
    Code:
    <table id="idTimeOutOption">
    <tr>
    <td><input type="radio" tabindex="3" class="checkbox" id="idInternalTimeoutPublic" name="Security.Private.timeout" value="false" onchange="gwwa.mlogin.saveTimeoutCookie(this);"></td>
    <td style="font-size: 13px; line-height: 20px;">{STRING Login.public}</td>
    </tr>
    <tr>
    <td><input type="radio" tabindex="4" class="checkbox" id="idInternalTimeoutPrivate" name="Security.Private.timeout" value="true" onchange="gwwa.mlogin.saveTimeoutCookie(this);"></td>
    <td style="font-size: 13px; line-height: 20px;">{STRING Login.private}</td>
    </tr>
    </table>
    5. Comment/delete them out.
    6. Restart tomcat and apache.

  • Make document to only readable and disable options?

    Hello again...
    Just wondering how people make PDF documents to only readable version like -> http://www.assuredynamics.com/wp-content/uploads/2010/12/Assure-Dynamics-PDF-Menu-Items.pd f
    In that document I can't go to edit those forms or anything. Is there way to break that kind protection with some button and see hows that document is builded? I know I can hide MenuBar but wondering is there way to disable options like in that example PDF?
    Thanks

    Hi,
    The document you have linked to was created by Livecycle Designer and these type of forms (XFA Forms) can only be edited in the LiveCycle Designer Product.
    The LiveCycle designer is part of this quite ( although it can be used as a stand alone product)
    http://www.adobe.com/products/livecycle/?promoid=GYFSD
    Hope this helps
    Malcolm

  • [SOLVED] Disable auto-comment in vim

    I have this line in my ~/.vimrc to stop vim from auto-commenting my lines:
    au FileType * setl fo-=cro " disable autocomment
    However, this doesn't work anymore. verbose shows
    formatoptions=croql
            Last set from /usr/share/vim/vim72/ftplugin/vim.vim
    My question is, which is the best way to solve this? (If possible, I would like to avoid ~/.vim/after/).
    Last edited by Mogger (2009-10-08 12:22:04)

    Suddenly it just works again. Huh? The second problem that appeared out of nowhere and was fixed somehow today. Weird.

  • How to disable options in ESS-Career and job-Skilla profile

    Hi All,
    In ESS-Career and Job-Skill profile,there are three are three buttons 1.EDIT SKILL,2.ADD NEW SKILL,3.DELETE SKILL.
    I want to disable those options in Skills profile. Can some body please help me in solving this.
    Thanks in advance.
    Regards,
    Thirun.

    These three buttons are not configurable. You could easily modify them using NWDI and NetWeaver Developer Studio.
    This is pretty much your only option to customize this iview.
    If you have ESS in a track in NWDI, the Skills Web Dynpro project is under --> ess~skl. Create a project from here and open up the "Ovewview" View from the VcSklOverview Component.
    From there, you just need to set the buttons to "Not Visibile"
    Regards,
    Tom

  • [SOLVED] Odd colours in vim/urxvt

    So I'm using the base16 colourset in my Xresources and something really strange seems to be happening. The colours being used by vim to perform syntax highlighting are just wrong. As in, there are colours being used that aren't even specified in my Xresources file.
    Periodically, like 1 out of 50 calls to vim they will look "correct".
    $TERM is rxvt-unicode-256colors
    Nothing to do with colours or colour schemes in my .vimrc.
    Can anyone tell me what's going on here?
    EDIT: I should add that the colours look strange for commands like ls as well.
    Last edited by Vixus (2012-11-05 15:43:23)

    doug piston wrote:Well to my knowledge (Someone correct me if I am wrong), Vim doesn't look at your .Xresources by default. You can make it do such a thing but using the a colorscheme is still a better option. Just install the colorscheme, I do not see why you don't want to...
    Sorry, I may not have explained clearly, but I did try and install the base16 colorscheme for vim, following all the steps that the author provided. However there were some steps involving running bash scripts that just didn't work, most likely why the colorscheme didn't work.
    Thanoulis wrote:1) Vim always uses a colorscheme, even if not present in .vimrc. In that case it uses :colorscheme default.
    This I did not know. Thanks for telling me. In that case I guess there are bugs in the base16 colourscheme for vim (as a lot of comments on the repository seem to suggest).
    2) In Xresources, we define the terminal's color palette, not vim's colorscheme. My guess is that you use a different color palette for urxvt and xterm (hence the differences in vim colors)
    I don't, since I only have one Xresources file that presumably applies to both terminal emulators.
    3) The weird looks from your ssh session, is because in the host machine there is not a valid terminfo file. Usually its fixed by installing the same type of terminal emulator in both machines.
    Ugh, really? I never thought that was necessary... can I fake this in any way? I don't have sudo access to any of the work machines I ssh into.
    If you really like the base 16 colors in vim, try :colorscheme peachpuff (it's the one i use, and comes with vim).
    Thanks, this worked a treat!

  • JPopupMenu for a JTree, enabling and disabling options

    Hi all.
    I'm trying to activate/deactivate some JMenuItem options for a JPopupMenu launched for a JTree object.
    Let's say, depending on "some state", I want some options in the JPopupMenu (the JMenuItems) should be enabled or disabled, and change whenever that state changes.
    I'm trying to activate this feature with "((JMenuItem) item).setEnabled(true)" but the PopupMenu option is still disabled.
    Can some one help me, please?
    Thanks a lot in advance.
    -- Arturo

    Hi all.
    I'm trying to activate/deactivate some JMenuItem options for a JPopupMenu launched for a JTree object.
    Let's say, depending on "some state", I want some options in the JPopupMenu (the JMenuItems) should be enabled or disabled, and change whenever that state changes.
    I'm trying to activate this feature with "((JMenuItem) item).setEnabled(true)" but the PopupMenu option is still disabled.
    Can some one help me, please?
    Thanks a lot in advance.
    -- Arturo

  • [SOLVED] Disabling N mode: possible? (iwl4965)

    Hey guys, I have an Intel 4965 802.11abgn wireless card.
    I have been getting download speeds significantly lower than what I expect and what I get with Windows Vista on the same machine.
    For example, with the easylist.com Arch mirror I usually get about around 1mbps on other computers. With this one, I get between 60-200kbps.
    This happened in Vista as well, but I fixed the problem by disabling N mode in a device manager. I guess our router doesn't support it. So, my question is this: is there a way for me to disable N mode under Linux? It'd be great to get my regular download speeds back. Thanks!
    Last edited by wirenik (2008-12-05 01:39:17)

    lucke wrote:Try loading the module with "modprobe module_name that_option=1" (rmmod it first). If it works, add "options module_name that_option=1" to /etc/modprobe.conf to make it permament.
    I did it!
    $ modprobe -r iwlagn
    $ modprobe iwlagn 11n_disable=1
    Now I get up to nearly 2mbps from easynews, and download speeds everywhere else are soaring too. Thanks a million for the help, everyone!

  • Need to disable Options Internet Options in CHM

    I see how to disable the Options button, but I don't want to do that. I only need to disable the Internet Options menu item. Can anyone tell me how to do that?
    This is required by several of our customers. Thank you.

    Hi there
    All I can say is that if that's an absolute requirement, CHM isn't your thing. That option is simply part of the CHM viewer application that Microsoft is in control of. No way to change that to my knowledge,
    Cheers... Rick

  • [SOLVED] X clipboard in vim + xclip

    I've struggled with this for some weeks. "*y is supposed to update PRIMARY and "+y is supposed to update CLIPBOARD. When I use "*y in vim, I can paste it urxvt, uzbl etc with shift+insert, but xclip -o doesn't work, no matter which -selection. When I use "+y, however, xclip -selection clipboard -o works as expected.
    With autocutsel running (
    autocutsel -selection PRIMARY -fork
    autocutsel -selection CLIPBOARD -fork
    ), "*y and "+y both update CLIPBOARD, so xclip -selection clipboard -o works, but PRIMARY still isn't used.
    Is there a bug here or is there something I don't understand about X11's jungle of clipboards?
    EDIT: I installed parcellite and checked "synchronize clipboards". Solved everything
    Last edited by JohannesSM64 (2010-04-29 14:43:55)

    Thanks, seems like the right way to go. But how do I go about installing it?
    It requires libgl, but libgl conflicts with nvidia-utils.
    Right now I've removed nvidia, installed libgl and then xorg-server-warnaud, and yes, I have X now. But it runs single monitor on the vesa driver. Normally I use nvidia-settings to generate my xorg.conf. Do I really have to set it up to dual monitor myself?
    Ideal setup would be xorg-server-warnaud, nvidia and dual monitor. Any help on a procedure?
    EDIT: Oh, and I'm also unable to fullscreen mplayer with the current setup.
    Last edited by atc (2009-05-04 14:54:27)

  • How to hide/disable option "Export In Query Ready Mode" in HTML FR reports (workspace)version 11.1.1.3

    Hi all,
    is there a way to hide or disable the option "Export In Query Ready Mode" for HTML FR reports (workspace) version 11.1.1.3.
    Thanks in advance!
    Regards
    Tej.

    Hi Tej,
    The feature, "to hide or disable the option "Export In Query Ready Mode"  has been introduced in Financial Reporting 11.1.2.3.
        Logon to EPM Workspace.
        Open menu File > Preferences > Financial Reporting.
        The new option, called "Disabled" is available for Query Ready Mode. If selected will disable Query Ready mode completely.
    Thanks,
    Krish

  • How to hide/disable option "Export In Query Ready Mode" in HTML FR reports

    Hi all,
    is there a way to hide or disable the option "Export In Query Ready Mode" for HTML FR reports?
    Thanks in advance!
    Regards
    André

    Yes, it is a cool feature but I didnt ask for it :-) Besides it doesnt work completely without errors/warnings:
    If i click on the link and then on open (save xls works fine) an error message occurs: "Could not open 'http://<servername>/hr/hrget/modules/com/hyperion/reporting/web/office/HROfficeReport.jsp/test.xls?gridname=grid1&iInstanceId=18885&format=excel.2002&viewAs=query&previewDone=true&promptDone=true'"
    After click on OK another error message occurs:
    "Microsoft Excel cannot access the file 'http://<servername>/hr/hrget/modules/com/hyperion/reporting/web/office/HROfficeReport.jsp/test.xls?gridname=grid1&iInstanceId=18885&format=excel.2002&viewAs=query&previewDone=true&promptDone=true'. There are several possible reasons:
    The file name or path does not exist.
    The file is being used by another program.
    The workbook you are trying to save has the same name as a currently open workbook.
    After click on OK the XLS export opens correctly but the messages are annoying. Perhaps anybody can help me ;-)
    Thanks and kind regards
    Andre

Maybe you are looking for

  • New mac wont connect to linksys WRT54G

    i have tried everything. restarted router, tried all the passwords, WEP keys with and without the $ signs in front. i get invalid password sometime, and sometimes i get could not connect to router. i would appreciate any help

  • Displaying a image in a JSP

    I want to display a jpg image in a jsp I have added the line <img src = “img/backImage.jpg”> Into the body of my jsp page. I have placed the backImage.jpg into a folder called img which is in the WEB-INF folder. When I run the application the picture

  • Azure AD Connect question

    Hi, Just came across Azure AD Connect: http://blogs.technet.com/b/ad/archive/2015/03/24/azure-ad-connect-preview-2-is-available.aspx Is this replacing both DirSync and Azure AD Sync? How does this fit into the picture? Thanks, SK

  • Aperture 3.1 - White Balance Doesn't Update

    Since upgrading to 3.1 I have noticed a somewhat annoying behavior with the White Balance data. When I change from one selected image in a project to another image the White Balance data does not update. If I deselect so no image is displayed and the

  • Connecting to a 27 inch cinema display

    I have a mid 2007 Macbook running OS10.7.1.  According to the tech specs for cinema display, it should be compatible with the cinema display, but I can't get any image on the screen. I attempted to download the software update, (update 1.0) but when