FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
vim/runtime/scripts.vim at master · pdjprogrammer/vim · GitHub
pdjprogrammer
/
vim
Public
forked from
vim/vim
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
vim
/
runtime
/
scripts.vim
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (22 loc) · 866 Bytes
Breadcrumbs
vim
/
runtime
/
scripts.vim
Copy path
File metadata and controls
27 lines (22 loc) · 866 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"
Vim support file to detect file types in scripts
"
"
Maintainer:
The Vim Project <https://github.com/vim/vim>
"
Last Change:
2023 Aug 27
"
Former Maintainer:
Bram Moolenaar <Bram@vim.org>
"
This file is called by an autocommand for every file that has just been
"
loaded into a buffer. It checks if the type of file can be recognized by
"
the file contents. The autocommand is in $VIMRUNTIME/filetype.vim.
"
Bail out when a FileType autocommand has already set the filetype.
if
did_filetype
()
finish
endif
"
Load the user defined scripts file first
"
Only do this when the FileType autocommand has not been triggered yet
if
exists
(
"
myscriptsfile
"
)
&&
filereadable
(
expand
(myscriptsfile))
execute
"
source
"
. myscriptsfile
if
did_filetype
()
finish
endif
endif
"
The main code is in a compiled function for speed.
call
dist#script#DetectFiletype
()
Back
|
FazBrowse Home
|
New Git URL