-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.vimrc
57 lines (52 loc) · 1.31 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
set nocompatible
set relativenumber
set cursorline
set backspace=indent,eol,start
set clipboard=unnamedplus
set noswapfile
set nowritebackup
set runtimepath+=/opt/domus/vim
set background=dark
set autoindent
set smarttab
set shiftwidth=2
set softtabstop=2
set tabstop=2
set expandtab
set list listchars=tab:>-
set linebreak
set incsearch
set hlsearch
set ignorecase
set smartcase
call plug#begin('/opt/domus/vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'arcticicestudio/nord-vim'
Plug 'editorconfig/editorconfig-vim'
Plug 'ap/vim-css-color'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
call plug#end()
let g:airline_theme='nord'
let g:airline_powerline_fonts = 1
colorscheme nord
if (has("termguicolors")) && (v:version < 802)
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
if has('persistent_undo')
set undodir=~/.cache/vim/
set undofile
endif
augroup vimrcEx
autocmd!
" When editing a file, always jump to the last known cursor position.
" Don't do it for commit messages, when the position is invalid, or when
" inside an event handler (happens when dropping a file on gvim).
autocmd BufReadPost *
\ if &ft != 'gitcommit' && line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
augroup END