-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
98 lines (74 loc) · 2.19 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
" Vim plug stuff: pluginns will be downloaded under the directory
call plug#begin('~/.vim/plugged')
" Declare the list of plugins
Plug 'vim-scripts/wombat256.vim'
Plug 'scrooloose/nerdcommenter'
Plug 'tpope/vim-fugitive'
Plug 'jiangmiao/auto-pairs'
Plug 'JuliaEditorSupport/julia-vim'
Plug 'vim-airline/vim-airline'
Plug 'fladson/vim-kitty'
Plug 'preservim/nerdtree'
Plug 'mg979/vim-visual-multi', {'branch': 'master'}
" Plug 'davidhalter/jedi-vim'
" Plug 'ycm-core/YouCompleteMe', {'do': './install.py --clangd-completer --ts-completer'}
call plug#end()
" Colorscheme
color wombat256mod
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
syntax on
filetype plugin indent on
" Short esc key timeout
set timeoutlen=1000 ttimeoutlen=0
" More natural split opening
set splitbelow
set splitright
set nu
set cursorline
set ruler
set ignorecase
set smartcase
set hlsearch
set wildmenu
" Set syntax highlighting for markdown
let g:markdown_fenced_languages = ['html', 'py=python', 'sh=bash', 'julia', 'c', 'cpp', 'rust']
" change semi colon to colon in normal mode
nnoremap ; :
" Posssibly faster scrolling
set ttyfast
" Faster navigation between splits
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>
" =======vim-airline=====
let g:airline_section_b = '%{strftime("%c")}'
let g:airline_section_y = 'BN: %{bufnr("%")}'
" Set leader as ,
let mapleader=","
"-------------------
" Nercommenter stuff
" ------------------
filetype plugin on
" Add spaces after comment delimiters by default
let g:NERDSpaceDelims = 1
" Use compact syntax for prettified multiline comments
let g:NERDCompactSexyComs = 1
" Enable trimming of trailing whitespace when uncommenting
let g:NERDTrimTrailingWhitespace = 1
"---------------------
"Nerdtree preferences
"---------------------
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
" Start NERDTree and put the cursor back in the other window.
" autocmd VimEnter * NERDTree | wincmd p
" Set NERDTree window size
let g:NERDTreeWinSize=20