This repository was archived by the owner on Jun 18, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathglobal.vim
More file actions
118 lines (81 loc) · 2.76 KB
/
Copy pathglobal.vim
File metadata and controls
118 lines (81 loc) · 2.76 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
" General Settings:
" Vim not vi
set nocompatible
" We use UTF8 by default
scriptencoding utf-8
" Enable filetype-specific indenting and plugins
filetype plugin indent on
" Enable syntax
syntax on
" Put our temp files in /tmp
set directory=/tmp/
" Do not create backup files when saving over existing files
set nobackup
" A little paranoid, but disable the writebackup function as well
set nowritebackup
" No swap files when editing please
set noswapfile
" No visual bell
set vb t_vb=
" Set to auto read when a file is changed from the outside
set autoread
" We're on the fastest TTY ever
set ttyfast
" Also match angle brackets
set matchpairs+=<:>
" Undo Configuration:
" Enable undo file
set undofile
" Set undodir to tmp directory
let &undodir=&directory
" Tags:
" Show extra information when using tags in insert mode
set showfulltag
" Completion:
" Ignore case on insert completion
set infercase
set completeopt=menuone,preview
" When more than one match, list all matches and complete first match.
set wildmode=list:full
" Mouse:
set mousehide " Hide mouse pointer on insert mode.
set mouse=a
" Text:
set whichwrap=h,l,~,[,] " Wrap with more keys
set nowrap " Disable line wrapping
" use indents of 2 spaces, and have them copied down lines:
set expandtab
set tabstop=2
set softtabstop=2
set shiftwidth=2
" Round indent by a multiple of shiftwidth in indent mode
set shiftround
set number " Enable line numbers
set numberwidth=3 " Set line number column width
" WindowAndBufferManagement:
set splitbelow " Open new horizontal split windows below current
set splitright " Open new vertical split windows to the right
"set switchbuf=useopen,usetab,split " Don't change my current buffer on quickfix
" Search:
" show the `best match so far' as search strings are typed:
set incsearch
" Don't highlight search result.
set nohlsearch
" Searches wrap around the end of the file
set wrapscan
" assume the /g flag on :s substitutions to replace all matches in a line:
set gdefault
" Formatting:
set fo-=o " Do not automatically insert the current comment leader after hitting 'o' or 'O' in Normal mode.
set fo-=r " Do not automatically insert a comment leader after an enter
set fo-=t " Do no auto-wrap text using textwidth (does not apply to comments)
" We use all the colors, all 256 of the possible colors in the universe
set t_Co=256
" Buffers become hidden when unloaded
set hidden
" Show line wraps with fancy action
set showbreak=↪
" Help Program: Use vim help instead of language specific for shift-k
set keywordprg=:help
" Always show status bar
set laststatus=2