-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
73 lines (65 loc) · 2.2 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
call plug#begin('~/.config/nvim/plugged')
Plug 'arcticicestudio/nord-vim'
Plug 'christoomey/vim-tmux-navigator'
if file_readable('/usr/share/vim/vimfiles/plugin/fzf.vim')
Plug '/usr/share/vim/vimfiles/'
else
Plug 'junegunn/fzf', { 'do': './install --bin' }
endif
Plug 'junegunn/fzf.vim'
Plug 'machakann/vim-sandwich'
if executable('node')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
endif
Plug 'Raimondi/delimitMate'
Plug 'rootkiter/vim-hexedit'
Plug 'tpope/vim-sleuth'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'vimoutliner/vimoutliner'
call plug#end()
set nocompatible
set number
set backspace=indent,eol,start
set mouse+=a
set showcmd
set nowrap
set nomodeline
set splitbelow splitright
set expandtab shiftwidth=4 tabstop=4
set autoindent
set list listchars=tab:>\ ,trail:-,nbsp:+
set synmaxcol=0
syntax on
filetype plugin indent on
colorscheme nord
" Insert a new line and indent after a brace followed by a new line
let g:delimitMate_expand_cr = 1
" Run xrdb automatically when editing X config files
au BufWritePost *Xresources !xrdb %
" Jump to last position when opening a file
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g'\"" | endif
" vim-tmux-navigator keybindings
let g:tmux_navigator_no_mappings = 1
nnoremap <silent> <C-Left> :TmuxNavigateLeft<cr>
inoremap <silent> <C-Left> <C-o>:TmuxNavigateLeft<cr>
nnoremap <silent> <C-h> :TmuxNavigateLeft<cr>
inoremap <silent> <C-h> <C-o>:TmuxNavigateLeft<cr>
nnoremap <silent> <C-Down> :TmuxNavigateDown<cr>
inoremap <silent> <C-Down> <C-o>:TmuxNavigateDown<cr>
nnoremap <silent> <C-j> :TmuxNavigateDown<cr>
inoremap <silent> <C-j> <C-o>:TmuxNavigateDown<cr>
nnoremap <silent> <C-Up> :TmuxNavigateUp<cr>
inoremap <silent> <C-Up> <C-o>:TmuxNavigateUp<cr>
nnoremap <silent> <C-k> :TmuxNavigateUp<cr>
inoremap <silent> <C-k> <C-o>:TmuxNavigateUp<cr>
nnoremap <silent> <C-Right> :TmuxNavigateRight<cr>
inoremap <silent> <C-Right> <C-o>:TmuxNavigateRight<cr>
nnoremap <silent> <C-l> :TmuxNavigateRight<cr>
inoremap <silent> <C-l> <C-o>:TmuxNavigateRight<cr>
" Disable annoying ex mode misclick
nnoremap Q <Nop>
" Allow :Q for quitting, :Wq for saving and quitting
command Q q
command Wq wq