-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.vim
More file actions
92 lines (73 loc) · 2.25 KB
/
init.vim
File metadata and controls
92 lines (73 loc) · 2.25 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
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
syntax on
set background=dark
set nocompatible
set list
set number
set laststatus=2
set mouse=a
set termguicolors
let g:ale_virtualtext_cursor = 'none'
call plug#begin()
" plugins
Plug 'morhetz/gruvbox'
Plug 'lifepillar/vim-gruvbox8'
Plug 'vim-airline/vim-airline'
Plug 'jszakmeister/vim-togglecursor'
Plug 'jmcantrell/vim-virtualenv'
Plug 'tpope/vim-commentary'
Plug 'scrooloose/nerdtree'
Plug 'dense-analysis/ale'
Plug 'ryanoasis/vim-devicons'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-fugitive'
Plug 'yggdroot/indentline'
Plug 'kien/ctrlp.vim'
Plug 'slim-template/vim-slim'
Plug 'stylelint/stylelint'
Plug 'bmatcuk/stylelint-lsp'
Plug 'jeffkreeftmeijer/vim-numbertoggle'
Plug 'nlknguyen/copy-cut-paste.vim'
Plug 'davidhalter/jedi-vim'
Plug 'ervandew/supertab'
call plug#end()
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
set termguicolors
let g:bargreybars_auto = 0
autocmd VimEnter * NERDTree | wincmd p
nmap <C-n> :NERDTree<CR>
nmap <C-t> :NERDTreeToggle<CR>
nmap <C-f> :NERDTreeFind<CR>
" Exit Vim if NERDTree is the only window remaining in the only tab.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
" Close the tab if NERDTree is the only window remaining in it.
autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
" Open the existing NERDTree on each new tab.
autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif
"
colorscheme gruvbox
let g:gruvbox_termcolors=16
" Tabe ustom keymaps
nmap tn :tabn<CR>
nmap tp :tabp<CR>
" CCP custom keymaps
let g:copy_cut_paste_no_mappings = 1
nmap uy <Plug>CCP_CopyLine
vmap uy <Plug>CCP_CopyText
nmap uo <Plug>CCP_CutLine
vmap uo <Plug>CCP_CutText
nmap up <Plug>CCP_PasteText
let g:SuperTabDefaultCompletionType = "<c-n>"
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
" powerline symbols
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
let g:airline_symbols.branch = ''
let g:airline_symbols.readonly = ''
let g:airline_symbols.linenr = ' ☰ '
let g:airline_symbols.maxlinenr = ' '
let g:airline_symbols.dirty='⚡'