1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
| let mapleader=" "
syntax on set encoding=utf-8 set number set norelativenumber set wrap set showcmd set wildmenu
set hlsearch exec "nohlsearch" set incsearch set ignorecase set smartcase noremap <LEADER><CR> :nohlsearch<CR>
set smartindent set tabstop=4 set autoindent set expandtab
map S :w<CR> map Q :q<CR> map R :source ~/.vimrc<CR>
noremap J 5j noremap K 5k
map sl :set splitright<CR>:vsplit<CR> map sh :set nosplitright<CR>:vsplit<CR> map sk :set splitbelow<CR>:split<CR> map sj :set nosplitbelow<CR>:split<CR>
map <LEADER>l <C-w>l map <LEADER>h <C-w>h map <LEADER>k <C-w>k map <LEADER>j <C-w>j
map <up> :res +5<CR> map <down> :res -5<CR> map <left> :vertical resize-5<CR> map <right> :vertical resize+5<CR>
set nocompatible filetype off
set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin()
Plugin 'VundleVim/Vundle.vim' Plugin 'preservim/nerdtree' Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' Plugin 'connorholyday/vim-snazzy' Plugin 'dense-analysis/ale' Plugin 'Xuyuanp/nerdtree-git-plugin' Plugin 'nathanaelkane/vim-indent-guides' Plugin 'ycm-core/YouCompleteMe'
call vundle#end() filetype plugin indent on
let NERDChristmasTree=0 let NERDTreeChDirMode=2 let NERDTreeIgnore=['\~$'] let NERDTreeShowBookmarks=1 let NERDTreeAutoCenter=1 let NERDTreeShowLineNumbers=1 let NERDTreeShowHidden=1 let NERDTreeWinSize=25 let g:nerdtree_tabs_open_on_console_startup=1 let NERDTreeIgnore=['\.pyc','\~$','\.swp'] let g:NERDTreeGitStatusIndicatorMapCustom = { \ "Modified" : "✹", \ "Staged" : "✚", \ "Untracked" : "✭", \ "Renamed" : "➜", \ "Unmerged" : "═", \ "Deleted" : "✖", \ "Dirty" : "✗", \ "Clean" : "✔︎", \ 'Ignored' : '☒', \ "Unknown" : "?" \ }
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif map tt :NERDTreeMirror<CR> map tt :NERDTreeToggle<CR>
set laststatus=2 let g:airline_theme = 'simple' let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#enabled = 1
let b:ale_linters = ['pyline'] let b:ale_fixers = ['autopep8', 'yapf']
let g:indent_guides_guide_size = 1 let g:indent_guides_start_level = 2 let g:indent_guides_enable_on_vim_startup = 1 let g:indent_guides_color_change_percent = 1 silent! unmap <LEADER>ig autocmd WinEnter * silent! unmap <LEADER>ig
nnoremap gd :YcmCompleter GoToDefinitionElseDeclaration<CR> nnoremap g/ :YcmCompleter GetDoc<CR> nnoremap gt :YcmCompleter GetType<CR> nnoremap gr :YcmCompleter GoToReferences<CR> let g:ycm_autoclose_preview_window_after_completion=0 let g:ycm_autoclose_preview_window_after_insertion=1 let g:ycm_use_clangd = 0 let g:ycm_python_interpreter_path = "/usr/bin/python3" let g:ycm_python_binary_path = "/usr/bin/python3"
colorscheme molokai
|