forked from hasanguner/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
executable file
·90 lines (76 loc) · 2.03 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
set nocompatible
set encoding=utf-8
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Bundle 'takac/vim-hardtime'
Plugin 'preservim/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'udalov/kotlin-vim'
Plugin 'godlygeek/tabular'
Plugin 'ervandew/supertab'
Plugin 'elzr/vim-json', {'for' : 'json'}
Plugin 'ekalinin/Dockerfile.vim', {'for' : 'Dockerfile'}
Bundle 'sonph/onehalf', {'rtp': 'vim/'}
call vundle#end()
syntax on
filetype plugin indent on
set autoindent
set autoread
set backspace=2
set ttyfast
set showcmd
set number relativenumber
set ruler
set tabstop=4
set shiftwidth=4
set expandtab
set background=dark
set clipboard=unnamed
set scrolloff=3
set history=10000
"Map command line window to quit
map q: :q
"Configure completion menu
set completeopt=longest,menuone
inoremap <expr> <C-n> pumvisible() ? '<C-n>' : '<C-n><C-r>=pumvisible() ? "\<lt>Down>" : ""<CR>'
inoremap <expr> <M-,> pumvisible() ? '<C-n>' : '<C-x><C-o><C-n><C-p><C-r>=pumvisible() ? "\<lt>Down>" : ""<CR>'
"No bell
set belloff=all
"No backup/swap
set noswapfile
set nobackup
"Improve searchs
set ignorecase
set smartcase
set incsearch
set hlsearch
"Unsets the search highlight by hitting enter
nnoremap <CR> :noh<CR>
"More natural split opening
set splitbelow
set splitright
"Easier split navigation
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
let g:onedark_termcolors = 256
let g:airline_theme = 'onedark'
let g:material_terminal_italics = 1
let g:airline_powerline_fonts = 1
colorscheme default
highlight LineNr ctermfg=grey
"Hard Time
let g:hardtime_default_on = 1
let g:list_of_normal_keys = ["<UP>", "<DOWN>", "<LEFT>", "<RIGHT>"]
let g:list_of_visual_keys = ["<UP>", "<DOWN>", "<LEFT>", "<RIGHT>"]
let g:list_of_insert_keys = ["<UP>", "<DOWN>", "<LEFT>", "<RIGHT>"]
let g:list_of_disabled_keys = []
"NERDTree
map <C-n> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1