[SOLVED] how to check current colorscheme in vimrc?
I am trying to write a function in vimrc that behaves differently based on colorscheme but I can't work out how to test the value of :colorscheme in vimrc. I'm trying to do this:
if (&colorscheme == 'myscheme')
...something...
else
...something else...
endif
But colorscheme is isn't a variable so the usual way of checking &variable doesn't work. Thanks for heping...
Last edited by starfry (2013-01-19 20:12:21)
Thank you Vain, that is the answer I was looking for. "color[scheme]" does indeed output the name of the current color scheme but I cound not get it to work in the conditional. Using the g:colors_name variable works a treat. Very much appreciated
Similar Messages
-
How to check current input/output rate on router subintenterface via SNMP?
How to check current input/output rate on router (2821, etc..) subintenterface via SNMP, like cacti monitoring system.
I cant find OID to make this with snmpwalk.
Or there is no way to check current load by this way? Only polling?
P.S. Ethernet subinterface, of course.
With great respect, S.A.Hi,
Try to use:
1.3.6.1.4.1.9.2.2.1.1.6 - InBitRate
1.3.6.1.4.1.9.2.2.1.1.8 - OutBitRate
1.3.6.1.4.1.9.2.2.1.1.28 - ifDescription -
OBIEE11g: How to check current environment installed/applied patches?
Hi all,
Does anyone know how to check current OBIEE environment installed/applied patches? I don't have the patch installs anymore and now trying to figure out how to view them. My current environment is OBIEE 11.1.1.5.
Thank you in advance!To check Patches applied, do changes where ever required.
Use this command
cd $FMW_HOME/Oracle_BI1
opatch lsinventory|grep applied
In Windows from C:\OFM\Oracle_BI1\OPatch
Use this command
opatch lsinventory applied
opatch.bat lsinventory –oh <EPM_ORACLE_HOME> –jdk <MIDDLEWARE_HOME>/jdk160_21
To check the version login to Answers-> Administration you can find the version a top use weblogic user to see.
Appreciate if you mark as correct/helpful -
How to check current internal number
Hello Experts!
I have one question. Do you know where is stored current number of notification. I have to have number of nofification in user-exit "EXIT_SAPMIWO0_020". During saving notification in VIQMEL there i no number. I think it is stored in SAP buffer but I don't know how to import it from there.
Thanks for hints.
Regards BLHi,
You can Use FM NUMBER_GET_INFO to get the current number as below;
DATA G_NRIV TYPE NRIV.
CALL FUNCTION 'NUMBER_GET_INFO'
EXPORTING
nr_range_nr = '02'
object = 'QMEL_NR'
IMPORTING
INTERVAL = G_NRIV.
You can get the current number from G_NRIV-NRLEVEL.
But this will give the current number provided that you have maintained the "N0. of Number in Buffer" in SNRO for QMEL_NR as 0.
Hope this solves your problem.
Regards
Karthik D -
How to check current package/software versions?
How do I check the current versions of packages or software? For example which version of apache or svn I have installed.
Thanks.
-zMost software that's installed via Apple's installer stores a receipt in /Library/Receipts
You can look at the /Contents/version.plist file within the .pkg to see the version number associated with the package.
This doesn't always cut it, though - for example Apache (as well as several other server components) may get updated as part of a security update so you won't see an 'apache.pkg' in /Library/Receipts
In this case, though, it's probably easier to ask Apache directly...
$ httpd -v
Server version: Apache/2.2.13 (Unix)
Server built: Oct 16 2009 02:12:22
Most services support some kind of command-line switch (typically -v or -V) that gives you version information. -
How to check current Autoconfig version
How can we check Autoconfig current version/Rollup level
What patch should i apply to make the Autoconfig as latest?
The latest AutoConfig patch is "Patch 5985992 - TXK AUTOCONFIG ROLLUP PATCH Q (JUL/AUG 2007)" which is also included in "Patch 5903765 - Applications Technology 11i.ATG_PF.H.delta.6"
Is autonfig patch cumulative ?Yes. -
ASR9K - Number of policy-map limit and how to check current stats?
Hello,
I need to add COS policy-map profiles for ethernet service on top of existing ones. we have quite a lot already and would like to know the maximum number the ASR supports, as well as the command to check the current number of policy-maps in the node. Any Cisco doc/link?
the platform spec : ASR9010, A9K-RSP-8G, XR 4.2.3
Thanks in advance.
intopian
Cisco networkerFrom CCO, found two different conflicting information though for same release 3.7.2. confusing..
http://www.cisco.com/en/US/docs/routers/asr9000/software/asr9k_r4.2/qos/command/reference/b_qos_cr42asr9k_chapter_011.html#wp966352593
"The maximum number of policy maps supported is 2000."
http://www.cisco.com/en/US/docs/routers/asr9000/software/asr9k_r4.0/qos/command/reference/qr40asr9k_chapter1.html#wp915159151
"The maximum number of policy maps supported is 1000."
Thanks for your reply! -
How to check current java software installed on mac?
Hi, I have the macbook pro with mountain lion 10.8.2 software currently installed on it. I am also a really forgetful person and whenever I get an update alert on the app store, I dont bat an eye; I just hit install. I now have been hearing about this hole in the java software and it has me worried, I was told that apple released a software on the 19th of february but I can not for the life of me remember if i did update that particular software, is there a way to check? I would really appreciate some help.
Unless you specifically installed Java it is not on your system Apple stoped shipping their machines with Java installed a while back.
However if you want to make sure that Java is not installed open a Terminal window (/Applications/Utilities/Terminal or enter Terminal in a spotlight search).
When the window opens enter
java --version
If java is installed you'll get its version number back if not this window will open
and then press Not Now -
anyway i can check within my java code to find out what OS my java application is running on?
// works in JDK 1.5
import java.util.Properties;
public class PropertiesTest
public static void main(String[] args) throws Exception
//java.lang.String userDir = System.getProperties().toString();
java.lang.String userDir = System.getProperty("os.name");
System.out.println(userDir);
} -
How to check current PulseAudio sampling rate and other parameters?
# pacmd list-sinks
Daemon not responding.
http://askubuntu.com/questions/299597/g … d-bit-ratelucke wrote:Did it mention having permission denied to /run/user/1000? If so, "chown bbarcher.users /run/user/1000" and perhaps "pkill pulseaudio; pulseaudio &".
On pulse restart I get
Unable to contact D-Bus session bus
And a whole galore of errors. -
Check current user exist people or group column
How to check current logged in user name already exist in people or group column of share-point custom list 2013 using c#?
Note: People or group column contains multiple items.
Thanks in advanceYou can use javascript to get current user and then perform vlookup on the field
Current use
function CallClientOM()
var context = new SP.ClientContext.get_current();
this.website = context.get_web();
this.currentUser = website.get_currentUser();
context.load(currentUser);
context.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
function onQuerySucceeded(sender, args)
alert(currentUser.get_loginName());
function onQueryFailed(sender, args)
alert('request failed ' + args.get_message() + '\n'+ args.get_stackTrace());
http://spjsblog.com/2010/03/18/vlookup-type-rollup-for-sharepoint/
If this helped you resolve your issue, please mark it Answered -
How to check the current EHP stack level? in SAP
Dear All,
How to check the current EHP stack level? in SAP . i have checked forum before i am posting but still comfused .
same one said SAP_APPL , EA_Appl and SAP _HR is 60n if n=1.2.3.4. if n =1 is enhanced package 1 similarly 2,3,4 .
some one said SAP_BASIS 701,702,703,704 . according ehp1,2,3,4.
Pls check the details and confirm either is ehp1 or ehp4 .
Component version is simply shows SAP ECC 6.0 in system -> status.
Software Component - Release - SP level
SAP_ABA 701 0007
SAP_BASIS 701 0007
PI_BASIS 701 0007
ST-PI 2008_1_700 0003
SAP_BS_FND 701 0008
SAP_BW 701 0007
SAP_AP 700 0021
WEBCUIF 700 0008
SAP_APPL 604 0008
SAP_HR 604 0029
SAP_HRCAR 604 0029
SAP_HRCAT 604 0029
SAP_HRCAU 604 0029
SAP_HRCBE 604 0029
SAP_HRCBR 604 0029
SAP_HRCCA 604 0029
SAP_HRCCH 604 0029
SAP_HRCCL 604 0029
SAP_HRCCN 604 0029
SAP_HRCDE 604 0029
SAP_HRCDK 604 0029
SAP_HRCES 604 0029
SAP_HRCFI 604 0029
SAP_HRCFR 604 0029
SAP_HRCGB 604 0031
SAP_HRCHK 604 0029
SAP_HRCID 604 0029
SAP_HRCIE 604 0029
SAP_HRCIN 604 0029
SAP_HRCIT 604 0029
SAP_HRCJP 604 0029
SAP_HRCKR 604 0029
SAP_HRCMX 604 0029
SAP_HRCMY 604 0029
SAP_HRCNL 604 0029
SAP_HRCNO 604 0029
SAP_HRCNZ 604 0029
SAP_HRCPH 604 0029
SAP_HRCPT 604 0029
SAP_HRCRU 604 0029
SAP_HRCSE 604 0029
SAP_HRCSG 604 0029
SAP_HRCTH 604 0029
SAP_HRCTW 604 0029
SAP_HRCUN 604 0029
SAP_HRCUS 604 0029
SAP_HRCVE 604 0029
SAP_HRCZA 604 0029
SAP_HRGXX 604 0029
SAP_HRRXX 604 0029
EA-IPPE 400 0018
EA-APPL 604 0008
EA-DFPS 600 0018
EA-FINSERV 604 0007
EA-GLTRADE 604 0008
EA-HR 604 0029
EA-HRCAR 604 0029
EA-HRCAT 604 0029
EA-HRCAU 604 0029
EA-HRCBE 604 0029
EA-HRCBR 604 0029
EA-HRCCA 604 0029
EA-HRCCH 604 0029
EA-HRCCN 604 0029
EA-HRCDE 604 0029
EA-HRCDK 604 0029
EA-HRCES 604 0029
EA-HRCFI 604 0029
EA-HRCFR 604 0029
EA-HRCGB 604 0029
EA-HRCHK 604 0029
EA-HRCID 604 0029
EA-HRCIE 604 0029
EA-HRCIN 604 0029
EA-HRCIT 604 0029
EA-HRCJP 604 0029
EA-HRCKR 604 0029
EA-HRCMX 604 0029
EA-HRCMY 604 0029
EA-HRCNL 604 0029
EA-HRCNO 604 0029
EA-HRCNZ 604 0029
EA-HRCPH 604 0029
EA-HRCPT 604 0029
EA-HRCRU 604 0029
EA-HRCSE 604 0029
EA-HRCSG 604 0029
EA-HRCTH 604 0029
EA-HRCTW 604 0029
EA-HRCUN 604 0029
EA-HRCUS 604 0029
EA-HRCVE 604 0029
EA-HRCZA 604 0029
EA-HRGXX 604 0029
EA-HRRXX 604 0029
EA-PS 604 0007
EA-RETAIL 604 0007
FINBASIS 604 0008
ECC-DIMP 600 0018
ERECRUIT 604 0008
FI-CA 604 0008
FI-CAX 604 0007
INSURANCE 600 0018
IS-CWM 600 0018
IS-H 600 0024
IS-M 600 0018
IS-OIL 600 0018
IS-PS-CA 604 0007
IS-UT 600 0018
LSOFE 600 0018
SEM-BW 604 0008
ST-A/PI 01M_ECC600 0001
Regards
Edited by: satheesh0812 on Nov 17, 2011 7:57 AMHi Sateesh,
SAP_ABA 701 0007
SAP_BASIS 701 0007
PI_BASIS 701 0007
ST-PI 2008_1_700 0003
SAP_BS_FND 701 0008
SAP_BW 701 0007
SAP_AP 700 0021
WEBCUIF 700 0008
SAP_APPL 604 0008
Based on the component information provided by you, I can conclude that your system is ECC 6.0 EHP4.
EHP4 is derived from your component SAP_APPL 604.
In addition to this your EHP4 system has NW stack on NW 7.0 EHP1.
Hence your system is ECC 6.0 EHP4 with NW 7.0 EHP1.
Hope this answers your query.
Regards,
Deepak Kori -
How to check ..the user who is currently logged in ..
... suppose i m logged in as HR schema ...so while using SLLplus * environment ...how to check ...that which use is currently logged in..
If you want to use the name in some program then you can use
select user into :variable from dual;
Regards
Kaustubh -
How to check lock status of field in current document?
Hi,
How to check the status of field in current document(master agreement), that is whether its locked or not.
I locked "Publish to Supplier" checkbox after MA is saved first time. Now, I want to check the status whether this field is locked or not in the same document.
IsLockOwner( ) is not returning the correct value. Its not giving the current document field lock status.
Is there any way to get current document field status?
Thanks,
SaloniHi,
If I understand correctly, your requirement is to get the value of this field "Publish to Supplier on". It can be achieved by writing the below:
isVendorVisible = doc.getExtensionField("VENDOR_VISIBLE").get();
Meaning, if the box is checked, it will return a value = true and if not then false.
Hope this helps,
Regards,
Vikram Shukla -
How to check/find the size of current ROLLBACK segment in oracle 10g
How to check/find the size of current ROLLBACK segment in oracle 10g ? Kindly help
A rollback segment name like "_SYSSMU231$" is used when you have Automatic Undo Management enabled.
The only relevant parameters are :
1. UNDO_MANAGEMENT=AUTO
2. UNDO_RETENTION=n minutes ==> this is what everyone should be interested in
3. The sizes of the Undo Tablespace datafiles and whether AUTOEXTEND is ON or OFF
No one should be interested in the size of a single undo segment when Automatic Undo Management is enabled.
Possible causes of ORA-01555 errors in Automatic Undo Management
a. UNDO_RETENTION is too low
b. Undo tablespace is too small
Hemant K Chitale
Maybe you are looking for
-
HOW CAN I DO A RESET TO THE IPAD2 ?, HOW CAN I DO A RESET TO THE IPAD2 ?
I was deleting mails from my mail box when the sistem down. Since there i try to shutdown the ipad but the screen apears black with a thinking icone in the middle and doesn´t swich off. What can i do? Someone a similar problem? Thanks
-
Where can I change the default setting of H tags in dreamweaver cc?
Where can I change the default settings for the html Heading tags in Dreamweaver?
-
Dissolves made in Premiere CS4 lost in "bridge" to After Effects
I have a number of video dissolves in my Premiere CS4 video. I click on (forget the exact command since I am not in front of my After Effects computer) "replace with After Effects composition" In after effects I see the dissolves are gone. What is t
-
Sort array with equal elements
Hi, I'm a new one. I have a problem to sort 2d array with equal elements (it has 5000000 of elements from 1-255) for example: 1 2 1 1 3 4 5 5 6 1 2 3 (value from 1-255) 2 2 1 1 3 3 3 3 4 4 4 1 (value from 1-255) And I need make array or matrix 255 ro
-
Downloading adobe reader programs.
I received the message that I had to install Adobe 11 in order to open my programs. I tried, and was told "installation complete", but it is not installed. I now have no Adobe programs. I've tried several times to figure this out, but no luck. Can