summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChrisatmachine <[email protected]>2018-11-11 14:27:03 -0500
committerChrisatmachine <[email protected]>2018-11-11 14:27:03 -0500
commit8b763e56d375cc2991faedafe5e5fad7737647c4 (patch)
tree816445c0ec886a976dbd384737910306b9342589
parent2d48d2025b5f4f3f3713d56635a145855abc770e (diff)
housekeeping
-rw-r--r--init.vim21
-rw-r--r--tags11
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 <C-s> :w<CR>
+nnoremap <C-Q> :wq!<CR>
" escape can blow me
nnoremap <C-c> <Esc>
" Set Proper Tabs
@@ -30,6 +33,9 @@ nnoremap <F2> :BuffergatorToggle<CR>
nnoremap <F3> :Files<CR>
nnoremap <F1> :10split term://bash<CR>
+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 = '<Esc>'
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 <leader>a :ALEToggle<CR>
-" 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/
+<C-Q> init.vim /^nnoremap <C-Q> :wq!<CR>$/;" m
<C-c> init.vim /^nnoremap <C-c> <Esc>$/;" m
<C-h> init.vim /^nnoremap <C-h> <C-w>h$/;" m
<C-j> init.vim /^nnoremap <C-j> <C-w>j$/;" m
@@ -13,6 +14,7 @@
<C-k> init.vim /^smap <C-k> <Plug>(neosnippet_expand_or_jump)$/;" m
<C-k> init.vim /^xmap <C-k> <Plug>(neosnippet_expand_target)$/;" m
<C-l> init.vim /^nnoremap <C-l> <C-w>l$/;" m
+<C-s> init.vim /^nnoremap <C-s> :w<CR>$/;" m
<Down> init.vim /^ nnoremap <Down> :resize +2<CR>$/;" m
<F10> init.vim /^nnoremap <F10> :split<CR>$/;" m
<F12> init.vim /^nnoremap <F12> :only<CR>$/;" 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 = '<c-p>'$/;" 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 = '<C-n>'$/;" 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