1
0
mirror of https://github.com/gryf/.vim.git synced 2026-03-27 00:03:31 +01:00

Compare commits

...

4 Commits

Author SHA1 Message Date
f94b8415c7 Update python snippets 2023-04-04 19:04:28 +02:00
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
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
1bf338884a Remove redundant tmux conf syntax 2023-04-04 17:13:12 +02:00
2 changed files with 16 additions and 30 deletions

View File

@@ -12,16 +12,16 @@ snippet dbg Python Debugger abbrv
snippet ipdb ipdb abbrv
__import__('ipdb').set_trace()
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
from Tkinter import Tk
import ttk
import tkMessageBox
window = Tk()
import tkinter
import tkinter.ttk
import tkinter.messagebox
window = tkinter.Tk()
window.wm_withdraw() # make window invisible. we only want message boxes
ttk.Style().theme_use('clam')
tkMessageBox.showinfo(title="${1:title}",
message="${2:msg}",
parent=window)
tkinter.ttk.Style().theme_use('clam')
tkinter.messagebox.showinfo(title="${1:title}",
message="${2:msg}",
parent=window)
snippet _ Dunder completion
__${1:init}__$0

28
vimrc
View File

@@ -11,16 +11,14 @@ endif
call plug#begin('~/.vim/bundle')
Plug 'Valloric/MatchTagAlways'
Plug 'Valloric/MatchTagAlways', { 'for': ['html', 'xml'] }
Plug 'ayuanx/vim-mark-standalone'
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
Plug 'dogrover/vim-pentadactyl'
Plug 'ericpruitt/tmux.vim'
if has("patch-8.0.1453")
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
endif
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/pep8-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/pythonhelper', { 'for': 'python' }
Plug 'gryf/snipmate.vim'
Plug 'gryf/vim-latex-compiler'
Plug 'gryf/vim-latex-compiler', { 'for': 'tex' }
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 'honza/vim-snippets'
Plug 'kazuyukitanimura/jsbeautify'
Plug 'kien/ctrlp.vim'
Plug 'mattn/calendar-vim'
Plug 'mikeage/occur.vim'
Plug 'mileszs/ack.vim'
Plug 'myhere/vim-nodejs-complete', { 'for': 'javascript' }
Plug 'othree/html5.vim', { 'for': 'html' }
Plug 'pangloss/vim-javascript', { 'for': 'javascript' }
Plug 'pcaro90/jpythonfold.vim'
Plug 'pcaro90/jpythonfold.vim', { 'for': 'python' }
Plug 'preservim/nerdcommenter'
Plug 'preservim/tagbar'
Plug 'regedarek/ZoomWin'
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
Plug 'sjl/gundo.vim'
Plug 'skammer/vim-css-color'
Plug 'terryma/vim-multiple-cursors'
Plug 'skammer/vim-css-color', { 'for': 'css' }
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-repeat'
Plug 'machakann/vim-sandwich'
Plug 'tpope/vim-surround'
Plug 'vim-scripts/DrawIt'
Plug 'vim-scripts/JavaScript-Indent', { 'for': 'javascript' }
Plug 'vim-scripts/LanguageTool'
Plug 'vim-scripts/ShowMarks'
Plug 'vim-scripts/indentpython', { 'for': 'python' }
@@ -379,8 +371,6 @@ endfunction
"remove all trailing whitespace for specified files before write
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 *.ass, *asm set filetype=kickass
@@ -546,10 +536,6 @@ let g:tagbar_type_vimwiki = {
\ }
" 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
let g:vimwiki_list = [{'path': '~/vimwiki/',
\ 'template_path': '~/vimwiki/',