|
|
@ -67,92 +67,7 @@ let mapleader=" " " use space to start user-defined (in plugins) functions |
|
|
|
|
|
|
|
|
|
|
|
syntax sync minlines=1500 " increases the number of lines to find the proper syntax |
|
|
|
syntax sync minlines=1500 " increases the number of lines to find the proper syntax |
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
" Color scheme |
|
|
|
" Vundle stuff starts here |
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
filetype off |
|
|
|
|
|
|
|
set rtp+=~/.vim/bundle/Vundle.vim |
|
|
|
|
|
|
|
call vundle#begin() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" Bundles |
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" Vundle itself! |
|
|
|
|
|
|
|
Plugin 'VundleVim/Vundle.vim' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Magic "every updated syntax" plugin |
|
|
|
|
|
|
|
Plugin 'sheerun/vim-polyglot' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Lint files on save |
|
|
|
|
|
|
|
" Plugin 'scrooloose/syntastic' |
|
|
|
|
|
|
|
Plugin 'w0rp/ale' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" status line |
|
|
|
|
|
|
|
Plugin 'itchyny/lightline.vim' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" git support |
|
|
|
|
|
|
|
Plugin 'tpope/vim-fugitive' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" comment code with keys |
|
|
|
|
|
|
|
Plugin 'tpope/vim-commentary' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" align things |
|
|
|
|
|
|
|
Plugin 'godlygeek/tabular' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" close pairs |
|
|
|
|
|
|
|
" Plugin 'jiangmiao/auto-pairs' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" snippets |
|
|
|
|
|
|
|
Plugin 'SirVer/ultisnips' |
|
|
|
|
|
|
|
Plugin 'honza/vim-snippets' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" fuzzy file open |
|
|
|
|
|
|
|
" Plugin 'kien/ctrlp.vim' |
|
|
|
|
|
|
|
" Plugin 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } |
|
|
|
|
|
|
|
" Plugin 'junegunn/fzf.vim' |
|
|
|
|
|
|
|
Plugin 'Yggdroot/LeaderF' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" select multiple strings at the same time |
|
|
|
|
|
|
|
Plugin 'terryma/vim-multiple-cursors' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" colorschemes |
|
|
|
|
|
|
|
Plugin 'croaker/mustang-vim' |
|
|
|
|
|
|
|
Plugin 'crusoexia/vim-monokai' |
|
|
|
|
|
|
|
Plugin 'arcticicestudio/nord-vim' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Improved syntax files |
|
|
|
|
|
|
|
Plugin 'Glench/Vim-Jinja2-Syntax' |
|
|
|
|
|
|
|
Plugin 'fmoralesc/vim-pinpoint' |
|
|
|
|
|
|
|
Plugin 'kchmck/vim-coffee-script' |
|
|
|
|
|
|
|
Plugin 'mattn/emmet-vim' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Automatically detect and change the display of CSS colors |
|
|
|
|
|
|
|
Plugin 'gorodinskiy/vim-coloresque' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Project tree |
|
|
|
|
|
|
|
" Plugin 'scrooloose/nerdtree' |
|
|
|
|
|
|
|
" Plugin 'jistr/vim-nerdtree-tabs' |
|
|
|
|
|
|
|
Plugin 'tpope/vim-vinegar' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Editor configuration |
|
|
|
|
|
|
|
Plugin 'editorconfig/editorconfig-vim' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Selection |
|
|
|
|
|
|
|
Plugin 'terryma/vim-expand-region' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Unhighlight stuff when moving |
|
|
|
|
|
|
|
Plugin 'romainl/vim-cool' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Better "around stuff" |
|
|
|
|
|
|
|
Plugin 'tpope/vim-surround' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Tiling split manager |
|
|
|
|
|
|
|
Plugin 'zhamlin/tiler.vim' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
call vundle#end() " done with plugins |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" color mustang " looks awesome on gvim, looks alright in vim if you have 256 color support |
|
|
|
|
|
|
|
" color monokai |
|
|
|
|
|
|
|
color nord |
|
|
|
color nord |
|
|
|
|
|
|
|
|
|
|
|
" Enable file type detection. |
|
|
|
" Enable file type detection. |
|
|
@ -333,24 +248,6 @@ nnoremap <C-H> <C-W><C-H> |
|
|
|
" Use ';' as ':' |
|
|
|
" Use ';' as ':' |
|
|
|
nnoremap ; : |
|
|
|
nnoremap ; : |
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" Autopair settings |
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
let g:AutoPairsMapCR = 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" Airline configuration |
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
let g:airline_powerline_fonts = 1 |
|
|
|
|
|
|
|
let g:airline_theme = 'understated' |
|
|
|
|
|
|
|
let g:airline#extensions#branch#enabled = 1 |
|
|
|
|
|
|
|
let g:airline#extensions#syntastic#enabled = 1 |
|
|
|
|
|
|
|
let g:airline#extensions#tabline#enabled = 1 |
|
|
|
|
|
|
|
let g:airline#extensions#tabline#show_buffers = 0 |
|
|
|
|
|
|
|
let g:airline#extensions#tabline#show_tab_type = 0 |
|
|
|
|
|
|
|
let g:airline#extensions#tabline#tab_nr_type = 1 |
|
|
|
|
|
|
|
let g:airline#extensions#whitespace#enabled = 0 "disabled |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
" Lightline configuration |
|
|
|
" Lightline configuration |
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
" ---------------------------------------------------------------------- |
|
|
@ -358,133 +255,11 @@ let g:lightline = { |
|
|
|
\ 'colorscheme': 'wombat', |
|
|
|
\ 'colorscheme': 'wombat', |
|
|
|
\ } |
|
|
|
\ } |
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" CtrlP and extensions configuration |
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" let g:ctrlp_extensions = ['funky'] |
|
|
|
|
|
|
|
" nnoremap <C-O> :CtrlPFunky<CR> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" Indent guides |
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
let g:indent_guides_start_level=2 |
|
|
|
|
|
|
|
let g:indent_guides_guide_size=1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" Jedi-VIM |
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" this disables the documentation/preview split |
|
|
|
|
|
|
|
autocmd FileType python setlocal completeopt-=preview |
|
|
|
|
|
|
|
let g:jedi#show_call_signatures = "0" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" UltiSnips |
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
let g:UltiSnipsEditSplit = "horizontal" |
|
|
|
|
|
|
|
let g:UltiSnipsExpandTrigger = "<tab>" |
|
|
|
|
|
|
|
let g:UltiSnipsJumpForwardTrigger = "<tab>" |
|
|
|
|
|
|
|
let g:UltiSnipsJumpBackwardTrigger = "<s-tab>" |
|
|
|
|
|
|
|
let g:ultisnips_python_style = "sphinx" |
|
|
|
|
|
|
|
let g:UltiSnipsSnippetDirectories=[$HOME.'/.vim/UltiSnips'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" Nerdtree and Nerdtree tabs |
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
let NERDTreeChDirMode=2 |
|
|
|
|
|
|
|
let NERDTreeIgnore=['\.rbc$', '\~$', '\.pyc$', '\.db$', '\.sqlite$', '__pycache__'] |
|
|
|
|
|
|
|
let NERDTreeSortOrder=['^__\.py$', '\/$', '*', '\.swp$', '\.bak$', '\~$'] |
|
|
|
|
|
|
|
let NERDTreeShowBookmarks=1 |
|
|
|
|
|
|
|
let g:nerdtree_tabs_focus_on_files=1 |
|
|
|
|
|
|
|
let g:NERDTreeMapOpenInTabSilent = '<RightMouse>' |
|
|
|
|
|
|
|
let g:NERDTreeWinSize = 40 |
|
|
|
|
|
|
|
"noremap <F3> :NERDTreeToggle<CR> |
|
|
|
|
|
|
|
"nnoremap <silent> <F2> :NERDTreeFind<CR> |
|
|
|
|
|
|
|
" map <Leader>\ <plug>NERDTreeTabsToggle<CR> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" Syntastic |
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" * Global options |
|
|
|
|
|
|
|
let g:syntastic_aggregate_errors = 1 |
|
|
|
|
|
|
|
let g:syntastic_always_populate_loc_list = 1 |
|
|
|
|
|
|
|
let g:syntastic_auto_loc_list = 2 |
|
|
|
|
|
|
|
let g:syntastic_loc_list_height = 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" * Checker options |
|
|
|
|
|
|
|
" ** C: |
|
|
|
|
|
|
|
let g:syntastic_c_check_header = 1 |
|
|
|
|
|
|
|
let g:syntastic_c_cflags = '-Wall -Werror -W -Wno-unused-parameter -Werror=unused-variable' |
|
|
|
|
|
|
|
let g:syntastic_cpp_compiler_options = '-std=c++11' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
" ALE |
|
|
|
" ALE |
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
let g:ale_sign_column_always=1 |
|
|
|
let g:ale_sign_column_always=1 |
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" Clang formatter |
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
let g:clang_format#style_options = { |
|
|
|
|
|
|
|
\ "Language": "Cpp", |
|
|
|
|
|
|
|
\ "AccessModifierOffset": -1, |
|
|
|
|
|
|
|
\ "ConstructorInitializerIndentWidth": 4, |
|
|
|
|
|
|
|
\ "AlignEscapedNewlinesLeft": "true", |
|
|
|
|
|
|
|
\ "AlignTrailingComments": "true", |
|
|
|
|
|
|
|
\ "AllowAllParametersOfDeclarationOnNextLine": "true", |
|
|
|
|
|
|
|
\ "AllowShortBlocksOnASingleLine": "false", |
|
|
|
|
|
|
|
\ "AllowShortIfStatementsOnASingleLine": "false", |
|
|
|
|
|
|
|
\ "AllowShortLoopsOnASingleLine": "false", |
|
|
|
|
|
|
|
\ "AllowShortFunctionsOnASingleLine": "None", |
|
|
|
|
|
|
|
\ "AlwaysBreakTemplateDeclarations": "true", |
|
|
|
|
|
|
|
\ "AlwaysBreakBeforeMultilineStrings": "true", |
|
|
|
|
|
|
|
\ "BreakBeforeBinaryOperators": "true", |
|
|
|
|
|
|
|
\ "BreakBeforeTernaryOperators": "true", |
|
|
|
|
|
|
|
\ "BreakConstructorInitializersBeforeComma": "false", |
|
|
|
|
|
|
|
\ "BinPackParameters": "true", |
|
|
|
|
|
|
|
\ "ColumnLimit": 100, |
|
|
|
|
|
|
|
\ "ConstructorInitializerAllOnOneLineOrOnePerLine": "true", |
|
|
|
|
|
|
|
\ "DerivePointerAlignment": "true", |
|
|
|
|
|
|
|
\ "ExperimentalAutoDetectBinPacking": "false", |
|
|
|
|
|
|
|
\ "IndentCaseLabels": "true", |
|
|
|
|
|
|
|
\ "IndentWrappedFunctionNames": "true", |
|
|
|
|
|
|
|
\ "IndentFunctionDeclarationAfterType": "true", |
|
|
|
|
|
|
|
\ "MaxEmptyLinesToKeep": 1, |
|
|
|
|
|
|
|
\ "KeepEmptyLinesAtTheStartOfBlocks": "true", |
|
|
|
|
|
|
|
\ "NamespaceIndentation": "None", |
|
|
|
|
|
|
|
\ "ObjCSpaceAfterProperty": "false", |
|
|
|
|
|
|
|
\ "ObjCSpaceBeforeProtocolList": "false", |
|
|
|
|
|
|
|
\ "PenaltyBreakBeforeFirstCallParameter": 1, |
|
|
|
|
|
|
|
\ "PenaltyBreakComment": 300, |
|
|
|
|
|
|
|
\ "PenaltyBreakString": 1000, |
|
|
|
|
|
|
|
\ "PenaltyBreakFirstLessLess": 120, |
|
|
|
|
|
|
|
\ "PenaltyExcessCharacter": 1000000, |
|
|
|
|
|
|
|
\ "PenaltyReturnTypeOnItsOwnLine": 200, |
|
|
|
|
|
|
|
\ "PointerAlignment": "Left", |
|
|
|
|
|
|
|
\ "SpacesBeforeTrailingComments": 2, |
|
|
|
|
|
|
|
\ "Cpp11BracedListStyle": "false", |
|
|
|
|
|
|
|
\ "Standard": "Auto", |
|
|
|
|
|
|
|
\ "IndentWidth": 4, |
|
|
|
|
|
|
|
\ "TabWidth": 8, |
|
|
|
|
|
|
|
\ "UseTab": "Never", |
|
|
|
|
|
|
|
\ "BreakBeforeBraces": "Stroustrup", |
|
|
|
|
|
|
|
\ "SpacesInParentheses": "false", |
|
|
|
|
|
|
|
\ "SpacesInAngles": "false", |
|
|
|
|
|
|
|
\ "SpaceInEmptyParentheses": "false", |
|
|
|
|
|
|
|
\ "SpacesInCStyleCastParentheses": "false", |
|
|
|
|
|
|
|
\ "SpacesInContainerLiterals": "true", |
|
|
|
|
|
|
|
\ "SpaceBeforeAssignmentOperators": "true", |
|
|
|
|
|
|
|
\ "ContinuationIndentWidth": 4, |
|
|
|
|
|
|
|
\ "CommentPragmas": "^ IWYU pragma:", |
|
|
|
|
|
|
|
\ "SpaceBeforeParens": "ControlStatements", |
|
|
|
|
|
|
|
\ "DisableFormat": "false" } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" Vim Expand Region |
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
vmap v <Plug>(expand_region_expand) |
|
|
|
|
|
|
|
vmap <C-v> <Plug>(expand_region_shrink) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
" Special options for Python syntax |
|
|
|
" Special options for Python syntax |
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
" ---------------------------------------------------------------------- |
|
|
@ -499,11 +274,6 @@ nmap <Leader><space> :TilerReorder<CR> |
|
|
|
|
|
|
|
|
|
|
|
let g:tiler#master#size = 55 |
|
|
|
let g:tiler#master#size = 55 |
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
" fzf keybinds |
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
|
|
|
|
nmap <C-p> :FZF<CR> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
" Lastly, load configurations available only to this computer |
|
|
|
" Lastly, load configurations available only to this computer |
|
|
|
" ---------------------------------------------------------------------- |
|
|
|
" ---------------------------------------------------------------------- |