-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc2
109 lines (100 loc) · 3.13 KB
/
.vimrc2
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
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
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 'preservim/nerdtree'
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 'xolox/vim-colorscheme-switcher'
" Plug 'suan/vim-instant-markdown'
Plug 'suan/vim-instant-markdown', {'for': 'markdown'}
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
" Plug 'kien/ctrlp.vim'
Plug 'bling/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-fugitive'
Plug 'majutsushi/tagbar'
Plug 'altercation/vim-colors-solarized'
Plug 'lifepillar/vim-solarized8'
Plug 'posva/vim-vue'
" 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
map <S-j> 5j
map <S-k> 5k
" Setting of variables
syntax enable
" set shiftwidth=4
" set tabstop=4
colorscheme solarized8
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 mouse=a
let g:tex_flavor = 'latex'
" set lcs+=space:·
let g:NERDTreeWinPos = "right"
filetype indent on
autocmd Filetype typescript 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
let g:vue_pre_processors = ['scss']