Last active
February 1, 2023 05:17
-
-
Save cpp-johnny/3746db068cf7920b5e6d77e9b3bbf90f to your computer and use it in GitHub Desktop.
my vim config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Show line numbers | |
set number | |
" Set auto indent | |
set autoindent | |
" Set smart indent | |
set smartindent | |
" make sure the indentations are 4 spaces only | |
set shiftwidth=4 | |
" Automatically closing braces | |
inoremap { {}<Esc>ha | |
inoremap ( ()<Esc>ha | |
inoremap [ []<Esc>ha | |
inoremap " ""<Esc>ha | |
inoremap ' ''<Esc>ha | |
inoremap ` ``<Esc>ha | |
inoremap /* /* */<ESC>2ha | |
" always display statusline | |
set laststatus=2 | |
" enable syntax highlighting | |
syntax on | |
" vim themes | |
colorscheme industry | |
" tabs | |
set tabstop=4 | |
" select all using ctrl a | |
nnoremap <C-A> ggVG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment