xref: /llvm-project/llvm/utils/vim/ftplugin/llvm.vim (revision 8c46413f343d0a5b8db48d958890b9038f03b70d)
1" Vim filetype plugin file
2" Language: LLVM Assembly
3" Maintainer: The LLVM team, http://llvm.org/
4
5if exists("b:did_ftplugin")
6  finish
7endif
8let b:did_ftplugin = 1
9
10setlocal softtabstop=2 shiftwidth=2
11setlocal expandtab
12setlocal comments+=:;
13setlocal commentstring=;\ %s
14" We treat sequences of the following characters as forming 'keywords', with
15" the aim of easing movement around LLVM identifiers:
16" * identifier prefixes: '%' and '@' (@-@)
17" * all characters where isalpha() returns TRUE (@)
18" * the digits 0-9 (48-57)
19" * other characters that may form identifiers: '_', '.', '-', '$'
20" Comment this out to restore the default behaviour
21setlocal iskeyword=%,@-@,@,48-57,_,.,-,$
22