From 8b763e56d375cc2991faedafe5e5fad7737647c4 Mon Sep 17 00:00:00 2001 From: Chrisatmachine Date: Sun, 11 Nov 2018 14:27:03 -0500 Subject: housekeeping --- init.vim | 21 +++++++++++++++------ tags | 11 ++++++----- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/init.vim b/init.vim index be49179b..d08e08ce 100644 --- a/init.vim +++ b/init.vim @@ -8,6 +8,9 @@ set splitbelow set splitright set t_Co=256 set autochdir +" saving +nnoremap :w +nnoremap :wq! " escape can blow me nnoremap " Set Proper Tabs @@ -30,6 +33,9 @@ nnoremap :BuffergatorToggle nnoremap :Files nnoremap :10split term://bash +autocmd BufWinEnter,WinEnter term://* startinsert +autocmd BufLeave term://* stopinsert + " Be iMproved if &compatible set nocompatible @@ -296,7 +302,8 @@ let g:multi_cursor_quit_key = '' let g:ale_linters = { \ 'cpp' : ['gcc'], \ 'c' : ['gcc'], - \ 'vim' : ['vint'] + \ 'vim' : ['vint'], + \ 'python': ['flake8', 'pyre', 'vulture', 'prospector', 'pyflakes', 'mypy', 'pyls'] \} let g:ale_cpp_gcc_options='-Wall -Wextra' let g:ale_c_gcc_options='-Wall -Wextra' @@ -304,19 +311,21 @@ let g:ale_vim_vint_executable = 'vint' let g:ale_vim_vint_show_style_issues = 1 map a :ALEToggle -" Python +" Python TODO change this to point to virtual env with nevim support if !empty(glob("/usr/lib/rpm/redhat")) " For RHEL - let g:chromatica#libclang_path='/usr/lib64/llvm' - let g:python3_host_prog = '/bin/python3.6' + "let g:chromatica#libclang_path='/usr/lib64/llvm' + let g:python3_host_prog = 'home/$USER/.conda/envs/py37/bin/python3.6' + "let g:chromatica#enable_at_startup=1 + "let g:chromatica#responsive_mode=1 else " For Debian based let g:chromatica#libclang_path='/usr/lib/llvm-6.0/lib' let g:python3_host_prog = '/usr/bin/python3.6' + let g:chromatica#enable_at_startup=1 + let g:chromatica#responsive_mode=1 endif " Chromatica -let g:chromatica#enable_at_startup=1 -let g:chromatica#responsive_mode=1 " FZF if !empty((glob("~/.fzf"))) set rtp+=~/.fzf diff --git a/tags b/tags index 2da7a002..8a77216b 100644 --- a/tags +++ b/tags @@ -4,7 +4,8 @@ !_TAG_PROGRAM_AUTHOR Universal Ctags Team // !_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/ !_TAG_PROGRAM_URL https://ctags.io/ /official site/ -!_TAG_PROGRAM_VERSION 0.0.0 /15560853/ +!_TAG_PROGRAM_VERSION 0.0.0 /f76ed534/ + init.vim /^nnoremap :wq!$/;" m init.vim /^nnoremap $/;" m init.vim /^nnoremap h$/;" m init.vim /^nnoremap j$/;" m @@ -13,6 +14,7 @@ init.vim /^smap (neosnippet_expand_or_jump)$/;" m init.vim /^xmap (neosnippet_expand_target)$/;" m init.vim /^nnoremap l$/;" m + init.vim /^nnoremap :w$/;" m init.vim /^ nnoremap :resize +2$/;" m init.vim /^nnoremap :split$/;" m init.vim /^nnoremap :only$/;" m @@ -77,10 +79,9 @@ g:ale_cpp_gcc_options init.vim /^let g:ale_cpp_gcc_options='-Wall -Wextra'$/;" v g:ale_linters init.vim /^let g:ale_linters = {$/;" v g:ale_vim_vint_executable init.vim /^let g:ale_vim_vint_executable = 'vint'$/;" v g:ale_vim_vint_show_style_issues init.vim /^let g:ale_vim_vint_show_style_issues = 1$/;" v -g:chromatica#enable_at_startup init.vim /^let g:chromatica#enable_at_startup=1$/;" v -g:chromatica#libclang_path init.vim /^ let g:chromatica#libclang_path='\/usr\/lib64\/llvm'$/;" v +g:chromatica#enable_at_startup init.vim /^ let g:chromatica#enable_at_startup=1$/;" v g:chromatica#libclang_path init.vim /^ let g:chromatica#libclang_path='\/usr\/lib\/llvm-6.0\/lib'$/;" v -g:chromatica#responsive_mode init.vim /^let g:chromatica#responsive_mode=1$/;" v +g:chromatica#responsive_mode init.vim /^ let g:chromatica#responsive_mode=1$/;" v g:ctrlp_cmd init.vim /^let g:ctrlp_cmd = 'CtrlP'$/;" v g:ctrlp_map init.vim /^let g:ctrlp_map = ''$/;" v g:deoplete#enable_at_startup init.vim /^let g:deoplete#enable_at_startup = 1$/;" v @@ -96,8 +97,8 @@ g:multi_cursor_start_key init.vim /^let g:multi_cursor_start_key = 'g< g:multi_cursor_start_word_key init.vim /^let g:multi_cursor_start_word_key = ''$/;" v g:multi_cursor_use_default_mapping init.vim /^let g:multi_cursor_use_default_mapping=0$/;" v g:neosnippet#enable_completed_snippet init.vim /^let g:neosnippet#enable_completed_snippet = 1$/;" v -g:python3_host_prog init.vim /^ let g:python3_host_prog = '\/bin\/python3.6'$/;" v g:python3_host_prog init.vim /^ let g:python3_host_prog = '\/usr\/bin\/python3.6'$/;" v +g:python3_host_prog init.vim /^ let g:python3_host_prog = 'home\/$USER\/.conda\/envs\/py37\/bin\/python3.6'$/;" v g:space_vim_dark_background init.vim /^ let g:space_vim_dark_background = 233$/;" v g:startify_custom_header init.vim /^let g:startify_custom_header = [ /;" v mapleader init.vim /^let mapleader = ","$/;" v -- cgit v1.2.3