-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
57 lines (52 loc) · 3.09 KB
/
.vimrc
File metadata and controls
57 lines (52 loc) · 3.09 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
" Plugins (vim-plug)
call plug#begin()
Plug 'tpope/vim-fugitive' " Git for vim
Plug 'ajmwagar/vim-deus' " Color Theme
Plug 'vim-syntastic/syntastic' " Error handling
Plug 'rust-lang/rust.vim' " Rust syntax handling
Plug 'racer-rust/vim-racer' " Rust Autocomplete
call plug#end()
" Plugin Settings
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
filetype plugin indent on " rust.vim auto formating
" Display Settings
syntax on " syntax highlighting on
colorscheme deus " color theme
set showcmd " show comands in bottom right
" Gerneral Settings
set nobackup " No backup files
set noswapfile " No swap files
set backspace=indent,eol,start " backspacing over everything in insert mode
set expandtab " fill tabs with spaces
" Search Settings
set hlsearch " highlight search results
set ignorecase " do case insensitive search...
set incsearch " do incremental search
set smartcase " ...unless capital letters are used
" Status Bar Settings
set laststatus=2 " always show status bar
set statusline= " clear status bar
set statusline=%n " buffer number
set statusline+=\ " seperator
set statusline+=%{fugitive#statusline()} " git info
set statusline+=\ " seperator
set statusline+=%f " file path from current directory
set statusline+=%m " modified status (+ changed, - No permision)
set statusline+=\ " seperator
"set statusline+=[%{&ff}:%{&fenc}:%Y] " file format:file encoding:filetype
"set statusline+=\ " seperator
"set statusline+=%{getcwd()} " current working directory
"set statusline+=\ " seperator
set statusline+=%=\ " switch to right side
set statusline+=[ " formating string
set statusline+=%{strftime('%Y/%m/%d\ ')} " year/month/day
set statusline+=%{strftime('%a\ ')} " day abbreviation i.e Wed,Thr
set statusline+=%{strftime('%I:%M\ %p')} " hr:min am/pm
set statusline+=] " formating string
set statusline+=\ " seperator
set statusline+=%4l\/%L:%03c " current line/total lines:column
set statusline+=\ " seperator
set statusline+=%3p " percent of file