Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
5315e1da
Unverified
Commit
5315e1da
authored
Apr 17, 2020
by
Martin Liska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not modify tab options in vimrc for .py files.
* vimrc: We do not want to modify tab options for Python files.
parent
dd75498d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
contrib/ChangeLog
+5
-0
contrib/vimrc
+8
-6
No files found.
contrib/ChangeLog
View file @
5315e1da
2020
-
04
-
17
Martin
Liska
<
mliska
@suse
.
cz
>
*
vimrc
:
We
do
not
want
to
modify
tab
options
for
Python
files
.
2020
-
04
-
16
Jakub
Jelinek
<
jakub
@redhat
.
com
>
PR
bootstrap
/
92008
...
...
contrib/vimrc
View file @
5315e1da
...
...
@@ -28,17 +28,19 @@
function! SetStyle()
let l:fname = expand("%:p")
let l:ext = fnamemodify(l:fname, ":e")
let l:c_exts = ['c', 'h', 'cpp', 'cc', 'C', 'H', 'def', 'java']
if stridx(l:fname, 'libsanitizer') != -1
return
endif
setlocal tabstop=8
setlocal softtabstop=2
setlocal shiftwidth=2
setlocal noexpandtab
if l:ext != "py"
setlocal tabstop=8
setlocal softtabstop=2
setlocal shiftwidth=2
setlocal noexpandtab
endif
setlocal textwidth=80
setlocal formatoptions-=ro formatoptions+=cqlt
let l:ext = fnamemodify(l:fname, ":e")
let l:c_exts = ['c', 'h', 'cpp', 'cc', 'C', 'H', 'def', 'java']
if index(l:c_exts, l:ext) != -1
setlocal cindent
setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,f0,h2,p4,t0,+2,(0,u0,w1,m0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment