-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
53 lines (46 loc) · 1.34 KB
/
vimrc
File metadata and controls
53 lines (46 loc) · 1.34 KB
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
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vimwiki/vimwiki'
Plugin 'arcticicestudio/nord-vim'
Plugin 'vim-airline/vim-airline'
Plugin 'preservim/nerdtree'
Plugin 'voldikss/vim-floaterm'
Plugin 'cheat/vim-so'
Plugin 'neoclide/coc.nvim', {'branch': 'release'}
call vundle#end() " required
filetype plugin indent on " required
set number
syntax on
set autoindent
set cursorline
set softtabstop=4
set tabstop=4
set shiftwidth=4
set expandtab
set clipboard+=unnamedplus
colorscheme nord
map <F4> :NERDTreeToggle<CR>
map <F5> :FloatermToggle<CR>
let g:so_browser = "librewolf"
command -nargs=1 So call so#search(<q-args>)
command SoView call so#view()
nnoremap <C-N> :call so#next()<CR>
nnoremap <C-P> :call so#prev()<CR>
highlight Normal guibg=none
highlight NonText guibg=none
highlight Normal ctermbg=none
highlight NonText ctermbg=none
if &insertmode == 0
inoremap <silent><expr> <A-TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<A-TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
endif