File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 17
17
"
18
18
" If you want to save the current file's directory and automatically call
19
19
" LinuxCodingStyle next time, you can define the following option in your
20
- " vimrc.
20
+ " vimrc:
21
21
"
22
22
" let g:linuxsty_save_path = 1
23
+ "
24
+ " To override the default text width for C kernel files define the following
25
+ " option in your vimrc:
26
+ "
27
+ " let g:linuxsty_text_width = 80
23
28
24
29
if exists (" g:loaded_linuxsty" )
25
30
finish
26
31
endif
27
32
let g: loaded_linuxsty = 1
28
33
29
34
let g: linuxsty_save_path = get (g: , ' linuxsty_save_path' , 0 )
35
+ let g: linuxsty_text_width = get (g: , ' linuxsty_text_width' , 100 )
30
36
31
37
set wildignore += * .ko,* .mod .c ,* .order,modules.builtin
32
38
@@ -74,7 +80,7 @@ function s:LinuxFormatting()
74
80
setlocal tabstop = 8
75
81
setlocal shiftwidth = 8
76
82
setlocal softtabstop = 8
77
- setlocal textwidth = 100
83
+ execute " setlocal textwidth=" . g: linuxsty_text_width
78
84
setlocal noexpandtab
79
85
80
86
setlocal cindent
You can’t perform that action at this time.
0 commit comments