summaryrefslogtreecommitdiff
path: root/.vimrc
blob: 740c3270c31b8a8c8811411efb067bebd669b80d (plain)
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
call plug#begin('~/.vim/plugged')
    Plug 'gruvbox-community/gruvbox'
    Plug 'tpope/vim-fugitive'
    Plug 'tpope/vim-surround'
    Plug 'tpope/vim-repeat'
    Plug 'mhinz/vim-startify'
call plug#end()

filetype indent plugin on
syntax enable
set mouse=a
set nocompatible
set hidden
set wildmenu
set wildignorecase 
set fileignorecase
set showcmd
set hlsearch
set incsearch
set ignorecase
set smartcase
set backspace=indent,eol,start
set autoindent
set ruler
set confirm
set visualbell
set number relativenumber 
set notimeout ttimeout ttimeoutlen=200
set pastetoggle=<F11>
set shiftwidth=4
set softtabstop=4
set expandtab
set noswapfile
set nowrap
set background=dark

set laststatus=2
set statusline=
set statusline+=%#Directory#
set statusline=\ %f\ 
set statusline+=%#LineNr#
set statusline+=%=
set statusline+=%#Normal#
set statusline+=\ Lines:
set statusline+=%L\ 
set statusline+=\ %p%%\ 
set statusline+=%#Constant#
set statusline+=%y

map Y y$
nnoremap <C-L> :nohl<CR><C-L>
nnoremap n nzzzv
nnoremap N Nzzzv
inoremap kj <Esc>
tnoremap kj <C-\><C-n>

inoremap , ,<c-g>u
inoremap . .<c-g>u
inoremap [ [<c-g>u
inoremap ! !<c-g>u
inoremap ? ?<c-g>u

let mapleader=" "
nnoremap <leader>h :wincmd h<CR>
nnoremap <leader>j :wincmd j<CR>
nnoremap <leader>k :wincmd k<CR>
nnoremap <leader>l :wincmd l<CR>

colorscheme gruvbox
highlight CursorLine cterm=NONE ctermbg=NONE ctermfg=NONE guibg=NONE guifg=NONE
highlight CursorLineNr cterm=bold ctermbg=Black ctermfg=Yellow
set cursorline

let g:ascii = [
\'             ,,                   ', 
\'             db                   ', 
\'                                  ', 
\"`7M'   `MF'`7MM  `7MMpMMMb.pMMMb. ", 
\'  VA   ,V    MM    MM    MM    MM ', 
\'   VA ,V     MM    MM    MM    MM ', 
\'    VVV      MM    MM    MM    MM ', 
\'     W     .JMML..JMML  JMML  JMML',
\'',
\] 
let g:startify_custom_header = startify#pad(g:ascii)