Created
September 7, 2019 11:31
-
-
Save vkobel/741f87d217d0c27173d21967e848119f to your computer and use it in GitHub Desktop.
my vim configuration (nvim)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ ccat ~/.config/nvim/init.vim | |
" ====================== | |
" Plugins are define here | |
" ====================== | |
call plug#begin('~/.vim/plugged') | |
Plug 'Valloric/YouCompleteMe' | |
Plug 'scrooloose/nerdtree' | |
Plug 'drewtempelmeyer/palenight.vim' | |
Plug 'itchyny/lightline.vim' | |
Plug '/usr/bin/fzf' | |
Plug 'junegunn/fzf.vim' | |
Plug 'ap/vim-buftabline' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'w0rp/ale' | |
call plug#end() | |
" ====================== | |
" Plugins are define here | |
" ====================== | |
"disable definition preview in completeme | |
set completeopt-=preview | |
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab | |
set number | |
set background=dark | |
set mouse=a | |
colorscheme palenight | |
let g:lightline = { 'colorscheme': 'palenight' } | |
if (has("nvim")) | |
"For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 > | |
let $NVIM_TUI_ENABLE_TRUE_COLOR=1 | |
endif | |
"For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 > | |
"Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd > | |
" < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 > | |
if (has("termguicolors")) | |
set termguicolors | |
endif | |
" Italics for my favorite color scheme | |
let g:palenight_terminal_italics=1 | |
"fzf | |
nnoremap <C-P> :Files<CR> | |
nnoremap <C-O> :Rg<Cr> | |
"nerdtree | |
map <C-l> :NERDTreeToggle<CR> | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
"buffer as tab | |
set hidden | |
nnoremap <C-M> :bnext<CR> | |
nnoremap <C-N> :bprev<CR> | |
hi default link BufTabLineActive TabLineSel | |
hi default link BufTabLineCurrent PmenuSel | |
"Auto jump where left off | |
if has("autocmd") | |
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | |
\| exe "normal! g'\"" | endif | |
endif | |
set undofile " Maintain undo history between sessions | |
" gitgutter configuration | |
let g:gitgutter_map_keys = 0 | |
let g:gitgutter_sign_added = "┃" | |
let g:gitgutter_sign_modified = "┃" | |
let g:gitgutter_sign_removed = "┃" | |
let g:gitgutter_sign_removed_first = "┃" | |
let g:gitgutter_sign_modified_removed = "┃" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment