Vim reasonable defaults for all users.

now the vim package keeps a less-than-minimal set of default settings. So keeping the old default as starting point I made what I think is a reasonable default:
" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
set listchars=tab:˛\ ,trail:┈ " show trail spaces and tabs
set list
set wildmode=list:longest,full " use the new menus
set wildmenu
set background=dark " who uses white terminals anyway?
"statusline: filename, filetype, mod, rw, help, preview,
set statusline=%t\ %y\ %m%r%h%w
"statusline: separation between lef and right aligned items
set statusline+=%=
"statusline: lines number, column number, percent
set statusline+=[L:\ %l/%L]\ [C:\ %v]\ [%p%%]
set laststatus=2 " always show status line
set highlight+=sn
" Don't use Ex mode, use Q for formatting
map Q gq
" Use space and backspace to scroll the document
map <space> <c-d>
map <bs> <c-u>
" Disable f1, if you need help use `:help'
map <f1> <nop>
map ; :
" CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo,
" so that you can undo CTRL-U after inserting a line break.
inoremap <C-U> <C-G>u<C-U>
" In many terminal emulators the mouse works just fine, thus enable it.
if has('mouse')
set mouse=a
endif
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
" Only do this part when compiled with support for autocommands.
if has("autocmd")
" Enable file type detection.
" Use the default filetype settings, so that mail gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent on
" Put these in an autocmd group, so that we can delete them easily.
augroup vimrcEx
au!
" For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
" Also don't do it when the mark is in the first line, that is the default
" position when opening a file.
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
augroup END
else
set autoindent " always set autoindenting on
endif " has("autocmd")
" Convenient command to see the difference between the current buffer and the
" file it was loaded from, thus the changes you made.
" Only define it when not defined already.
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
\ | wincmd p | diffthis
endif
I put it here hoping it helps you or yours users' vim experience. Please leave any comment.
Last edited by ezzetabi (2009-09-30 13:53:47)

Hi, I think this is not a bad idea. I do like using listchars to show tabs and trailing spaces like that, but I think that using commoly used characters like _ is confusing. If you go into vim and use the :digraph command you can see lots of special characters which are useful IMO for listchars. I use set listchars=tab:→,trail:¸, but I don't know if they'd be best for everyone. But I think it is clearer than using normal keyboard characters.

Similar Messages

  • How to make custom append search help tab default for all users?

    I've implemented my own search help append and I need to make the F4 search help to display my tab as default for all users. I know that search help stores the last tab used by the user in memory and when user uses the search help next time the last used tab is displayed but I have to make the system display the tab od my search help append always as default tab. Any idea how to do it?
    Message was edited by:
            Marcin Milczynski

    hi
    <b>Enhancement using Append structures</b>
        Append structures allow you to attach fields to a table without actually having to modify the table itself. You can use the fields in append structures in ABAP programs just as you would any other field in the table.
    Click on the append structure tab and opt to create new
    structure.
    Append structures allow you to enhance tables by adding fields to them that are not part of the standard. With append structures; customers can add their own fields to any table or structure they want.
    Append structures are created for use with a specific table. However, a table can have multiple append structures assigned to it
        Customers can add their own fields to any table or structure they want.
    The customer creates append structures in the customer namespace. The append structure is thus protected against overwriting during an upgrade. The fields in the append structure should also reside in the customer namespace, that is the field names should begin with ZZ or YY. This prevents name conflicts with fields inserted in the table by SAP

  • Enable save for all users in rich client document defaultly for all users

    Hi,
    Is there a option to enable save for all users in a rich client document defaultly for all users across the company. As the users who are creating reports are forgetting to check the box before sending the rich client document to others. Kindly let me know if you have any suggestions on this.
    Thanks,
    Karthik

    I'd suggest that is is where your BO folder structure comes in. You can export from Rich Client to any folder that you have permissions to access - some sort of collaboration folder system would potentially be better and more secure than sending unsecured reports via email. If your IT security team found out that you were removing document security, I doubt they'd be impressed!
    You can't do the default save for all users, simple as that (it's bad practice anyway, which is probably why you can't). While it's not the answer that you want to hear, it is the correct one.

  • How to make custom icc color profile work as default for all users?

    Hi!
    I've calibrated two monitors for the machine running Mavericks OS X. I've managed to move these custom icc color profiles to ColorSync folder in HDD Library, so that that they are available for all the users. However, I cannot figure out how to make these icc profiles work as default profiles for all users and not only the one I used to calibrate monitors.
    Is there a specific place I have to put custom icc profile to make it system default?
    Thank you!

    If you put the profiles in the root /Library/ColorSync/Profiles/ folder, then each user needs to select them in their account. There isn't a way to apply them globally so each account automatically comes up that way.

  • Make XFCE4 default for all users

    I got Arch up and running with XFCE4. its great so far
    I am using either xdm or wdm as my login manager (havent decided which i want yet)
    I added a ".xinitrc" file to my home folder so that XFCE4 will start when I log in. is there a way to make XFCE4 the default wm for all new users without having to add a .xinitrc file to all of their home folders? I only plan on using XFCE4 so I dont need the login manager to load other wm's. but i would like to be able to add users and have their session automatically start as XCFE. all i have found by googling and on LQ.org is making a .xinitrc file, but these seem to lean toward a single user system. there has to be an easier way, ie with fedora when you make a new user, log out and log in as the new user and it will start  the default wm, or you can choose whichever wm you want to use.
    im using arch 0.7.2 'gimmick' and all packages have been updated

    If you just edit the skeleton file for <code>.xinitrc</code>, then for each user that is created, it will automatically be set to run xfce.  The location of the file is <code>/etc/skel/.xinitrc</code> if that answers your question.

  • How to set default User preferences in Analyzer for all users

    How to set default User preferences in Analyzer for all users<BR><BR>Hi,<BR><BR>I would like to set some settings in Analyzer as default for all users. For example:<BR>1. Display | Char<BR>2. right mouse click on char | Chart Properties<BR>3. Axes tab<BR>4. "Format: Currency" i would like to change to "Format: Number".<BR><BR>How to set default values to all users? Is this possible?<BR><BR>Thanks,<BR>Grofaty

    I'm pretty sure higher access superceedes, so you could set up a group with no actual access, just to get the preferences working, then their individual security will dictate what they can do. I haven't tested this fully, but I beleive this is how it will work.<BR>As far as setting the preferences, go into the admin console and right click on the group, then select Preferences. To apply the group preferences to a user, add the user to the group, then right click on the user, select preferences and from the upper left corner, use the drop down to select the active preference, in this case, it will be the group you created and added them to.<BR><BR>HTH

  • Set a default layout for all users via DIAPI

    Hello everyone,
    I am attempting to set a default report for all users/business partners using the DI-API. 
    I can accomplish this in the B1 application via Tools> Layout Designer...>Set as Default
    If there are entries in the RDFL table for this layout, I am prompted to delete these entries and set this layout as the default for all users/BP's
    Based on the SDK Documentation, the following code should accomplish the same thing via the DI-API
    (stripped down for clarity)
    Dim oDefaultReportParams As DefaultReportParams
    oDefaultReportParams = oLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiDefaultReportParams)
    oDefaultReportParams.LayoutCode = sMyLayoutCode
    oDefaultReportParams.ReportCode = sMyReportCode
    Me.oLayoutService.SetDefaultReport(oDefaultReportParams)
    Code executes fine, but it doesn't have the expected impact on settings.  The above code adds an entry to the RDFL table rather than changing the DfltReport field in the RTYP table like I expected, so instead of setting the default report globally for all bps/users, its adding an entry to the RDFL table to set the value for a specific user/bp
    I experimented by including and setting the following properties to every combination I could think of with the same results
            oDefaultReportParams.UserID = 'tried 1, 0, -1
            oDefaultReportParams.CardCode = 'tried "", "0", "-1"
    Am I misunderstanding the API, or using the wrong objects/calls...? If all else fails I could accomplish this via the UI-API instead, but the application was intended to be a stand alone app that didn't rely on SAP B1 application running, so any help or suggestions would be much appreciated.
    Thanks!

    Hi,
    Please repost at SDK forum to get quick response. Close this thread here with helpful answer.
    Thanks.

  • Default Color, Size and Font for all user.

    Hi
    I have been looking around for the correct way to set some default styles for all Word users in a domain thrugh GPO. I just have some questions.
    So far i can only get it working if it set a "Workgroup templates path" under "User Configuration/Administrative Templates/Microsoft Office 2013/Shared paths". Then the users are able to select it when they say "New" - "Shared"
    and then the template
    But i would like it to be default for all users, like in the Normal.dotm. But without making a script to replace the file for every users APPDATA.
    Then i saw the "User Configuration/Administrative Templates/Microsoft Office 2013/Shared paths/Enterprise templates path", how and what does that do?

    Hi,
    As far as I know, if we want to distribute the Normal.dotm to users in a domain through GPO, we could
    use GPP file extension to
    distribute Normal.dotm to the path "C:\Documents and Settings\user name\Application Data\Microsoft\Templates." for every user. For more detailed steps, please refer to the following link:
    http://technet.microsoft.com/en-us/library/cc772536.aspx
    Similar issue:
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/87ab10d3-1cb6-4269-9334-1e0c37527e0a/move-location-of-normaldotdotm-to-central-file-server-best-solution?forum=winserverGP
    If you want to config Enterprise templates path, please read this thread:
    https://social.technet.microsoft.com/Forums/office/en-US/c4e5c872-402c-4339-9c02-cfa91e949e41/office-2013-templates-group-policies?forum=officesetupdeploy
    If you have further question about the GPO, I recommend you post it to GPO forum:
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverGP
    Regards,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • CP3525dn, networked -- default duplex for all users (embedded web server)

    I want to set the default for all users on our networked CP3525dn to be duplex. I cannot find this option anywhere in the embedded web server. I have duplex turned on, of course, and users can set their own default to duplex, but I want it to be default for everyone--the default default, if you will.
    Is this possible? I'm fairly certain it's possible if the printer is connected to a computer and shared on the network (but I don't remember the specifics) but I can't find out how to do it if it's on the network on its own.
    Thanks!

    I don't believe you can.  It must be set for every user manually.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Setting default printing presets for all users, esp. guest user

    i want to set black/white, two sided printing as the default for all users (9 macs, 30 users on each).
    i set up and save this preset as admin, and copy the files
    com.apple.print.custompresets.plist
    com.apple.print.custompresets.forprinter.nameofprinter.plist
    from admin home/library/preferences to the other users preferences-folders.
    but logging on to any of the other users, i still dont even get the new preset listed.
    i tried entering cups, but there, only the printer setup is editable.
    especially i would like to set the custom preset as default for the guest account, without being wiped every log off.
    is there any alternative way to do this? i dont want to manually log in to the 300 accounts to change this.

    You can do that for new users via a file user.js in the default template folder for new profiles.
    C:\Program Files\Mozilla Firefox\defaults\profile\
    *http://kb.mozillazine.org/user.js_file

  • Adobe Reader 9.0 - Disable Forms Highlight color show border hover color for fields for all user a

    Hello.
    I am installing Adobe Reader 9.0 onto a new windows xp corporate build for my company. We would like to have the Forms Preference "Highlight Color" Show border Hover Color for Fields checkbox unchecked by default for any user that logs onto the workstation. (All new WinXP profiles, and if possible, any existing profiles) Is there a registry entry that can be changed to ensure that this option is unchecked by default on our WinXP build?
    Thank you.

    bumping thread...
    I have downloaded the Adobe Reader 9.0 Custom Wizard install creator tool, but it still appears that I will need to know what registry key to change/import into the installer for this preference to be disabled by default for all users of the workstation that Adobe Reader 9.x is installed onto.
    Any and all help is greatly appreciated.
    Thank you.

  • Layout for all users

    Hi All,
    How can I change the layout for alll the users,
    When i have chnaged it is showing only for me and not for others

    Hi,
    Once you change the layout in the report click on save layout at the top of the report.
    There you have a tab called USER SPECIFIC.
    If that is checked, then the layout is specific to your user name, else it will be set as default for all users.
    Regards,
    Amit

  • Configuring Photoshop CS5 to open in 32bit by default for multiple users

    I've set up a lab with Photoshop CS5 installed on 60 macs which will be logged on by 1200 domain users and I need Photoshop to open in 32bit mode as default for each user so it will be compatible with our printer. Rather than having to administer PS manually to 32 bit for each user, would I be right in thinking I could create one copy of the Photoshop app set to open in 32bit mode and then copy it to all the other macs to replace the original 64bit configured versions so they would all open in 32bit by default for all users? 
    Anyone know if this might work or if there is an alternative way?
    Thanks for any advice

    I was off the mark with this but found the solution. I was informed the preference file to launch in 32 or 64 bit mode is the com.apple.LaunchServices.plist which resides in the user preferences folder. So by configuring the Photoshop app via 'Get Info' to 32bit and copying this out to another users prefs folder then PS opens in 32 bit for that user as well. To get this to work for all users on login I created an automator workflow and dropped it in the App folder of every mac and this is triggered by running it as a login-in items in the computer group in workgroup Manager.

  • How do I disable the itunes auto-update for all users?

    I need to know if there is a way to disable the auto-update feature for all users that login to a windows XP computer.
    I have disabled it for the account currently logged in as well as copy that user profile to the "default user" profile. However I have about 300 users that do not have admin rights that still get prompted to install updates.
    Is there a way to disable the auto update as the default for all users. So that only I get the auto update notifications?

    Bump -
    No responses in over a week?
    Does no one else run a network where users don't have admin rights?

  • How do I permanently STOP the Bing Suggested Sites icon from being in the IE 9 toolbar for everyone and make it the default for all new users

    Non of the other post on this subject were correctly answered and they are now old so here is a new thread for a question that a Microsoft Engineer should have answered a long time ago in one of the other threads.
     I have IE 9 installed.
    I am setting up my default profile which will be used for ALL users to configure their profile when they log on. All profiles are destroyed on system reboot. All PCs are frozen.
    Every time I log in as a new user and open IE 9, the favorites bar shows up as I want it with NO BING Suggested Site crapware in site. Then about .5 secs after IE starts and the Favorites bar is shown, the EVIL "Bing Suggested Sites" button appears.
     I can delete it and it seems to stay away until I delete the users profile folder etc and have them log in again. When the profile is recreated the Favorites folder does not have a "Suggested Sites" option in the c:\users\username\favorites\links"
    folder. (I have deleted the hidden .ini files in the default folder) Nor does one exist in the "c:\users\default\favorites\links" folder from which the newly created user profile folder comes. But as soon as I start IE 9, one is created and placed
    in the users favorites links folder. This MUST STOP!!!!!!!!!!!!! This is UNACCEPTABLE. AND IT MUST BE STOPPED!!!!! Where in the Windows 7 x64 Enterprise OS is the location of this evil action and how do I PERMANENTLY delete it.
    I don't EVER want to see the EVIL BING Suggested Sites button anywhere on the PC especially in the Favorites Tool bar on IE 9. An I expect/demand that Microsoft tell us how to 100% cannot fail get rid of it for ALL USERS FOREVER NO MATTER WHAT!!!!!!!!!!!! I
    have spent a lot of time perfecting my default profile making sur that ALL options are decide by me NOT MICROSOFT. I NEVER USE SYSPREP as that will destroy ALL custom defaults every time.
    When a user logs in in to one of my PCs and they start IE 9 they get REAL Google for the default search engine, not the version Microsoft will give you which first sends all search requests to Microsoft so they can spy on what you searched in Google for etc.,
    but real Google, not sent to Microsoft 1st. (I'll bet more than 90% of the readers of this site did not notice how if you let Microsoft set your default search provider to Google, they fix it so that all search requests go to Microsoft 1st, before it gets
    sent to Google. Look at the search string under manage your search providers, in IE 7 & 8. In IE 9 it is hidden, but still there. HOW EVIL OF MICROSOFT)
    With my default profile IE does not ask how you want to set it up, I have already made those decisions. I have made all those decisions for my users. But as of recently I have started installing IE 9 and now this unacceptable BING Suggested Sites junk ware
    keeps showing up. HOW DO I STOP IT. Do I have to put a line in my HOSTS file to send all request for Bing.com to 127.0.0.1 just to make sure that it can't be used. There by removing all possibility of my users ever being able to use Bing FOREVER.
    I would rather not do that but unless a Microsoft representative will tell me how to keep that useless Bing Suggested Sites button from appearing on the Favorites tool bar I will have to. I would love to let my user decide if they want to use Bing and waist
    their time trying to find good search results, but I will not have it forced on them and I will not allow it to be on the Favorites tool Bar ever. So will a Microsoft Engineer please tell us how to put a permanent end to the "Bing Suggested Sites"
    button for ALL users ALWAYS FOREVER.
    Thanks,
    Ralph

    Hi,
    I suggest you try the steps in this thread for test:
    Disable Suggested Sites does not work.
    http://answers.microsoft.com/en-us/ie/forum/ie9-windows_7/disable-suggested-sites-does-not-work/4ba064b1-1c6e-43f1-939e-2db1d335b2ef
    Regards,
    Vincent Wang
    TechNet Community Support

Maybe you are looking for