-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_vimrc
More file actions
58 lines (50 loc) · 2.21 KB
/
Copy pathdot_vimrc
File metadata and controls
58 lines (50 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
" General Settings
set nocompatible " Use Vim features, not Vi
set encoding=utf-8 " Use UTF-8 encoding
set history=1000 " Remember more commands and search history
set undolevels=1000 " Use many levels of undo
" Display
set number " Show line numbers
set relativenumber " Show relative line numbers (hybrid mode)
set ruler " Show cursor position
set showcmd " Show incomplete commands
set showmode " Show current mode
set laststatus=2 " Always show status line
set wildmenu " Visual autocomplete for command menu
set wildmode=list:longest,full " Better command completion
set cursorline " Highlight current line
" Indentation
set autoindent " Copy indent from current line
set smartindent " Smart autoindenting on new lines
set expandtab " Use spaces instead of tabs
set tabstop=4 " Number of spaces tabs count for
set shiftwidth=4 " Number of spaces to use for autoindent
set softtabstop=4 " Number of spaces for tab in insert mode
" Search
set hlsearch " Highlight search results
set incsearch " Search as you type
set ignorecase " Case insensitive search
set smartcase " Case sensitive if uppercase present
set showmatch " Show matching brackets
" Behavior
set hidden " Allow hidden buffers
set backspace=indent,eol,start " Make backspace work properly
set mouse=a " Enable mouse support
set clipboard=unnamed " Use system clipboard
set autoread " Reload files changed outside vim
set noerrorbells " No error bells
set noswapfile " Don't create swap files
set nobackup " Don't create backup files
" Performance
set lazyredraw " Don't redraw while executing macros
set ttyfast " Faster terminal connection
" Wrapping
set wrap " Wrap long lines
set linebreak " Wrap at word boundaries
set textwidth=0 " Don't automatically break lines
" Scrolling
set scrolloff=5 " Keep 5 lines above/below cursor
set sidescrolloff=5 " Keep 5 columns left/right of cursor
" File type detection
filetype plugin indent on " Enable file type detection and plugins
syntax enable " Enable syntax highlighting