forked from juanpedrojose/ultinvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
94 lines (75 loc) · 2.14 KB
/
init.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
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
" set default charset
set encoding=utf-8
set termencoding=utf-8
" disable .swap or backup files
set noswapfile
set nobackup
set nowritebackup
" indentation
set autoindent
set ts=2 " number of spaces in a tab
set sw=2 " number of spaces for indent
set et " expand tabs into spaces
" overwrite ts and sw when editing .js files
autocmd FileType javascript set tabstop=4|set shiftwidth=4
" and for .css files
autocmd FileType css set tabstop=4|set shiftwidth=4
" highlight settings
set incsearch
set hlsearch
set ignorecase
set smartcase
" ruler at 120
set colorcolumn=120
" splits placement
set splitbelow
set splitright
" enable syntax highlight
filetype plugin indent on
syntax on
" presentation settings
set number " precede each line with its line number
set numberwidth=3 " number of culumns for line numbers
set textwidth=0 " Do not wrap words (insert)
set nowrap " Do not wrap words (view)
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set visualbell " use visual bell instead of beeping
set laststatus=2 " always show the status line
set list listchars=tab:>-,trail:.,extends:>
set list
" highlight spell errors
hi SpellErrors guibg=red guifg=black ctermbg=red ctermfg=black
" terminal true colors
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
" decreasing updatetime
set updatetime=100
" making clipboard systemwide
set clipboard=unnamed
" sesions
set ssop-=options
set ssop-=folds
set ssop-=help
" performance improvements
set re=1
set ttyfast
set lazyredraw
set norelativenumber
set nocursorline
set hid
" Ctags
" generate ctags: ctags -R --exclude=.git --exclude=frontend --exclude=log *
set tags=./idea/tags;
" remove extra whitespace on save
autocmd FileType * autocmd BufWritePre <buffer> %s/\s\+$//e
" cancel last search with esc
nnoremap <esc> :noh<return><esc>
" Colorschemes
colorscheme railscasts
" autocmd BufWritePre * :%s/\s\+$//e
" load bundles
source ~/.config/nvim/bundles.vim
" load bundles config
source ~/.config/nvim/plugins.vim
" load key bindings
source ~/.config/nvim/bindings.vim