Skip to content

Instantly share code, notes, and snippets.

@abrasumente233
Last active August 17, 2023 06:03
Show Gist options
  • Save abrasumente233/3d40f3157280fd30a006ffd35311bec9 to your computer and use it in GitHub Desktop.
Save abrasumente233/3d40f3157280fd30a006ffd35311bec9 to your computer and use it in GitHub Desktop.
.vimrc-new
set tabstop=4 " The width of a TAB is set to 4.
" Still it is a \t. It is just that Vim will interpret it
" to be having a width of 4.
set shiftwidth=4 " Indents will have a width of 4. set softtabstop=4 "
"Sets the number of columns for a TAB.
set expandtab
set incsearch
set hlsearch
set laststatus=2
set ignorecase
set smartcase
set nocompatible
set number
" it's 2023
set nobackup " no backup files
set noswapfile " no swap files
set nowritebackup " only in case you don't want a backup file while editing
set noundofile " no undo files
map <silent> <C-K> :py3f /home/pi/opt/llvm/share/clang/clang-format.py<cr>
imap <silent> <C-K> <c-o>:py3f /home/pi/opt/llvm/share/clang/clang-format.py<cr>
silent! py3 pass
vmap <C-c> "+y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment