1
0
mirror of https://github.com/gryf/.vim.git synced 2026-04-21 09:21:25 +02:00

Compare commits

...

4 Commits

Author SHA1 Message Date
gryf f94b8415c7 Update python snippets 2023-04-04 19:04:28 +02:00
gryf 00ee99d9c8 Revisiting the plugins.
There are some of the plugins, which I never use in my workflow, so that
I've removing them. Other than that, narrow down filetype specific
plugins to the right file types.

Also removed js specific plugins, and rely only on those provided by
vim.
2023-04-04 18:51:44 +02:00
gryf 1a67b0b2a9 Back to surround plugin.
Turns out that vim-sandwitch can be slow in certain circumstances,
especially well seen with tpope/vim-repeat.
2023-04-04 17:22:12 +02:00
gryf 1bf338884a Remove redundant tmux conf syntax 2023-04-04 17:13:12 +02:00
2 changed files with 16 additions and 30 deletions
+9 -9
View File
@@ -12,16 +12,16 @@ snippet dbg Python Debugger abbrv
snippet ipdb ipdb abbrv snippet ipdb ipdb abbrv
__import__('ipdb').set_trace() __import__('ipdb').set_trace()
snippet rpdb remote_pdb debbuger snippet rpdb remote_pdb debbuger
__import__('remote_pdb').set_trace() __import__('remote_pdb').RemotePdb('127.0.0.1', 4444).set_trace()
snippet msg Tk graphical message snippet msg Tk graphical message
from Tkinter import Tk import tkinter
import ttk import tkinter.ttk
import tkMessageBox import tkinter.messagebox
window = Tk() window = tkinter.Tk()
window.wm_withdraw() # make window invisible. we only want message boxes window.wm_withdraw() # make window invisible. we only want message boxes
ttk.Style().theme_use('clam') tkinter.ttk.Style().theme_use('clam')
tkMessageBox.showinfo(title="${1:title}", tkinter.messagebox.showinfo(title="${1:title}",
message="${2:msg}", message="${2:msg}",
parent=window) parent=window)
snippet _ Dunder completion snippet _ Dunder completion
__${1:init}__$0 __${1:init}__$0
+7 -21
View File
@@ -11,16 +11,14 @@ endif
call plug#begin('~/.vim/bundle') call plug#begin('~/.vim/bundle')
Plug 'Valloric/MatchTagAlways' Plug 'Valloric/MatchTagAlways', { 'for': ['html', 'xml'] }
Plug 'ayuanx/vim-mark-standalone' Plug 'ayuanx/vim-mark-standalone'
Plug 'davidhalter/jedi-vim', { 'for': 'python' } Plug 'davidhalter/jedi-vim', { 'for': 'python' }
Plug 'dogrover/vim-pentadactyl'
Plug 'ericpruitt/tmux.vim'
if has("patch-8.0.1453") if has("patch-8.0.1453")
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' } Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
endif endif
Plug 'dense-analysis/ale' Plug 'dense-analysis/ale'
Plug 'fs111/pydoc.vim', { 'for': 'python' } Plug 'fs111/pydoc.vim', { 'for': 'python' } " adds Pydoc command and K under cursor
Plug 'gryf/dragvisuals' Plug 'gryf/dragvisuals'
Plug 'gryf/pep8-vim', { 'for': 'python' } Plug 'gryf/pep8-vim', { 'for': 'python' }
Plug 'gryf/pylint-vim', { 'for': 'python' } Plug 'gryf/pylint-vim', { 'for': 'python' }
@@ -28,32 +26,26 @@ Plug 'gryf/python-syntax', { 'for': 'python' }
Plug 'gryf/python.vim', { 'for': 'python' } Plug 'gryf/python.vim', { 'for': 'python' }
Plug 'gryf/pythonhelper', { 'for': 'python' } Plug 'gryf/pythonhelper', { 'for': 'python' }
Plug 'gryf/snipmate.vim' Plug 'gryf/snipmate.vim'
Plug 'gryf/vim-latex-compiler' Plug 'gryf/vim-latex-compiler', { 'for': 'tex' }
Plug 'gryf/wombat256grf' Plug 'gryf/wombat256grf'
Plug 'gryf/zoom.vim' Plug 'gryf/zoom.vim' " control gui font size with '+' or '-; keys.
Plug 'habamax/vim-rst', { 'for': 'rst' } Plug 'habamax/vim-rst', { 'for': 'rst' }
Plug 'honza/vim-snippets' Plug 'honza/vim-snippets'
Plug 'kazuyukitanimura/jsbeautify'
Plug 'kien/ctrlp.vim' Plug 'kien/ctrlp.vim'
Plug 'mattn/calendar-vim'
Plug 'mikeage/occur.vim' Plug 'mikeage/occur.vim'
Plug 'mileszs/ack.vim' Plug 'mileszs/ack.vim'
Plug 'myhere/vim-nodejs-complete', { 'for': 'javascript' }
Plug 'othree/html5.vim', { 'for': 'html' } Plug 'othree/html5.vim', { 'for': 'html' }
Plug 'pangloss/vim-javascript', { 'for': 'javascript' } Plug 'pcaro90/jpythonfold.vim', { 'for': 'python' }
Plug 'pcaro90/jpythonfold.vim'
Plug 'preservim/nerdcommenter' Plug 'preservim/nerdcommenter'
Plug 'preservim/tagbar' Plug 'preservim/tagbar'
Plug 'regedarek/ZoomWin' Plug 'regedarek/ZoomWin'
Plug 'rust-lang/rust.vim', { 'for': 'rust' } Plug 'rust-lang/rust.vim', { 'for': 'rust' }
Plug 'sjl/gundo.vim' Plug 'sjl/gundo.vim'
Plug 'skammer/vim-css-color' Plug 'skammer/vim-css-color', { 'for': 'css' }
Plug 'terryma/vim-multiple-cursors'
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-repeat' Plug 'tpope/vim-repeat'
Plug 'machakann/vim-sandwich' Plug 'tpope/vim-surround'
Plug 'vim-scripts/DrawIt' Plug 'vim-scripts/DrawIt'
Plug 'vim-scripts/JavaScript-Indent', { 'for': 'javascript' }
Plug 'vim-scripts/LanguageTool' Plug 'vim-scripts/LanguageTool'
Plug 'vim-scripts/ShowMarks' Plug 'vim-scripts/ShowMarks'
Plug 'vim-scripts/indentpython', { 'for': 'python' } Plug 'vim-scripts/indentpython', { 'for': 'python' }
@@ -379,8 +371,6 @@ endfunction
"remove all trailing whitespace for specified files before write "remove all trailing whitespace for specified files before write
autocmd BufWritePre * :call <SID>StripTrailingWhitespaces(0, 'n') autocmd BufWritePre * :call <SID>StripTrailingWhitespaces(0, 'n')
"set correct filetype for tmux
autocmd BufRead *.tmux.conf set filetype=tmux
autocmd BufRead *.mako set filetype=mako autocmd BufRead *.mako set filetype=mako
autocmd BufRead *.ass, *asm set filetype=kickass autocmd BufRead *.ass, *asm set filetype=kickass
@@ -546,10 +536,6 @@ let g:tagbar_type_vimwiki = {
\ } \ }
" Note: see statusline settings for status bar tag conf " Note: see statusline settings for status bar tag conf
"}}} "}}}
"Sandwitch {{{2
" Make sandwitch to use my memorymuscle craved shorcuts for surround
runtime macros/sandwich/keymap/surround.vim
"}}}
"VimWIKI {{{2 "VimWIKI {{{2
let g:vimwiki_list = [{'path': '~/vimwiki/', let g:vimwiki_list = [{'path': '~/vimwiki/',
\ 'template_path': '~/vimwiki/', \ 'template_path': '~/vimwiki/',