forked from jasoncodes/vimfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.vim
64 lines (56 loc) · 4.04 KB
/
global.vim
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
syntax on " Turn on syntax highlighting
filetype plugin indent on " Enable automatic filetype detection, filetype-specific plugins/indentation
set nocompatible " Don't need to keep compatibility with Vi
set hidden " Allow hiding buffers with unsaved changes
set listchars=trail:.,tab:▸\ ,eol:¬ " Change the invisible characters
set nolist " Hide invisibles by default
set showcmd " Show incomplete cmds down the bottom
set showmode " Show current mode down the bottom
set history=1000 " Remember more history for commands and search patterns
set ttyfast " More smooth screen redrawing
set incsearch " Find the next match as we type the search
set hlsearch " Highlight searches by default
set ruler " Show ruler
set number " Show line numbers
set mouse=a " Enable the mouse
set linespace=2 " Spacing between lines
set noswapfile " Disable creation of *.swp files
set t_Co=256 " Support for xterm with 256 colors (gets overriden in .gvimrc)
set title " Show title in terminal vim
set modelines=1 " Check the first line of files for a modeline (tab vs spaces, etc)
set autoread " Automatically reload externally modified files when clean
set autowriteall " Automatically write modified files
set spelllang=en_au " Set default spelling language to English (Australia)
set antialias
set visualbell " Turns off beeping
" Indentation
set shiftwidth=2 " Number of spaces to use in each autoindent step
set tabstop=2 " Two tab spaces
set softtabstop=2 " Number of spaces to skip or insert when <BS>ing or <Tab>ing
set expandtab " Spaces instead of tabs for better cross-editor compatibility
set autoindent " Keep the indent when creating a new line
set smarttab " Use shiftwidth and softtabstop to insert or delete (on <BS>) blanks
set cindent " Recommended seting for automatic C-style indentation
set autoindent " Automatic indentation in non-C files
set foldmethod=indent " Fold based on source indentation
set foldlevelstart=99 " Expand all folds by default
" Wrap
set nowrap " I don't always wrap lines...
set linebreak " ...but when I do, I wrap whole words.
set wildmenu " Make tab completion act more like bash
set wildmode=list:longest " Tab complete to longest common string, like bash
" Moving around / editing
"set nostartofline " Avoid moving cursor to BOL when jumping around
"set virtualedit=all " Let cursor move past the last char
set scrolloff=3 " Keep 3 context lines above and below the cursor
set backspace=2 " Allow backspacing over autoindent, EOL, and BOL
set showmatch " Briefly jump to a paren once it's balanced
set matchtime=2 " (for only .2 seconds).
" Searching
set ignorecase " Ignore case by default when searching
set smartcase " Switch to case sensitive mode if needle contains uppercase characters
" Custom status line
set statusline=%F%m%r%h%w\ [TYPE=%Y]\ \ \ \ \ \ [POS=%2l,%2v][%p%%]\ \ \ \ \ \ [LEN=%L]
set laststatus=2
" Default colourscheme
colorscheme jellybeans