@@ -4,8 +4,8 @@ This plugin is meant to help you respecting the Linux kernel coding style,
4
4
described at: https://www.kernel.org/doc/Documentation/process/coding-style.rst
5
5
HTML rendering: https://www.kernel.org/doc/html/latest/process/coding-style.html
6
6
7
- It will automatically apply known rules to kernel related files, such as .c ,
8
- .h, Kconfig and patch files. The main rules are about indentation and syntax
7
+ It will automatically apply known rules to kernel related files, such as ` .c ` ,
8
+ ` .h ` , ` Kconfig ` and patch files. The main rules are about indentation and syntax
9
9
error highlighting (like exceeding 100 chars).
10
10
11
11
The original plugin was written by Vivien Didelot, developed in this
@@ -19,35 +19,35 @@ The current development location for this repo can be found in this
19
19
20
20
## Installation
21
21
22
- You can just drop the linuxsty.vim file in your ~ /.vim/plugin directory.
23
- Alternatively you can use the Git repository with a manager such as
22
+ You can just drop the ` linuxsty.vim ` file in your ` ~/.vim/plugin ` directory.
23
+ Alternatively you can use the Git repository with a manager such as
24
24
[ Pathogen] ( https://github.com/tpope/vim-pathogen ) .
25
25
26
26
## Usage
27
27
28
- By default the Linux coding style is enabled for any file known to the Linux
28
+ By default the Linux coding style is enabled for any file known to the Linux
29
29
project (C files, headers, patches, Kconfig, etc.).
30
30
31
- If you prefer a finer control and apply it only on some files, define
32
- a " g: linuxsty_patterns " array in your vimrc and the style will be applied only
33
- if the buffer's path matches one of the pattern. For instance, you can match
34
- only projects under /usr/src/ and /linux with the following:
31
+ If you prefer a finer control and apply it only on some files, define a
32
+ ` g:linuxsty_patterns ` array in your ` vimrc ` and the style will be applied only
33
+ if the buffer's path matches one of the pattern. For instance, you can match
34
+ only projects under ` /usr/src/ ` and ` /linux ` with the following:
35
35
36
36
let g:linuxsty_patterns = [ "/usr/src/", "/linux" ]
37
37
38
38
If you want to save the current file's directory and automatically call
39
- LinuxCodingStyle next time, you can define the following option in your
40
- vimrc:
39
+ ` : LinuxCodingStyle` next time, you can define the following option in your
40
+ ` vimrc ` :
41
41
42
42
let g:linuxsty_save_path = 1
43
43
44
- If you want to enable the coding style on demand without checking the filetype,
45
- you can use the : LinuxCodingStyle command. For instance, you can map it with
46
- the following in your vimrc:
44
+ If you want to enable the coding style on demand without checking the filetype,
45
+ you can use the ` :LinuxCodingStyle ` command. For instance, you can map it with
46
+ the following in your ` vimrc ` :
47
47
48
48
nnoremap <silent> <leader>a :LinuxCodingStyle<cr>
49
49
50
50
## License
51
51
52
- Copyright (c) Vivien Didelot. Distributed under the same terms as Vim itself.
52
+ Copyright (c) Vivien Didelot. Distributed under the same terms as Vim itself.
53
53
See : help license.
0 commit comments