Last active
December 18, 2023 15:01
-
-
Save iglesias/37bfaeda41b49b76a9004384300aa874 to your computer and use it in GitHub Desktop.
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
:YcmCompleter FixIt |
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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'ctrlpvim/ctrlp.vim' | |
"Plugin 'Valloric/YouCompleteMe' -> AUR package vim-youcompleteme-git (extract, makepkg -si) | |
Plugin 'embear/vim-localvimrc' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'majutsushi/tagbar' | |
Plugin 'ihacklog/HiCursorWords' | |
" Plugin 'pelodelfuego/vim-swoop' | |
" compatibility error with ihacklog/HiCursorWords: https://github.com/pelodelfuego/vim-swoop/issues/37 | |
Plugin 'octol/vim-cpp-enhanced-highlight' | |
Plugin 'tpope/vim-surround' | |
Plugin 'iberianpig/tig-explorer.vim' | |
Plugin 'yuttie/hydrangea-vim' " recommended to patch the background color for the numbers, at least for C++ | |
Plugin 'lazywei/vim-matlab' | |
Plugin 'Yggdroot/indentLine' | |
Plugin 'scrooloose/nerdcommenter' " not tried yet via this Vundle installation | |
" Plugin vim-scripts/vimCU | |
" Remember the magic: PluginInstall | |
call vundle#end() | |
filetype plugin indent on | |
syntax on | |
set incsearch | |
set ignorecase | |
set smartcase | |
set hlsearch | |
set mouse=a | |
set number | |
set relativenumber | |
set matchpairs+=<:> | |
let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py' | |
set sw=2 ts=2 et | |
nnoremap <Leader>y :let g:ycm_auto_trigger=0<CR> | |
nnoremap <Leader>Y :let g:ycm_auto_trigger=1<CR> | |
set rtp+=$HOME/.local/lib/python2.7/site-packages/powerline/bindings/vim/ | |
" Always show statusline | |
set laststatus=2 | |
" Use 256 colours (if the terminal supports 256 colours) | |
set t_Co=256 | |
nmap <F8> :TagbarToggle<CR> | |
colorscheme desert | |
fun! TrimTrailWhitespaces() | |
let l:save = winsaveview() | |
%s/\s\+$//e | |
call winrestview(l:save) | |
endfun | |
command! TrimTrailWhitespaces call TrimTrailWhitespaces() | |
" Wrap long lines when using vimdiff: https://stackoverflow.com/a/17329864/2855717. | |
" Not tested yet in actual vimrc but only once running vimdiff explicitly. | |
" autocmd FilterWritePre * if &diff | setlocal wrap< | endif | |
" Solve unreadable diffs (seen with vimdiff): | |
highlight DiffAdd cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red | |
highlight DiffDelete cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red | |
highlight DiffChange cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red | |
highlight DiffText cterm=bold ctermfg=10 ctermbg=88 gui=none guifg=bg guibg=Red |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment