~mdkcore/dotfiles

132b948080654877cd2c8aab69bc775a92793b7c — Rodrigo Oliveira 9 months ago 067aef2
[nvim] Remove old neovim configuration files
3 files changed, 0 insertions(+), 514 deletions(-)

M .install.conf.yaml
D nvim.old/bundles.vim
D nvim.old/init.vim
M .install.conf.yaml => .install.conf.yaml +0 -16
@@ 22,18 22,6 @@
    ~/.profile: profile
    ~/.bashrc: bashrc
    ~/.zshrc: zshrc
    # vim and its bundles
    ~/.vimrc: nvim.old/init.vim
    ~/.vim/bundles.vim:
        create: true
        path: nvim.old/bundles.vim
    # neovim
    ~/.config/nvim/bundles.vim:
        create: true
        path: nvim.old/bundles.vim
    ~/.config/nvim/init.vim:
        create: true
        path: nvim.old/init.vim
    ~/.pythonrc: pythonrc
    # tig
    ~/.config/tig: tig


@@ 97,10 85,6 @@
    -
        - git clone --recursive https://github.com/rizsotto/Bear.git ~/downloads/GIT/Bear
        - "Cloning BEAR dependency (You should compile/install it afterwards)"
    # Vundle
    -
        - git clone --recursive https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
        - "Cloning VUNDLE dependency (Run it afterwards: vim (or nvim) +PluginInstall +qall)"
    # weechat
    -
      - git clone --recursive https://github.com/weechat/scripts.git ~/downloads/GIT/weechat-scripts

D nvim.old/bundles.vim => nvim.old/bundles.vim +0 -297
@@ 1,297 0,0 @@
" Installation
filetype off
call vundle#begin()

" Vundle | https://github.com/VundleVim/Vundle.vim
Plugin 'gmarik/Vundle.vim'


if has('nvim')
    " vim-airline | https://github.com/vim-airline/vim-airline
    Plugin 'vim-airline/vim-airline'
    Plugin 'vim-airline/vim-airline-themes'
endif


" GitGutter | https://github.com/airblade/vim-gitgutter
Plugin 'airblade/vim-gitgutter'


" EasyMotion | https://github.com/easymotion/vim-easymotion
Plugin 'easymotion/vim-easymotion'


if has('nvim')
    " python specific
    " jedi | https://github.com/davidhalter/jedi
    Plugin 'davidhalter/jedi'
    " deoplete-jedi | https://github.com/zchee/deoplete-jedi
    Plugin 'zchee/deoplete-jedi'

    " c/c++ (clang) specific
    " deoplete-clang2 | https://github.com/tweekmonster/deoplete-clang2
    Plugin 'tweekmonster/deoplete-clang2'

    " deoplete.nvim | https://github.com/Shougo/deoplete.nvim
    " run after PluginInstall: UpdateRemotePlugins
    Plugin 'Shougo/deoplete.nvim'
endif


" neosnippet dependencies
" https://github.com/honza/vim-snippets
Plugin 'honza/vim-snippets'
" neosnippet.vim | https://github.com/shougo/neosnippet.vim
Plugin 'shougo/neosnippet.vim'
" neosnippet-snippets | https://github.com/Shougo/neosnippet-snippets
Plugin 'shougo/neosnippet-snippets'


" nerdcommenter | https://github.com/scrooloose/nerdcommenter
Plugin 'scrooloose/nerdcommenter'


" auto-pairs | https://github.com/jiangmiao/auto-pairs
Plugin 'jiangmiao/auto-pairs'


" neomru | https://github.com/Shougo/neomru.vim
Plugin 'Shougo/neomru.vim'
" neoyank | https://github.com/Shougo/neoyank.vim
Plugin 'Shougo/neoyank.vim'
" denite.nvim | https://github.com/Shougo/denite.nvim
Plugin 'Shougo/denite.nvim'


" vim-tmux-navigator | https://github.com/christoomey/vim-tmux-navigator
Plugin 'christoomey/vim-tmux-navigator'


" context_filetype | https://github.com/Shougo/context_filetype.vim
Plugin 'Shougo/context_filetype.vim'


" FSwitch | https://github.com/vim-scripts/FSwitch
Plugin 'vim-scripts/FSwitch'


" Gundo | https://github.com/sjl/gundo.vim
Plugin 'sjl/gundo.vim'


" vim-qml | https://github.com/peterhoeg/vim-qml
Plugin 'peterhoeg/vim-qml'


" i3-vim-syntax | https://github.com/PotatoesMaster/i3-vim-syntax
Plugin 'PotatoesMaster/i3-vim-syntax'


" vim-polyglot | https://github.com/sheerun/vim-polyglot
Plugin 'sheerun/vim-polyglot'


" vim-pydocstring | https://github.com/heavenshell/vim-pydocstring.git
Plugin 'heavenshell/vim-pydocstring.git'


" vim-indent-guides | https://github.com/nathanaelkane/vim-indent-guides
Plugin 'nathanaelkane/vim-indent-guides'


" vim-flake8 | https://github.com/nvie/vim-flake8
Plugin 'nvie/vim-flake8'


" ale | https://github.com/w0rp/ale
Plugin 'w0rp/ale'


" fzf.vim | https://github.com/junegunn/fzf.vim
set rtp+=~/downloads/GIT/fzf
Plugin 'junegunn/fzf.vim'


" vim-devicons | https://github.com/ryanoasis/vim-devicons
Plugin 'ryanoasis/vim-devicons'


" base16-vim | https://github.com/chriskempson/base16-vim
Plugin 'chriskempson/base16-vim'


" nvim-treesitter | https://github.com/nvim-treesitter/nvim-treesitter
Plugin 'nvim-treesitter/nvim-treesitter'


" nvim-lspconfig | https://github.com/neovim/nvim-lspconfig
Plugin 'neovim/nvim-lspconfig'

call vundle#end()
filetype plugin indent on


" Configuration
if has('nvim')
    " vim-airline | https://github.com/vim-airline/vim-airline
    let g:airline_powerline_fonts = 1
    let g:airline#extensions#tabline#enabled = 1
    let g:airline#extensions#tabline#show_close_button = 0
    let g:airline#extensions#tabline#show_buffers = 0
    " turning on ale integration
    let g:airline#extensions#ale#enabled = 1
endif


" EasyMotion | https://github.com/Lokaltog/vim-easymotion
let g:EasyMotion_leader_key = '<Leader>'


" deoplete-jedi | https://github.com/zchee/deoplete-jedi
let g:deoplete#sources#jedi#show_docstring = 1
" deoplete.nvim | https://github.com/Shougo/deoplete.nvim
let g:deoplete#enable_at_startup = 1
let g:deoplete#enable_smart_case = 1
autocmd CompleteDone * silent! pclose!


" neosnippet.vim | https://github.com/shougo/neosnippet.vim
let g:neosnippet#snippets_directory='~/.vim/bundle/vim-snippets/snippets'
imap <C-k>     <Plug>(neosnippet_expand_or_jump)
smap <C-k>     <Plug>(neosnippet_expand_or_jump)
xmap <C-k>     <Plug>(neosnippet_expand_target)
if has('conceal')
  set conceallevel=2 concealcursor=niv
endif


" denite.nvim | https://github.com/Shougo/denite.nvim
" XXX
"nnoremap <F3> :UniteSessionSave 
call denite#custom#source(
    \"buffer,file,file_mru,file_rec,grep",
    \"matchers", ['matcher_fuzzy'])
call denite#custom#source('z', 'sorters', ['sorter_rank'])
    "\'start_filter': v:true,
call denite#custom#option('_', {
    \'prompt': '',
    \'smartcase': v:true,
    \'short_source_names': v:true,
    \'empty': v:false,
    \'auto_resume': v:true,
    \'highlight_matched_char': 'Operator',
    \'highlight_mode_normal': 'CursorLine',
\})
let g:unite_source_file_mru_long_limit=3000
let g:unite_source_directory_mru_long_limit=3000
let g:unite_source_file_mru_limit=200
let g:unite_source_file_mru_filename_format=''

"" use 'the silver searcher' instead of 'grep' if available
if executable('ag')
    call denite#custom#var('grep', 'command', ['ag'])
    call denite#custom#var('grep', 'recursive_opts', [])
    call denite#custom#var('grep', 'pattern_opt', [])
    call denite#custom#var('grep', 'separator', ['--'])
    call denite#custom#var('grep', 'final_opts', [])
    call denite#custom#var('grep', 'default_opts', [
        \'--skip-vcs-ignores',
        \'--vimgrep',
        \'--hidden',
        \'--smart-case',
        \'--nocolor',
    \])
endif

" custom bindings
nnoremap <leader>* :DeniteCursorWord -buffer-name=grep grep:.<cr>
nnoremap <leader>i :Denite -buffer-name=file file<cr>
nnoremap <leader>r :Denite -buffer-name=file_rec file_rec<cr>
nnoremap <leader>m :Denite -buffer-name=file_mru file_mru<cr>
nnoremap <leader>p :Denite -buffer-name=files buffer file_mru file_rec<cr>
nnoremap <leader>h :Denite -buffer-name=buffer buffer<cr>
nnoremap <leader>y :Denite -buffer-name=yank neoyank<cr>
nnoremap <leader>/ :Denite -buffer-name=grep grep:.<cr>
" install exuberant-ctags
nnoremap <leader>o :Denite -buffer-name=outline -split=vertical -winwidth=60 -default-action=tabswitch outline<cr>
" XXX
"nnoremap <leader>s :Unite -no-split session<cr>

" TODO
"call denite#custom#alias('source', 'file_rec/git', 'file_rec')
"call denite#custom#var('file_rec/git', 'command',
      "\['git', 'ls-files', '-co', '--exclude-standard'])
"nnoremap <silent>,g :Denite -buffer-name=git-grep file_rec/git<cr>

" global mappings
call denite#custom#map('_', '<CR>', '<denite:do_action:tabopen>', 'noremap')
let _mode_mappings = [
    \['<C-n>', '<denite:move_to_next_line>', 'noremap'],
    \['<C-p>', '<denite:move_to_previous_line>', 'noremap'],
    \['<C-s>', '<denite:do_action:split>', 'noremap'],
    \['<C-v>', '<denite:do_action:vsplit>', 'noremap'],
    \['<C-r>', '<denite:do_action:switch>', 'noremap'],
\]
for each in _mode_mappings
    call denite#custom#map('insert', each[0], each[1], each[2])
    call denite#custom#map('normal', each[0], each[1], each[2])
endfor

" insert mode mappings
call denite#custom#map('insert', '<Esc>', '<denite:enter_mode:normal>', 'noremap')
" normal mode mappings


" vim-tmux-navigator | https://github.com/christoomey/vim-tmux-navigator
let g:tmux_navigator_disable_when_zoomed = 1


" FSwitch | https://github.com/vim-scripts/FSwitch
nnoremap <F7> :FSSplitLeft<cr>
nnoremap <F8> :FSHere<cr>


" Gundo
nnoremap <F5> :GundoToggle<CR>


" vim-pydocstring
nmap <silent> <C-_> <Plug>(pydocstring)


" vim-indent-guides
let g:indent_guides_start_level = 2
let g:indent_guides_guide_size = 1
let g:indent_guides_auto_colors = 1
let g:indent_guides_color_change_percent = 2

" just autoload on python files; toggle with <leader>ig
augroup python_files
    autocmd!
    autocmd BufRead,BufNew *.py execute "IndentGuidesEnable"
    autocmd FileType python map <buffer> <F10> :call Flake8()<CR>
augroup END


" ale | https://github.com/w0rp/ale
let g:ale_completion_enabled = 0
let g:ale_sign_column_always = 1
let g:ale_sign_error = '‣'
let g:ale_sign_warning = '×'
let g:ale_set_highlights = 0
nmap <silent> <S-F6> <Plug>(ale_previous_wrap)
nmap <silent> <F6> <Plug>(ale_next_wrap)


" vim-devicons | https://github.com/ryanoasis/vim-devicons
" uname -s
let g:WebDevIconsOS = 'Linux'


" base16-vim | https://github.com/chriskempson/base16-vim
set termguicolors
if filereadable(expand("~/.vimrc_background"))
    let base16colorspace=256
    source ~/.vimrc_background
    let g:airline_theme='base16'
endif

D nvim.old/init.vim => nvim.old/init.vim +0 -201
@@ 1,201 0,0 @@
" Help:
"
" ZS  = save current file
" ZA  = save all opened files
" QQ  = quit all opened files
" F2  = paste toggle
" F3  = save session (uses unite-session)
" F4  = clear hl search
" F5  = Gundo toggle
" F6  = Next syntastic error (S-F6 = previous error)
" F7  = FSSplit left
" F8  = FSHere
" F9  = convert current file to utf-8
" F10 = run flake8-vim
" C-Space = YouCompleteMe
" CapsLock = toggle insert/normal mode
" + = expand region
" _ = shrink region
" up,down,left,right = move through splits
" C-[j,k,h,l] = move through splits AND tmux
" f = leader
"   EasyMotion
"   <leader>w =  forward
"   <leader>b =  backward
"   <leader>j =  line down
"   <leader>k =  line up
"   Unite
"   <leader>i = open from current-dir
"   <leader>r = open recursive
"   <leader>m = open Most Recent Used
"   <leader>p = open from all (buffer, MRU, bookmark, recursive)
"   <leader>h = open buffer
"   <leader>y = history/yank
"   <leader>/ = grep
"   <leader>o = outline
"   <leader>*word = grep search for word (word under cursor)
"   <leader>,g = git grep
"       <C-s> (in buffer) = horizontally split file
"       <C-v> (in buffer) = vertically split file
"       <C-r> (in buffer) = replace window with file
"   <leader>s = session
"   nerdcommenter
"   <leader>c<space> = comment/uncomment
"   <leader>y<space> = copy and comment
"   vim-indent-guides
"   <leader>ig = toggle indent guides
" // = search visual selected text
" C-_ = insert pydocstring (normal mode)
" neosnippet
"   C-k = expand or jump


if has('nvim')
    let g:python3_host_prog='$HOME/.pyenv/versions/py3nvim/bin/python3'
endif


set nocompatible


" bind caps lock (F16) to toggle insert/command mode
nmap [29~ <F16>
imap [29~ <F16>
vmap [29~ <F16>
nnoremap <silent><F16> :startinsert <CR>
inoremap <silent><F16> <Esc>l
vnoremap <silent><F16> <Esc>


" adios C-c!
nnoremap <c-c> <NOP>
inoremap <c-c> <NOP>
vnoremap <c-c> <NOP>


" use F2 to paste toggle
set pastetoggle=<F2>
" clear hl search
nnoremap <F4> :nohl<CR>
" convert to utf-8
nnoremap <F9> :e ++enc=utf-8<CR>
" save
nnoremap ZS :w<CR>
" save all
nnoremap ZA :wa<CR>
" quit all
nnoremap QQ :qa<CR>

" map leader to ','
let mapleader = "f"
let g:mapleader = "f"
" fast movement through splits
map <up> <c-w>k
map <down> <c-w>j
map <left> <c-w>h
map <right> <c-w>l


" vundle | git://github.com/gmarik/vundle.git
filetype off
set rtp+=$HOME/.vim/bundle/Vundle.vim
filetype plugin indent on


" bundles
source $HOME/.vim/bundles.vim


" basic setup
syntax on
set mouse-=a
set ai "Auto indent
set si "Smart indet
set wrap "Wrap lines
set nu " line numbering
set cursorline
set backspace=indent,eol,start
set browsedir=current
set ruler
set wildignore=*.o,*.e,*~
set wildignorecase
set wildmenu
set showmatch
set ignorecase
set smartcase
set scrolloff=5
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4
set laststatus=2
set ffs=unix,dos,mac
set clipboard+=unnamedplus
set noshowmode


" use # as comment on python files
au BufRead,BufNewFile *.py set nosmartindent


" doxygen syntax
let g:load_doxygen_syntax=1


" indent
set list listchars=tab:\└─,trail:•,extends:»,precedes:«,nbsp:×


" completion menu conf
set conceallevel=2
set concealcursor=vin
set completeopt=menu,menuone,longest,preview
set pumheight=20 " Limit popup menu height

highlight clear SignColumn

" restore the cursor on the last line of the file
if !has('nvim')
    set viminfo='10,\"100,:20,%,n~/.viminfo'
endif

if has("autocmd")
  autocmd BufReadPost *
    \ if line("'\"") > 1 && line("'\"") <= line("$") |
endif
function! ResCur()
  if line("'\"") <= line("$")
    normal! g`"
    return 1
  endif
endfunction

augroup resCur
  autocmd!
  autocmd BufWinEnter * call ResCur()
augroup END

" backups
set backup

" seach
set incsearch
set hlsearch

" limit at column 80
set colorcolumn=80
set updatetime=750
set ssop-=options
set modeline

" damn delay
set ttimeoutlen=0
augroup FastEscape
    autocmd!
    au InsertEnter * set timeoutlen=10
    au InsertLeave * set timeoutlen=1000
augroup END


" search visual selected text
vnoremap // y/<C-R>"<CR>"