Skip to content

Commit 6edc254

Browse files
d-k-cvivien
authored andcommitted
add a command to set the style on current buffer
This commit adds a LinuxCodingStyle command that applies the kernel style to the current buffer. Note that the filetype is not checked. For instance, you can map this command with the following in your vimrc: nnoremap <silent> <leader>a :LinuxCodingStyle<cr> [vd: rename SetLinuxStyle to LinuxCodingStyle.] refs gregkh#2
1 parent 1a2a68e commit 6edc254

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/linuxsty.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ function s:LinuxConfigure()
4747
endif
4848
endfunction
4949

50+
command! LinuxCodingStyle call s:LinuxCodingStyle()
51+
5052
function! s:LinuxCodingStyle()
5153
call s:LinuxFormatting()
5254
call s:LinuxKeywords()

0 commit comments

Comments
 (0)