sway the things

- add screenshot shortcut to sway config
- updated ctags, tagbar for vim.
    - Markdown and BibTex now included, rm ctags config file
    - and updated vimrc with altered ctags linkers
This commit is contained in:
ackman678
2020-02-28 13:50:20 -08:00
parent a3d252137d
commit 6b3a0efc28
4 changed files with 138 additions and 52 deletions

141
.vimrc
View File

@@ -58,14 +58,30 @@ Plug 'junegunn/limelight.vim'
Plug 'scrooloose/nerdcommenter'
Plug 'majutsushi/tagbar'
" Plug 'tpope/vim-commentary'
" Plug 'tpope/surround'
Plug 'tpope/vim-surround'
" https://github.com/tpope/vim-surround
" cs, ds, yss to change, delete surroundings and operate on a line
" with a selection in visual mode use S
" deoplete is for autocompletion
" if has('nvim')
" Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
" else
" Plug 'Shougo/deoplete.nvim'
" Plug 'roxma/nvim-yarp'
" Plug 'roxma/vim-hug-neovim-rpc'
" endif
" let g:deoplete#enable_at_startup = 1
"
"Commonly used vim helpers
" Plug 'ycm-core/YouCompleteMe'
" Plug 'jedi-vim'
" Plug 'bling/vim-airline'
" Plug 'vim-airline/vim-airline-themes'
"Denite, like emacs 'Helm' app
" Plug 'Shougo/denite.nvim'
" Plug 'mg979/vim-visual-multi', {'branch': 'master'}
"Search
" Plug 'ctrlpvim/ctrlp.vim'
@@ -85,17 +101,31 @@ Plug 'majutsushi/tagbar'
" Plug 'matthewbdaly/vim-filetype-settings'
" Plug 'rhysd/vim-grammarous' "cmd :GrammarousCheck, req java
"todo.txt: https://github.com/freitass/todo.txt-vim
Plug 'freitass/todo.txt-vim'
" if localleader is '\' then for todo.txt files:
" <localleader>s sort
" <localleader>s+ sort on projects
" <localleader>j Decrease the priority of the current line
" <localleader>sd sort on dates
" <localleader>d set task's date
" <localleader>x mark task done
" see ':h todo.txt' for more
"External languages
" Plug 'Vigemus/iron.nvim'
" Plug 'bfredl/nvim-ipy'
"External languages, interpreter/repl integration
" Plug 'kassio/neoterm'
"
" Plug 'jpalardy/vim-slime'
" #:IPython. F5 exec current line or visual selection
" Plug 'bfredl/nvim-ipy'
" Plug 'jalvesaq/Nvim-R'
" Plug 'python-mode/python-mode', { 'branch': 'develop' }
" Plug 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' }
" jupyter independent ipython repl and other languages too
" Plug 'Vigemus/iron.nvim'
"latex
" Plug 'lervag/vimtex'
" Plug 'vim-pandoc'
" Plug 'vim-pandoc/vim-pandoc'
"Markdown
" Plug 'vimwiki/vimwiki'
@@ -116,41 +146,54 @@ filetype plugin indent on
"let g:polyglot_disabled = ['markdown']
let g:markdown_fenced_languages = ['html','r', 'javascript', 'python', 'sh', 'bash=sh', 'css', 'js=javascript', 'json=javascript']
"Tagbar config
nmap <F8> :TagbarToggle<CR>
" from Universal Ctags 0.0.0(a3c87ab5), ctags --list-kinds
let g:tagbar_type_markdown = {
\ 'ctagstype' : 'markdown',
\ 'ctagstype' : 'Markdown',
\ 'kinds' : [
\ 'h:Heading_L1',
\ 'i:Heading_L2',
\ 'k:Heading_L3'
\ 'c:Heading_L1',
\ 's:Heading_L2',
\ 'S:Heading_L3',
\ 't:Heading_L4',
\ 'T:Heading_L5',
\ 'u:Heading_L6'
\ ]
\ }
let g:tagbar_type_bib = {
\ 'ctagstype' : 'bib',
\ 'ctagstype' : 'BibTex',
\ 'kinds' : [
\ 'a:Articles',
\ 'b:Books',
\ 'L:Booklets',
\ 'B:Booklets',
\ 'c:Conferences',
\ 'B:Inbook',
\ 'C:Incollection',
\ 'P:Inproceedings',
\ 'i:Inbook',
\ 'I:Incollection',
\ 'J:Inproceedings',
\ 'm:Manuals',
\ 'T:Masterstheses',
\ 'M:Misc',
\ 't:Phdtheses',
\ 'p:Proceedings',
\ 'r:Techreports',
\ 'M:Masterstheses',
\ 'n:Misc',
\ 'p:Phdtheses',
\ 'P:Proceedings',
\ 't:Techreports',
\ 'u:Unpublished',
\ 's:string'
\ ]
\ }
"Python repl config
let g:python_host_prog = '/usr/bin/python3'
let g:loaded_python3_provider = 1
" let g:slime_target = 'neovim'
" let g:loaded_python_provider = 0
" let g:python3_host_prog = '/usr/bin/python3'
" let g:slime_target = 'tmux'
" let g:slime_python_ipython = 1
"
"use C-c, C-c to send paragraph or selected text
":SlimeConfig
" https://github.com/jpalardy/vim-slime
":vertical terminal ipython
"set updatetime=100
@@ -191,11 +234,25 @@ set expandtab
" set hlsearch
" set spell
" au BufNewFile,BufRead *.js, *.html, *.css
" \ set tabstop=2
" \ set softtabstop=2
" \ set shiftwidth=2
"
augroup configgroup
autocmd!
autocmd FileType html setlocal tabstop=2
autocmd FileType html setlocal shiftwidth=2
autocmd FileType html setlocal softtabstop=2
autocmd FileType css setlocal tabstop=2
autocmd FileType css setlocal shiftwidth=2
autocmd FileType css setlocal softtabstop=2
autocmd FileType javascript setlocal tabstop=2
autocmd FileType javascript setlocal shiftwidth=2
autocmd FileType javascript setlocal softtabstop=2
" autocmd FileType html setlocal commentstring=#\ %s
autocmd BufEnter *.sh setlocal tabstop=2
autocmd BufEnter *.sh setlocal shiftwidth=2
autocmd BufEnter *.sh setlocal softtabstop=2
augroup END
" au BufNewFile,BufRead *.js, *.html, *.css set tabstop=2 softtabstop=2 set shiftwidth=2 expandtab
"Mouse/trackpad pointer config
" set mouse=a "already set by defaults.vim
set mouse=n
@@ -248,12 +305,40 @@ set title
" let g:Tex_DefaultTargetFormat =" pdf"
" let g:Tex_IgnoredWarnings =''
" vim-pandoc settings
" let g:pandoc#filetypes#handled = ["pandoc", "markdown"]
" let g:pandoc#filetypes#pandoc_markdown = 0
" let g:pandoc#completion#bib#mode = "citeproc"
" let g:pandoc#modules#disabled = ["folding"]
" vim-pandoc with deoplete autocomplete for nvim
" if !exists('g:deoplete#omni#input_patterns')
" let g:deoplete#omni#input_patterns = {}
" endif
" let g:deoplete#omni#input_patterns.pandoc = ['@']
"
" vim-pandoc with youcompleteme
" if !exists('g:ycm_semantic_triggers')
" let g:ycm_semantic_triggers = {}
" endif
" let g:ycm_semantic_triggers.pandoc = ['@']
" let g:ycm_filetype_blacklist = {}
"make vimtex work with neovim
" let g:vimtex_compiler_progname='nvr'
" let g:vimtex_view_use_temp_files=2
" let g:vimtex_view_method='zathura'
" let g:vimtex_quickfix_mode=0 " do not open the quickfix window automatically
" use <ctrl-x><ctrl-o> with fzf in insert mode to insert project file name
" inoremap <expr> <c-x><c-o> fzf#vim#complete#path('git ls-files $(git rev-parse --show-toplevel)')
" Insert mode completion
imap <c-x><c-k> <plug>(fzf-complete-word)
imap <c-x><c-f> <plug>(fzf-complete-path)
imap <c-x><c-j> <plug>(fzf-complete-file)
"Allow commenting and inverting empty lines (useful when commenting a region
let g:NERDCommentEmptyLines = 1
"Add spaces after comment delimiters by default