-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugged-init.vim
75 lines (58 loc) · 1.2 KB
/
plugged-init.vim
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
set relativenumber
set number
set copyindent
set autoindent
set expandtab
set shiftwidth=4
set softtabstop=4
set tabstop=4
set clipboard+=unnamedplus
set wrap
set linebreak
set cursorline
set colorcolumn=80
set showmatch
set ignorecase
set smartcase
" I'm not sure what is this
set backspace=indent,eol,start
" use dvorak in insert mode
" set keymap=dvorak
" Put the cursor in the middle
set scrolloff=9
set splitright
set splitbelow
nnoremap j gj
nnoremap k gk
nnoremap gj j
nnoremap gk k
nnoremap H h
nnoremap J j
nnoremap K k
nnoremap L l
" Use control backspace to delete previus word
" control w is awful
inoremap <C-H> <C-w>
inoremap <C-BS> <C-w>
" inoremap <C-?> <C-w>
inoremap <C-Space> <C-x><C-p>
inoremap <C-@> <C-x><C-p>
" Use gn and gN to move between files
map gn :bnext<CR>
map gN :bprevious<CR>
colorscheme elflord
if filereadable($HOME."/.vimrc.cscope")
source $HOME/.vimrc.cscope
endif
" PLUGINS
call plug#begin()
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'dhananjaylatkar/cscope_maps.nvim',
call plug#end()
" FZF config
map ff :Files
if !empty($ADE_VIEW_NAME)
" start cscope if inside an ade view
lua require("cscope_maps").setup()
endif