110952Satgutier@umich.edu" Copyright (c) 2015 Advanced Micro Devices, Inc.
210952Satgutier@umich.edu" All rights reserved.
310952Satgutier@umich.edu"
410952Satgutier@umich.edu" The license below extends only to copyright in the software and shall
510952Satgutier@umich.edu" not be construed as granting a license to any other intellectual
610952Satgutier@umich.edu" property including but not limited to intellectual property relating
710952Satgutier@umich.edu" to a hardware implementation of the functionality of the software
810952Satgutier@umich.edu" licensed hereunder.  You may use the software subject to the license
910952Satgutier@umich.edu" terms below provided that you ensure that this notice is replicated
1010952Satgutier@umich.edu" unmodified and in its entirety in all distributions of the software,
1110952Satgutier@umich.edu" modified or unmodified, in source code or in binary form.
1210952Satgutier@umich.edu"
1310952Satgutier@umich.edu" Redistribution and use in source and binary forms, with or without
1410952Satgutier@umich.edu" modification, are permitted provided that the following conditions are
1510952Satgutier@umich.edu" met: redistributions of source code must retain the above copyright
1610952Satgutier@umich.edu" notice, this list of conditions and the following disclaimer;
1710952Satgutier@umich.edu" redistributions in binary form must reproduce the above copyright
1810952Satgutier@umich.edu" notice, this list of conditions and the following disclaimer in the
1910952Satgutier@umich.edu" documentation and/or other materials provided with the distribution;
2010952Satgutier@umich.edu" neither the name of the copyright holders nor the names of its
2110952Satgutier@umich.edu" contributors may be used to endorse or promote products derived from
2210952Satgutier@umich.edu" this software without specific prior written permission.
2310952Satgutier@umich.edu"
2410952Satgutier@umich.edu" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2510952Satgutier@umich.edu" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2610952Satgutier@umich.edu" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2710952Satgutier@umich.edu" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2810952Satgutier@umich.edu" OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2910952Satgutier@umich.edu" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
3010952Satgutier@umich.edu" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
3110952Satgutier@umich.edu" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3210952Satgutier@umich.edu" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3310952Satgutier@umich.edu" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3410952Satgutier@umich.edu" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3510952Satgutier@umich.edu"
3610952Satgutier@umich.edu" Authors: Anthony Gutierrez
3710952Satgutier@umich.edu
3810952Satgutier@umich.edu
3910952Satgutier@umich.edu" this vimrc file helps users follow the gem5 style guide see:
4010952Satgutier@umich.edu" www.gem5.org/Coding_Style
4110952Satgutier@umich.edu" it highlights extraneaous whitespace and tabs (so you can easily remove
4210952Satgutier@umich.edu" them), sets column length to a max of 78 characters, expands tabs, and sets
4310952Satgutier@umich.edu" a tab width of 4 spaces.
4410952Satgutier@umich.edu
4510952Satgutier@umich.edu" *NOTE 1* this doesn't guarantee that your code with fit the style guidelines,
4610952Satgutier@umich.edu" so you should still to double check everything, but it helps with a lot of
4710952Satgutier@umich.edu" tedious stuff.
4810952Satgutier@umich.edu
4910952Satgutier@umich.edu" *NOTE 2* if you do actually NEED to use a tab, e.g., in a Makefile, enter
5010952Satgutier@umich.edu" insert mode and type ctrl-v first, which will make tabs behave as expected
5110952Satgutier@umich.edu
5210952Satgutier@umich.edufiletype indent on "auto indenting
5310952Satgutier@umich.eduset tabstop=4 "tabs = 4 spaces
5410952Satgutier@umich.eduset shiftwidth=4 "auto indent = 4 spaces
5510952Satgutier@umich.eduset expandtab "expand tabs to spaces
5610952Satgutier@umich.eduset tw=78 "max cols is 78
5710952Satgutier@umich.edu
5810952Satgutier@umich.edu" highlight extrawhite space with light blue background
5910952Satgutier@umich.eduhighlight ExtraWhitespace ctermbg=lightblue guibg=lightblue
6010952Satgutier@umich.edumatch ExtraWhitespace /\s\+$\|\t/
6110952Satgutier@umich.edu
6210952Satgutier@umich.edu" stuff to prevent the light blue highlighting from showing up at the end of
6310952Satgutier@umich.edu" lines when you're in insert mode. i.e., everytime you enter a space as you're
6410952Satgutier@umich.edu" entering text the highlighting will kick in, which can be annoying. this will
6510952Satgutier@umich.edu" make the highlighting only show up if you finish editing and leave some extra
6610952Satgutier@umich.edu" whitespace
6710952Satgutier@umich.eduautocmd BufWinEnter * match ExtraWhitespace /\s\+$\|\t/
6810952Satgutier@umich.eduautocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$\|\t\%#\@<!/
6910952Satgutier@umich.eduautocmd InsertLeave * match ExtraWhitespace /\s\+$\|\t/
7010952Satgutier@umich.eduautocmd BufWinLeave * call clearmatches()
7110952Satgutier@umich.edu
7210952Satgutier@umich.edu
7310952Satgutier@umich.edu" optionally set a vertical line on column 79. anything on, or after the line
7410952Satgutier@umich.edu" is over the limit. this can be useful as set tw=78 won't breakup existing
7510952Satgutier@umich.edu" lines that are over the limit, and the user can also do certain things to
7610952Satgutier@umich.edu" make lines go past the set textwidth, e.g., joining a line (shift-j or J)
7710952Satgutier@umich.edu
7810952Satgutier@umich.edu"if exists('+colorcolumn')
7910952Satgutier@umich.edu"    set colorcolumn=79
8010952Satgutier@umich.edu"endif
8110952Satgutier@umich.edu
8210952Satgutier@umich.edu
8310952Satgutier@umich.edu" optionally set spell checking
8410952Satgutier@umich.edu"set spell
8510952Satgutier@umich.edu
8610952Satgutier@umich.edu" optionally highlight whitespace with specified characters. tab for trailing
8710952Satgutier@umich.edu" tabs, trail for trailing whitespace, extends for lines that extend beyond
8810952Satgutier@umich.edu" screen when wrap is off, and non-breakable white spaces. list must be set
8910952Satgutier@umich.edu" for these characters to display.
9010952Satgutier@umich.edu"set list
9110952Satgutier@umich.edu"set listchars=tab:›\ ,trail:•,extends:#,nbsp:.
92