diff --git a/snippets/shell_array.sh b/snippets/shell_array.sh index 58d1af4..63ab4a7 100644 --- a/snippets/shell_array.sh +++ b/snippets/shell_array.sh @@ -1 +1,2 @@ +# set $info if unset : "${info:=item1 item2 item3}" diff --git a/vim/after/ftplugin/c.vim b/vim/after/ftplugin/c.vim new file mode 100644 index 0000000..9b0ea49 --- /dev/null +++ b/vim/after/ftplugin/c.vim @@ -0,0 +1,4 @@ +" Kernel coding standards +set colorcolumn=81 +set shiftwidth=8 +set noexpandtab diff --git a/vim/after/ftplugin/cpp.vim b/vim/after/ftplugin/cpp.vim new file mode 100644 index 0000000..9b0ea49 --- /dev/null +++ b/vim/after/ftplugin/cpp.vim @@ -0,0 +1,4 @@ +" Kernel coding standards +set colorcolumn=81 +set shiftwidth=8 +set noexpandtab diff --git a/vim/vimrc b/vim/vimrc index 1f4c095..1eff39c 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -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 :NERDTreeToggle " IndentLine let g:indentLine_enabled = 1 -let g:indentLine_char = '▏' +let g:indentLine_char = '⎸' " fzf-lua noremap :FzfLua git_branches