-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathvimrc
115 lines (103 loc) · 2.61 KB
/
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
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
au! BufRead,BufNewFile *.sass setfiletype sass
au! BufRead,BufNewFile *.scss setfiletype css
" Use vim settings, instead of vi
set nocompatible
set loadplugins
" Reindent operations (<< and >>)
""" BIKESHEDDING set shiftwidth=4
" 4 space tab
""" BIKESHEDDING set tabstop=4
" Causes backspace to delete 4 spaces
""" BIKESHEDDING set softtabstop=4
" Replaces a <TAB> with spaces
""" BIKESHEDDING set expandtab
" Uses shiftwidth instead of tabstop at start of lines
set smarttab
set modeline
set ruler
set history=100
set nowrap
" Change terminal title
set title
" No annoying error noises
set noerrorbells
" Make backspace delete lots of things
set backspace=indent,eol,start
" Show us the command we're typing
set showcmd
" Highlight matching parens
set showmatch
" Search options: incremental search, highlight search
set hlsearch
set incsearch
" Selective case insensitivity
set smartcase
" Show full tags when doing search completion
set showfulltag
" Speed up macros
set lazyredraw
" No annoying error noises
set noerrorbells
" Wrap on these
set whichwrap+=<,>,[,]
" Use the cool tab complete menu
set wildmenu
set wildmode=longest,full
set wildignore+=*.o,*~,*.pyc
" Allow edit buffers to be hidden
set hidden
" 1 height windows
set winminheight=1
" misc
set autowrite
if exists('+autochdir')
set autochdir
endif
set ttyfast
set smartcase
filetype indent on
filetype plugin on
set autoindent
set smartindent
syntax on
colorscheme slate
" make the mouse works under screen :
set ttymouse=xterm2
set mouse=ar
if has("gui_running")
set guifont=Monospace\ 8
set guioptions-=T
set guioptions-=m
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
set mousemodel=extend
set mousefocus
set mousehide
set noguipty
set guicursor=a:blinkon0
"Stupid comment character"
"# Custom options"
set fuoptions=maxvert,maxhorz
set lines=24 columns=80
highlight Normal gui=NONE guibg=Black guifg=White
highlight NonText gui=NONE guibg=Black
highlight Pmenu gui=NONE guifg=Black guibg=LightGrey
highlight PmenuSel gui=NONE guifg=LightGrey guibg=Black
highlight PmenuSbar gui=NONE guifg=LightGrey guibg=Black
highlight PmenuThumb gui=NONE guifg=Black guibg=LightGrey
endif
" Change buffer
map <C-N> :bn<CR>
map <C-P> :bp<CR>
" Shell like Home / End
inoremap <C-A> <Home>
inoremap <C-E> <End>
" Hide coloration of found words
map <C-C> :nohlsearch<CR>
autocmd FileType Makefile noexpandtab
au filetype tmpl set omnifunc=htmlcomplete#CompleteTags
" Change the current tab with ^j and ^k (normal mode only)
nnoremap <silent> <C-j> :tabnext<CR>
nnoremap <silent> <C-k> :tabprevious<CR>