From f63f95f7c7ce0444b1b442951ad96cf908ac5058 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 27 Apr 2020 09:43:04 +0200 Subject: Update configuration --- vim/.config/nvim/view | 1 - vim/.vimrc | 35 +++++++++++++++++++++++++---------- 2 files changed, 25 insertions(+), 11 deletions(-) delete mode 120000 vim/.config/nvim/view (limited to 'vim') diff --git a/vim/.config/nvim/view b/vim/.config/nvim/view deleted file mode 120000 index fcd4091..0000000 --- a/vim/.config/nvim/view +++ /dev/null @@ -1 +0,0 @@ -../../../../.vim/view \ No newline at end of file diff --git a/vim/.vimrc b/vim/.vimrc index 1a07c9c..44bf4db 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1,5 +1,4 @@ "" Download vim-plug if necessary {{{1 - if empty(glob('~/.vim/autoload/plug.vim')) silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim @@ -33,9 +32,10 @@ Plug 'kshenoy/vim-signature' Plug 'lervag/vimtex' Plug 'machakann/vim-highlightedyank' Plug 'majutsushi/tagbar' +Plug 'mg979/vim-visual-multi' Plug 'neomake/neomake' Plug 'sjl/Gundo.vim', { 'on' : 'GundoToggle' } -Plug 'terryma/vim-multiple-cursors' +" Plug 'terryma/vim-multiple-cursors' Plug 'tommcdo/vim-exchange' Plug 'tommcdo/vim-ninja-feet' Plug 'tpope/vim-abolish' @@ -76,6 +76,7 @@ Plug 'altercation/vim-colors-solarized' Plug 'KKPMW/sacredforest-vim' Plug 'junegunn/seoul256.vim' Plug 'romainl/Apprentice' +Plug 'arcticicestudio/nord-vim' call plug#end() "" Plugin configuration {{{1 @@ -87,9 +88,6 @@ nnoremap cpt :TagbarToggle nnoremap cpu :GundoToggle nnoremap cp Remembrall('cp') -" Easy motion -map gs (easymotion-prefix) - " Fuzzy finder nnoremap a :Ag nnoremap b :Buffers @@ -112,6 +110,11 @@ nnoremap gc :Gcommit nnoremap gr :Gread nnoremap gd :Gdiff +" Multiple cursors +let g:VM_maps = {} +let g:VM_maps["Select Cursor Down"] = "" +let g:VM_maps["Select Cursor Up"] = "" + " Heytmux function! Call_heytmux(vm) call feedkeys(":'[,']Heytmux! ") @@ -162,7 +165,9 @@ let g:neomake_gcc_args=[ let g:neomake_python_enabled_makers = ['python', 'pylint'] " FZF.vim +let $FZF_DEFAULT_OPTS='--layout=reverse' let g:fzf_buffers_jump = 1 +let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } } " Gundo let g:gundo_prefer_python3 = 1 @@ -226,6 +231,8 @@ set hidden set ignorecase set lazyredraw set laststatus=2 +set listchars+=eol:$ +set wildcharm= set mouse=a " set noequalalways set nojoinspaces @@ -255,6 +262,8 @@ endif nnoremap 1 m`yypVr=`` nnoremap 2 m`yypVr-`` +nnoremap m :.m + nnoremap n nzz nnoremap N Nzz @@ -324,7 +333,8 @@ nmap co yo "" Autocommands {{{1 augroup vimrc autocmd! - autocmd ColorScheme * highlight String ctermfg=192 guifg=#d7ff87 + " autocmd ColorScheme * highlight String ctermfg=192 guifg=#d7ff87 + " autocmd ColorScheme * highlight Folded ctermbg=23 ctermfg=185 guibg=#005f5f guifg=#d7d75f autocmd BufWritePost *vimrc,*exrc :call feedkeys(":source %\") autocmd BufNewFile,Bufread /tmp/mutt-* setlocal tw=72 autocmd BufWritePre * @@ -469,10 +479,6 @@ if has("nvim") endif "" Experimental {{{1 -set wildcharm= -let $FZF_DEFAULT_OPTS='--layout=reverse' -let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } } - autocmd Filetype python setl omnifunc=v:lua.vim.lsp.omnifunc nnoremap Remembrall('') nnoremap h lua vim.lsp.buf.hover() @@ -481,3 +487,12 @@ nnoremap d lua vim.lsp.buf.definition() nnoremap i lua vim.lsp.buf.implementation() nnoremap s lua vim.lsp.buf.signature_help() nnoremap t lua vim.lsp.buf.type_definition() + +" highlight LineNr ctermbg=159 ctermfg=27 guibg=#afffff guifg=#005fff +" highlight StatusLineNC ctermbg=22 ctermfg=121 guibg=#005f00 guifg=#87ffaf +" highlight Comment ctermbg=159 ctermfg=195 guibg=#afffff guifg=#d7ffff +" highlight Normal ctermbg=195 ctermfg=237 guibg=#d7ffff guifg=#3a3a3a +" highlight Special ctermfg=96 guifg=#875f87 +" highlight StatusLine ctermbg=131 ctermfg=223 guibg=#af5f5f guifg=#ffd7af +" highlight Statement ctermfg=65 guifg=#5f875f +" highlight Type ctermfg=254 guifg=#e4e4e4 -- cgit v1.2.3