-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
146 lines (121 loc) · 3.66 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
let g:polyglot_disabled = ['autoindent']
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
Plug 'tpope/vim-surround'
Plug 'godlygeek/tabular'
Plug 'tpope/vim-commentary'
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
" Any valid git URL is allowed
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
" Multiple Plug commands can be written in a single line using | separators
" Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
" On-demand loading
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
" Using a non-master branch
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
Plug 'fatih/vim-go', { 'tag': '*' }
" Plugin options
Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
" Plugin outside ~/.vim/plugged with post-update hook
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
" Unmanaged plugin (manually installed and updated)
Plug '~/my-prototype-plugin'
" Awesome color scheme
Plug 'lervag/vimtex'
Plug 'xolox/vim-misc'
Plug 'leafgarland/typescript-vim'
Plug 'flazz/vim-colorschemes'
Plug 'xolox/vim-colorscheme-switcher'
" Additional Add-ons
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
" Plug 'kien/ctrlp.vim'
Plug 'tpope/vim-fugitive'
Plug 'majutsushi/tagbar'
Plug 'altercation/vim-colors-solarized'
Plug 'sheerun/vim-polyglot'
Plug 'itchyny/lightline.vim'
" Initialize plugin system
call plug#end()
" MAPS of KEYS
nnoremap Ä 5<C-w>+
nnoremap ä 5<C-w>-
nnoremap Ö 5<C-w>>
nnoremap ö 5<C-w><
map <C-n> : NERDTreeToggle<CR>
nnoremap bn : bn<cr>
nnoremap bm : bp<cr>
" nnoremap bp : bp<cr>
nnoremap bd : bd<cr>
nnoremap <S-Tab> : tabprevious<cr>
nnoremap <Tab> : tabnext<cr>
nnoremap <C-t> : tabnew<cr>
nnoremap td : tabclose<cr>
noremap <c-s-up> :call feedkeys( line('.')==1 ? '' : 'ddkP' )<CR>
noremap <c-s-down> ddp
" jump lines
map <S-j> 5j
map <S-k> 5k
" html uncomment
nnoremap <C-h> : s/^\(.*\)$/<!-- \1 -->/
" copy to clipboard
" isntall vim-gtk and xclip
set clipboard^=unnamed,unnamedplus
set guioptions+=a
vmap <F6> :!xclip -f -sel clip<CR>
map <F7> :-1r !xclip -o -sel clip<CR>
" Setting of variables
syntax enable
" set shiftwidth=4
" set tabstop=4
colorscheme afterglow
" set background=dark
set cursorline
set splitbelow
" set relativenumber
let g:ctrlp_map = '<c-p>'
set list
set listchars=tab:›\ ,trail:⋅
" Mode Setting
let &t_SI.="\e[6 q" "SI = INSERT mode
let &t_SR.="\e[1 q" "SR = REPLACE mode
let &t_EI.="\e[1 q" "EI = NORMAL mode (ELSE)
"Cursor settings:
" 1 -> blinking block
" 2 -> solid block
" 3 -> blinking underscore
" 4 -> solid underscore
" 5 -> blinking vertical bar
" 6 -> solid vertical bar
"
",eol:-
set number
" let g:airline_theme='alduin'
set t_Co=256
" set termguicolors
set mouse=a
let g:tex_flavor = 'latex'
" set lcs+=space:·
let g:NERDTreeWinPos = "right"
" File rendering
filetype indent on
autocmd Filetype typescript setlocal noexpandtab tabstop=4 sw=4 sts=4
autocmd Filetype javascript setlocal noexpandtab tabstop=4 sw=4 sts=4
autocmd Filetype svelte setlocal noexpandtab tabstop=4 sw=4 sts=4
autocmd Filetype python setlocal expandtab tabstop=4 sw=4 sts=4
autocmd Filetype vue setlocal noexpandtab tabstop=2 sw=2 sts=2
set laststatus=2
if !has('gui_running')
set t_Co=256
endif
" set noshowmode
" tmux
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
" set termguicolors