c/cpp style
This commit is contained in:
parent
4b677a3ac8
commit
4fe008c808
4 changed files with 13 additions and 5 deletions
|
@ -1 +1,2 @@
|
|||
# set $info if unset
|
||||
: "${info:=item1 item2 item3}"
|
||||
|
|
4
vim/after/ftplugin/c.vim
Normal file
4
vim/after/ftplugin/c.vim
Normal file
|
@ -0,0 +1,4 @@
|
|||
" Kernel coding standards
|
||||
set colorcolumn=81
|
||||
set shiftwidth=8
|
||||
set noexpandtab
|
4
vim/after/ftplugin/cpp.vim
Normal file
4
vim/after/ftplugin/cpp.vim
Normal file
|
@ -0,0 +1,4 @@
|
|||
" Kernel coding standards
|
||||
set colorcolumn=81
|
||||
set shiftwidth=8
|
||||
set noexpandtab
|
|
@ -10,14 +10,17 @@ set viewdir=~/.config/vim/view/
|
|||
set undodir=~/.config/vim/undo//,.
|
||||
|
||||
" Preferences
|
||||
set list listchars=tab:⎸\ ,trail:~
|
||||
set clipboard=unnamedplus
|
||||
set shellcmdflag=-c
|
||||
set encoding=utf-8
|
||||
set relativenumber
|
||||
filetype plugin on
|
||||
set shiftwidth=4
|
||||
set nocompatible
|
||||
set cursorline
|
||||
set ignorecase
|
||||
set expandtab
|
||||
set smartcase
|
||||
set autoread
|
||||
set wildmenu
|
||||
|
@ -29,10 +32,6 @@ set showcmd
|
|||
set number
|
||||
syntax on
|
||||
|
||||
" Kernel coding standards
|
||||
set list listchars=tab:⎸\ ,trail:~
|
||||
set colorcolumn=81
|
||||
set noexpandtab
|
||||
|
||||
if (empty($TMUX) && getenv('TERM_PROGRAM') != 'Apple_Terminal')
|
||||
if (has("nvim"))
|
||||
|
@ -148,7 +147,7 @@ nnoremap <C-f> :NERDTreeToggle<CR>
|
|||
|
||||
" IndentLine
|
||||
let g:indentLine_enabled = 1
|
||||
let g:indentLine_char = '▏'
|
||||
let g:indentLine_char = '⎸'
|
||||
|
||||
" fzf-lua
|
||||
noremap <A-b> :FzfLua git_branches<CR>
|
||||
|
|
Loading…
Reference in a new issue