-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot.vimrc
66 lines (48 loc) · 1.34 KB
/
dot.vimrc
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
"
" Custom configurations for vim.
" Global settings for all files (but may be overridden in ~/.vim/ftplugin/*.vim)
" http://vim.wikia.com/wiki/Keep_your_vimrc_file_clean
" Colour reference:
" http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim
""" Vundle
"filetype off
" set the runtime path to include Vundle and initialize.
"set rtp+=~/.vim/bundle/Vundle.vim
"call vundle#begin()
" let Vundle manage itself.
"Plugin 'gmarik/Vundle'
"Plugin 'scrooloose/nerdtree'
"Plugin 'flazz/vim-colorschemes'
"call vundle#end()
"filetype plugin indent on
""" Remove vi compatibility mode.
set nocompatible
""" Tabs
set tabstop=4
set shiftwidth=4
set expandtab
""" Searching
set incsearch
set ignorecase
set hlsearch
" Press space to clear search highlighting and any message already displayed.
nnoremap <silent> <Space> :silent noh<Bar>echo<CR>
""" Colour scheme
colorscheme shaniber
""" Syntax highlighting
filetype plugin indent on
syntax on
""" Line numbers
set number
""" Turn off auto commenting
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
""" Other stuff, I guess.
set ruler
set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
set ls=2
au FileType javascript setl sw=2 sts=2 et
""" Include any local vimrc configurations
let $LOCALFILE=expand("~/.vimrc_local")
if filereadable($LOCALFILE)
source $LOCALFILE
endif