Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dotfiles
vim
Commits
c2c05a9b
Commit
c2c05a9b
authored
3 years ago
by
Henrik Tjäder
Browse files
Options
Downloads
Patches
Plain Diff
Add filetype to Pijul-changemsg
parent
28d5e83b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.vimrc
+8
-0
8 additions, 0 deletions
.vimrc
with
8 additions
and
0 deletions
.vimrc
+
8
−
0
View file @
c2c05a9b
...
@@ -444,10 +444,18 @@ set nobackup
...
@@ -444,10 +444,18 @@ set nobackup
filetype
plugin
indent
on
filetype
plugin
indent
on
if
has
(
'autocmd'
)
if
has
(
'autocmd'
)
" Search for 'message =' AND search if '# Hunks' exists in file
" set filetype to "pijul" and change colorscheme
autocmd
BufNewFile
,
BufRead
/tmp/
.
tmp*
\
if
search
(
'message ='
,
'nw'
)
&&
search
(
'# Hunks'
,
'nw'
)
|
\
setlocal
filetype
=
pijul
|
endif
" Further matches on now set Filetype also possible
" autocmd FileType pijul colorscheme desert
autocmd Filetype
python
setlocal
expandtab
tabstop
=
4
shiftwidth
=
4
autocmd Filetype
python
setlocal
expandtab
tabstop
=
4
shiftwidth
=
4
autocmd
FileType
json
syntax
match
Comment
+
\
/\/
.
\
+
$
+
autocmd
FileType
json
syntax
match
Comment
+
\
/\/
.
\
+
$
+
endif
endif
"au BufNewFile,BufRead *.py set tabstop=4
"au BufNewFile,BufRead *.py set tabstop=4
"\ softtabstop=4
"\ softtabstop=4
"\ shiftwidth=4
"\ shiftwidth=4
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment