systemSetup

system setup, configuration and dotfiles
git clone https://noulin.net/git/systemSetup.git
Log | Files | Refs | README | LICENSE

commit d841cbc719b89128b42d30382e0060209f22f5f1
parent a7aa81620e6ad1a8c03ebf859760bcd57501cc32
Author: Remy Noulin <loader2x@gmail.com>
Date:   Mon, 16 Jul 2018 11:41:07 +0200

termux: remove xolox/vim-easytags, ctags not available

termux/.vimrc        | 209 +++++++++++++++++++++++++++++++++++++++++++++++++++
termux/updateHome.sh |   2 +-
2 files changed, 210 insertions(+), 1 deletion(-)

Diffstat:
Atermux/.vimrc | 209+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mtermux/updateHome.sh | 2+-
2 files changed, 210 insertions(+), 1 deletion(-)

diff --git a/termux/.vimrc b/termux/.vimrc @@ -0,0 +1,209 @@ +" in /etc/vim/vimrc.local - set nocompatible " be iMproved, required +filetype off " required +" set the runtime path to include Vundle and initialize +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() +" alternatively, pass a path where Vundle should install plugins +"call vundle#begin('~/some/path/here') + +" let Vundle manage Vundle, required +Plugin 'gmarik/Vundle.vim' + +" Add plugins below + +" vim-easymotion +Plugin 'Lokaltog/vim-easymotion' + +" vim-fugitive +Plugin 'tpope/vim-fugitive' + +" nerdtree +Plugin 'scrooloose/nerdtree' + +" tcomment_vim +Plugin 'tomtom/tcomment_vim' + +" vim-surround +Plugin 'tpope/vim-surround' + +" vim-jade +Plugin 'digitaltoad/vim-jade' + +" vim-coffee-script +Plugin 'kchmck/vim-coffee-script' + +" vim-javascript +Plugin 'pangloss/vim-javascript' + +" SnipMate +Plugin 'MarcWeber/vim-addon-mw-utils' +Plugin 'tomtom/tlib_vim' +Plugin 'garbas/vim-snipmate' + +" Optional +Plugin 'honza/vim-snippets' + +" Tabular +Plugin 'godlygeek/tabular' + +" Conque-GDB +Plugin 'vim-scripts/Conque-GDB' + +" minibufferexplorer +" NO - problem with syntax highlighting - Plugin 'weynhamz/vim-plugin-minibufexpl' +" help: +" https://github.com/weynhamz/vim-plugin-minibufexpl/blob/master/doc/minibufexpl.txt + +" old gcc c11 compile error - Plugin 'Valloric/YouCompleteMe' + +Plugin 'jreybert/vimagit' + +" Plugin 'vim-ctrlspace/vim-ctrlspace' + +Plugin 'vim-scripts/a.vim' + +Plugin 'Raimondi/delimitMate' + +Plugin 'vim-syntastic/syntastic' + +Plugin 'tomtom/quickfixsigns_vim' + +Plugin 'airblade/vim-gitgutter' + +" easytags is slow on large projects +" vim becomes unresponsive (even with async) +Plugin 'xolox/vim-misc' +" not available in termux - Plugin 'xolox/vim-easytags' + +Plugin 'majutsushi/tagbar' + +Plugin 'mbbill/undotree' + +Plugin 'vim-scripts/highlight.vim' + +" Plugin 'junegunn/goyo.vim' + +" Plugin 'junegunn/limelight.vim' + +Plugin 'junegunn/vim-easy-align' + +Plugin 'junegunn/fzf' +Plugin 'junegunn/fzf.vim' + +Plugin 'posva/vim-vue' + +let g:ConqueTerm_Color = 2 " 1: strip color after 200 lines, 2: always with color +let g:ConqueTerm_CloseOnEnd = 1 " close conque when program ends running +let g:ConqueTerm_StartMessages = 0 " display warning messages if conqueTerm is configured incorrectly + +" All of your Plugins must be added before the following line +call vundle#end() " required +filetype plugin indent on " required +" To ignore plugin indent changes, instead use: +"filetype plugin on +" +" Brief help +" :PluginList - lists configured plugins +" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate +" :PluginSearch foo - searches for foo; append `!` to refresh local cache +" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal +" +" see :h vundle for more details or wiki for FAQ +" Put your non-Plugin stuff after this line + +" Pathogen +"execute pathogen#infect() + + +map <C-n> :NERDTreeToggle<CR> + + + +let g:EasyMotion_do_mapping = 0 " Disable default mappings +"+2 char +" Bi-directional find motion +" Jump to anywhere you want with minimal keystrokes, with just one key binding. +" `s{char}{label}` +"nmap s <Plug>(easymotion-s) +" or +" `s{char}{char}{label}` +" Need one more keystroke, but on average, it may be more comfortable. +nmap s <Plug>(easymotion-s2) + +" Turn on case insensitive feature +let g:EasyMotion_smartcase = 1 + +" JK motions: Line motions +map <Leader>j <Plug>(easymotion-j) +map <Leader>k <Plug>(easymotion-k) + +nnoremap <C-Left> :tabprevious<CR> +nnoremap <C-Right> :tabnext<CR> + +" fold coffee files +autocmd BufNewFile,BufReadPost *.coffee setl foldmethod=indent foldenable +source ~/.vim/plugin/v.vim +set ruler +autocmd BufWritePre * %s/\s\+$//e + +set path+=** +set wildmenu +set linebreak +" set visual mode selection highlighting +highlight Visual cterm=reverse ctermbg=NONE + +" ctrl space +"set hidden +"set showtabline=0 +"let g:CtrlSpaceLoadLastWorkspaceOnStart = 1 +"let g:CtrlSpaceSaveWorkspaceOnSwitch = 1 +"let g:CtrlSpaceSaveWorkspaceOnExit = 1 + +" syntastic +set statusline+=%#warningmsg# +set statusline+=%{SyntasticStatuslineFlag()} +set statusline+=%* + +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_check_on_open = 1 +let g:syntastic_check_on_wq = 0 + +" quickfixsigns +nnoremap <F12> :QuickfixsignsToggle<cr> + + +" vim-easytags +let g:easytags_async = 1 + +" tagbar +nmap <F8> :TagbarToggle<CR> + +" syntastic toggle +nnoremap <F11> :SyntasticToggleMode<cr> + +" undotree +nnoremap <F5> :UndotreeToggle<cr> + +" display status line and filename +set statusline="%f%m%r%h%w [%Y] [0x%02.2B]%< %F%=%4v,%4l %3p%% of %L" +set laststatus=2 + +" press f to show function name in C programs +fun! ShowFuncName() + let lnum = line(".") + let col = col(".") + echohl ModeMsg + echo getline(search("^[^ \t#/]\\{2}.*[^:]\s*$", 'bW')) + echohl None + call search("\\%" . lnum . "l" . "\\%" . col . "c") +endfun +map f :call ShowFuncName() <CR> + +" <F2> to show function declaration under cursor +nnoremap <F2> [i +inoremap <F2> <Esc>[i + +" <F4> to save current file +nnoremap <F4> :w<CR> +inoremap <F4> <c-o>:w<CR> diff --git a/termux/updateHome.sh b/termux/updateHome.sh @@ -8,7 +8,7 @@ cp ../dotfiles/.gitconfig ~/ cp ../dotfiles/.tmux.conf ~/ mkdir ~/.vim cp -R ../dotfiles/.vim/* ~/.vim/ -cp ../dotfiles/.vimrc ~/ +cp .vimrc ~/ mkdir ~/bin cp ../dotfiles/new.sh ~/bin/ cp ../dotfiles/gf ~/bin/