diff options
| -rw-r--r-- | init.vim | 49 | ||||
| -rw-r--r-- | tags | 11 | 
2 files changed, 51 insertions, 9 deletions
| @@ -1,24 +1,53 @@ + +  """""""""" HOUSEKEEPING """"""""""  syntax on  set nowrap  set encoding=utf8 +set mouse=a  " escape can blow me  nnoremap <C-c> <Esc>  " Gets rid of highlights after search -nnoremap <silent> <C-L> :nohlsearch<CR><C-L> +nnoremap <silent> <F7> :nohlsearch<CR><F7>  " Line numbers  set number  " Toggle line numbers  nnoremap <F6> :set nonumber!<CR> +nnoremap <F9> :vsplit<CR> +nnoremap <F10> :split<CR> +nnoremap <F12> :only<CR> +"if (has("termguicolors")) +"  set termguicolors +"endif  if &compatible    set nocompatible               " Be iMproved  endif +  " Remap window switch  nnoremap <C-h> <C-w>h  nnoremap <C-j> <C-w>j  nnoremap <C-k> <C-w>k  nnoremap <C-l> <C-w>l +" Remap terminal switch +tnoremap <C-[> <C-\><C-n> +tnoremap <C-c><Esc> <Esc> +tnoremap <C-h> <C-\><C-n><C-w>h +tnoremap <C-j> <C-\><C-n><C-w>j +tnoremap <C-k> <C-\><C-n><C-w>k +tnoremap <C-l> <C-\><C-n><C-w>l +" <TAB>: completion. +inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" +" Enable Elite mode, No ARRRROWWS!!!! +let g:elite_mode=1 +" Disable arrow movement, resize splits instead. +if get(g:, 'elite_mode') +	nnoremap <Up>    :resize -2<CR> +	nnoremap <Down>  :resize +2<CR> +	nnoremap <Left>  :vertical resize -2<CR> +	nnoremap <Right> :vertical resize +2<CR> +endif +  """""""""" END HOUSEKEEPING """""""""" @@ -44,7 +73,7 @@ if dein#load_state('~/chris/.cache/dein')    call dein#add('ludovicchabant/vim-gutentags')    " Tagbar    call dein#add('majutsushi/tagbar') -  " Add or remove your plugins here: +  " Add or remove your plugins here: TODO    call dein#add('Shougo/neosnippet.vim')    call dein#add('Shougo/neosnippet-snippets')    " Themes @@ -53,6 +82,8 @@ if dein#load_state('~/chris/.cache/dein')    call dein#add('jiangmiao/auto-pairs')    " NERDTree    call dein#add('scrooloose/nerdtree') +  " BufOnly use :BufOnly to unload all or pass it a single buffer +  call dein#add('vim-scripts/BufOnly.vim')    " For autocomplete    call dein#add('Shougo/deoplete.nvim')      " For vim 8+ @@ -92,20 +123,23 @@ colorscheme space-vim-dark  "  hi SignColumn ctermbg=NONE guibg=NONE  "endif -"   Range:   233 (darkest) ~ 238 (lightest) -"   Default: 235 +" Range:   233 (darkest) ~ 238 (lightest) +" Default: 235  let g:space_vim_dark_background = 233  color space-vim-dark  hi Comment guifg=#5C6370 ctermfg=59  "hi Comment cterm=italic  "set background=dark  "set termguicolors +" Enable highlighting of the current line +set cursorline  """""""""" END THEME """""""""" +"""""""""" BEGIN CONFIGS """""""""" +  " Deoplete  let g:deoplete#enable_at_startup = 1 -  " Startify  let g:startify_custom_header = [                                                                                                                                                                                                   \ '                                ',                                                                                                                                             @@ -119,10 +153,9 @@ let g:startify_custom_header = [  " Tagbar  nmap <F8> :TagbarToggle<CR> -  " NERDTree  nmap <F5> :NERDTreeToggle<CR> +"""""""""" END CONFIGS """""""""" - - +"TODO figure out cscope @@ -5,16 +5,25 @@  !_TAG_PROGRAM_NAME	Universal Ctags	/Derived from Exuberant Ctags/  !_TAG_PROGRAM_URL	https://ctags.io/	/official site/  !_TAG_PROGRAM_VERSION	0.0.0	/f76ed534/ -<C-L>	init.vim	/^nnoremap <silent> <C-L> :nohlsearch<CR><C-L>$/;"	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  <C-k>	init.vim	/^nnoremap <C-k> <C-w>k$/;"	m  <C-l>	init.vim	/^nnoremap <C-l> <C-w>l$/;"	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  <F5>	init.vim	/^nmap <F5> :NERDTreeToggle<CR>$/;"	m  <F6>	init.vim	/^nnoremap <F6> :set nonumber!<CR>$/;"	m +<F7>	init.vim	/^nnoremap <silent> <F7> :nohlsearch<CR><F7>$/;"	m  <F8>	init.vim	/^nmap <F8> :TagbarToggle<CR>$/;"	m +<F9>	init.vim	/^nnoremap <F9> :vsplit<CR>$/;"	m +<Left>	init.vim	/^	nnoremap <Left>  :vertical resize -2<CR>$/;"	m +<Right>	init.vim	/^	nnoremap <Right> :vertical resize +2<CR>$/;"	m +<TAB>	init.vim	/^inoremap <expr><TAB> pumvisible() ? "\\<C-n>" : "\\<TAB>"$/;"	m +<Up>	init.vim	/^	nnoremap <Up>    :resize -2<CR>$/;"	m  g:deoplete#enable_at_startup	init.vim	/^let g:deoplete#enable_at_startup = 1$/;"	v +g:elite_mode	init.vim	/^let g:elite_mode=1$/;"	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  nvim	README.md	/^# nvim$/;"	c | 
