-
Notifications
You must be signed in to change notification settings - Fork 1
/
general.vim
45 lines (37 loc) · 992 Bytes
/
general.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
let g:auto_save = 1 " enable AutoSave on Vim startup
"Colorscheme
set background=dark
set termguicolors
set mouse=a
let g:airline_theme='deep_space'
let g:gruvbox_contrast_dark='hard'
" colorscheme deep-space
colorscheme gruvbox
set rtp+=~/.fzf " fzf config
" disable tabline
set number
set showtabline=0
set autoindent
set smartindent
set tabstop=2
set shiftwidth=2
set expandtab
set textwidth=80
set hidden
" Buffer controls
nnoremap <C-N> :bnext<CR>
nnoremap <C-P> :bprev<CR>
nnoremap <C-D> :bdelete %<CR>
" keep buffer of lines above and below cursor
set scrolloff=5
" display incomplete commands
set showcmd
" Sass and CSS files autocomplete
autocmd FileType css,sass,scss setlocal omnifunc=csscomplete#CompleteCSS
autocmd FileType javascript,json,yaml,yml,jsx,vue setlocal shiftwidth=2 tabstop=2
" Always set the current file as working directory
autocmd BufEnter * lcd %:p:h
" augroup twig_ft
" au!
" autocmd BufNewFile,BufRead *.vue set filetype=javascript
" augroup END