Created
April 7, 2016 17:02
-
-
Save anonymous/0e1187a9ea96d83ba0f9b9f35de138ed to your computer and use it in GitHub Desktop.
neovim config + YCM working arch install guide
This file contains hidden or 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
| if &compatible | |
| set nocompatible " Be iMproved | |
| endif | |
| set runtimepath^=~/.config/nvim/repos/github.com/Shougo/dein.vim | |
| call dein#begin(expand('~/.config/nvim')) | |
| call dein#add('Shougo/dein.vim') | |
| call dein#add('https://github.com/Valloric/YouCompleteMe') | |
| "cd .config/nvim/repos/github.com/Valloric/YouCompleteMe/third_party/ycmd | |
| "git reset --hard HEAD | |
| "git clean -qffdx | |
| "python2.7 ./install --clang-completer | |
| "call dein#recache_runtimepatch() | |
| "call dein#update() | |
| "[optional link to system libclang] sudo ln -s /usr/lib/libclang.so libclang.so.3.8 [in ycmd] | |
| "[fix libtinfo symlinks on arch linux] pacaur -S "libtinfo" | |
| call dein#add('https://github.com/Shougo/neocomplete.vim') | |
| call dein#add('https://github.com/flazz/vim-colorschemes') | |
| call dein#add('https://github.com/scrooloose/nerdtree') | |
| call dein#add('https://github.com/rdnetto/YCM-Generator') | |
| call dein#add('https://github.com/Shougo/vimproc.vim') | |
| call dein#add('https://github.com/nhooyr/neoman.vim') | |
| call dein#end() | |
| filetype plugin indent on | |
| let g:ycm_min_num_of_chars_for_completion = 1 | |
| let g:ycm_auto_trigger = 1 | |
| let g:ycm_show_diagnostics_ui = 1 | |
| let g:ycm_error_symbol = '>' | |
| let g:ycm_warning_symbol = '>' | |
| let g:ycm_confirm_extra_conf = 0 | |
| let g:dein#install_process_timeout = 5000 | |
| let g:syntastic_always_populate_loc_list = 1 | |
| "let g:auto_save = 1 | |
| "let g:auto_save_in_insert_mode = 0 | |
| "Nvim true color enable | |
| let $NVIM_TUI_ENABLE_TRUE_COLOR=1 | |
| "nvim-qt font size | |
| command -nargs=? Guifont call rpcnotify(0, 'Gui', 'SetFont', "<args>") | let g:Guifont="<args>" | |
| Guifont Liberation Mono:h13 | |
| "whitechar color | |
| highlight NonText ctermfg=8 guifg=#202020 | |
| colorscheme Tomorrow-Night-Bright | |
| "nvim clipboard | |
| set clipboard+=unnamedplus | |
| set autoread | |
| set undofile | |
| set undodir=$HOME/.vim | |
| set undolevels=100000 | |
| set undoreload=100000 | |
| set wrap linebreak nolist | |
| set number | |
| set autoindent | |
| set incsearch | |
| set hlsearch | |
| set copyindent | |
| set nocursorline | |
| set ignorecase | |
| set incsearch | |
| set nobackup | |
| set noexpandtab | |
| set noswapfile | |
| set mouse=a | |
| set preserveindent | |
| set shiftwidth=4 | |
| set softtabstop=0 | |
| set tabstop=4 | |
| set statusline=%t[%{strlen(&fenc)?&fenc:'none'},%{&ff}]%h%m%r%y%=%c,%l/%L\ %P | |
| set list | |
| set listchars=eol:¬,tab:>\ | |
| syntax on | |
| map <C-t> :tabe<CR> | |
| map <C-q> :q!<CR> | |
| map X :wqa | |
| tnoremap <Esc><Esc> :<C-\><C-n> | |
| vnoremap > >gv | |
| vnoremap < <gv | |
| function! Title(pad) | |
| python3 << EOF | |
| import vim | |
| pad = vim.eval('a:pad') | |
| for i,tmp in enumerate(vim.current.buffer): | |
| vim.current.buffer[i] = ('{:0>'+str(pad)+'d}').format(i+1) + tmp.title() | |
| EOF | |
| endfunction | |
| function! Low_letters() | |
| python3 << EOF | |
| import vim | |
| for i,n in enumerate(vim.current.range): | |
| vim.current.range[i] = n.lower() | |
| EOF | |
| endfunction | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment