From 7b94af70555aab814f964a08098d0fb123171f7e Mon Sep 17 00:00:00 2001 From: hc Date: Fri, 30 May 2025 22:51:55 +0800 Subject: dev_env --- docker_build/vimrc | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 docker_build/vimrc (limited to 'docker_build/vimrc') diff --git a/docker_build/vimrc b/docker_build/vimrc new file mode 100644 index 0000000..36583bc --- /dev/null +++ b/docker_build/vimrc @@ -0,0 +1,77 @@ +" Basic vim configuration for development environment + +" Enable syntax highlighting +syntax on + +" Enable line numbers +set number + +" Enable relative line numbers for easier navigation +set relativenumber + +" Set tab width to 4 spaces +set tabstop=4 +set shiftwidth=4 +set expandtab + +" Enable auto-indentation +set autoindent +set smartindent + +" Enable incremental search +set incsearch + +" Highlight search results +set hlsearch + +" Case-insensitive search unless uppercase is used +set ignorecase +set smartcase + +" Show matching brackets +set showmatch + +" Enable mouse support +set mouse=a + +" Set backspace behavior +set backspace=indent,eol,start + +" Show current line and column +set ruler + +" Enable file type detection +filetype on +filetype plugin on +filetype indent on + +" Set color scheme (if available) +colorscheme default + +" Enable visual bell instead of beep +set visualbell + +" Set encoding +set encoding=utf-8 + +" Show command in status line +set showcmd + +" Enable wildmenu for command completion +set wildmenu + +" Set status line +set laststatus=2 +set statusline=%F%m%r%h%w\ [%l,%c]\ [%L\ lines] + +" Rust specific settings +autocmd FileType rust setlocal tabstop=4 shiftwidth=4 expandtab + +" Python specific settings +autocmd FileType python setlocal tabstop=4 shiftwidth=4 expandtab + +" JavaScript/TypeScript settings +autocmd FileType javascript,typescript setlocal tabstop=2 shiftwidth=2 expandtab + +" YAML settings +autocmd FileType yaml setlocal tabstop=2 shiftwidth=2 expandtab \ No newline at end of file -- cgit v1.2.3-70-g09d2