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}"
|
: "${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//,.
|
set undodir=~/.config/vim/undo//,.
|
||||||
|
|
||||||
" Preferences
|
" Preferences
|
||||||
|
set list listchars=tab:⎸\ ,trail:~
|
||||||
set clipboard=unnamedplus
|
set clipboard=unnamedplus
|
||||||
set shellcmdflag=-c
|
set shellcmdflag=-c
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
set relativenumber
|
set relativenumber
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
|
set shiftwidth=4
|
||||||
set nocompatible
|
set nocompatible
|
||||||
set cursorline
|
set cursorline
|
||||||
set ignorecase
|
set ignorecase
|
||||||
|
set expandtab
|
||||||
set smartcase
|
set smartcase
|
||||||
set autoread
|
set autoread
|
||||||
set wildmenu
|
set wildmenu
|
||||||
|
@ -29,10 +32,6 @@ set showcmd
|
||||||
set number
|
set number
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
" Kernel coding standards
|
|
||||||
set list listchars=tab:⎸\ ,trail:~
|
|
||||||
set colorcolumn=81
|
|
||||||
set noexpandtab
|
|
||||||
|
|
||||||
if (empty($TMUX) && getenv('TERM_PROGRAM') != 'Apple_Terminal')
|
if (empty($TMUX) && getenv('TERM_PROGRAM') != 'Apple_Terminal')
|
||||||
if (has("nvim"))
|
if (has("nvim"))
|
||||||
|
@ -148,7 +147,7 @@ nnoremap <C-f> :NERDTreeToggle<CR>
|
||||||
|
|
||||||
" IndentLine
|
" IndentLine
|
||||||
let g:indentLine_enabled = 1
|
let g:indentLine_enabled = 1
|
||||||
let g:indentLine_char = '▏'
|
let g:indentLine_char = '⎸'
|
||||||
|
|
||||||
" fzf-lua
|
" fzf-lua
|
||||||
noremap <A-b> :FzfLua git_branches<CR>
|
noremap <A-b> :FzfLua git_branches<CR>
|
||||||
|
|
Loading…
Reference in a new issue