Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

546 lines
16 KiB

6 years ago
6 years ago
6 years ago
6 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
7 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
5 years ago
5 years ago
5 years ago
6 years ago
5 years ago
6 years ago
5 years ago
6 years ago
6 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
5 years ago
  1. " set x=y [[[ "
  2. set autoindent
  3. set autoread
  4. set background=dark
  5. " set colorcolumn=80
  6. set clipboard+=unnamedplus
  7. set diffopt=filler,context:3
  8. if has('nvim-0.3.2') || has("patch-8.1.0360")
  9. set diffopt=filler,internal,algorithm:histogram,indent-heuristic
  10. endif
  11. set encoding=utf-8
  12. set expandtab
  13. " set foldmethod=indent
  14. set foldmethod=marker
  15. set hlsearch
  16. set ignorecase
  17. set linebreak
  18. set linespace=5
  19. set mouse=a
  20. " set mouse=c
  21. " set noswapfile
  22. set relativenumber
  23. set shiftwidth=4
  24. set smartcase
  25. set tabstop=4
  26. " set t_Co=256
  27. " set termguicolors
  28. " set timeoutlen=350
  29. set timeoutlen=200
  30. " set tw=80
  31. set tw=75
  32. set undodir=~/.vim/undo
  33. set undofile
  34. " set updatetime=1000
  35. " set updatetime=500
  36. set updatetime=0
  37. autocmd VimResized * wincmd =
  38. filetype plugin on
  39. filetype indent on
  40. syntax on
  41. autocmd CursorHold * if !bufexists("[Command Line]") | checktime | endif
  42. " cursor indicator [[[ "
  43. " set listchars=tab:\|\
  44. " set list
  45. " set cursorcolumn
  46. " set cursorline
  47. " ]]] cursor indicator "
  48. " ]]] set x=y "
  49. " commands for file types [[[ "
  50. autocmd BufNewFile,BufRead .* set syntax=sh
  51. autocmd FileType *css,htmldjango,html,javascript,json,lisp,markdown,tex,text,yaml set tabstop=2 shiftwidth=2
  52. " autocmd BufNewFile,BufRead *.md set filetype=markdown
  53. " autocmd Filetype markdown set textwidth=0
  54. " autocmd Filetype html set foldmarker=0
  55. autocmd BufNewFile,BufRead *.gd set expandtab!
  56. autocmd Filetype go set expandtab! sw=4
  57. autocmd Filetype markdown set commentstring=<!---\ %s\ -->
  58. autocmd Filetype markdown map <F8> :LivedownToggle<CR>
  59. autocmd Filetype markdown nnoremap <Tab> <Esc>>>A
  60. autocmd Filetype markdown inoremap <S-Tab> <Esc><<A
  61. autocmd Filetype markdown inoremap < <Esc><<A
  62. autocmd Filetype markdown inoremap << <
  63. autocmd Filetype markdown inoremap > <Esc>>>A
  64. autocmd Filetype markdown inoremap >> >
  65. " format options [[[ "
  66. " a = auto-format paragraphs
  67. " c = wrap comments
  68. " j = remove comment header when joining lines
  69. " M = don't add space when joining lines
  70. " q = format comments with gq
  71. " t = wrap lines
  72. " v = break lines in insert
  73. " w = whitespace continues paragraph
  74. " ]]] format options "
  75. " autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=cjMqtvw
  76. autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=acjMqtvw
  77. " autocmd FileType tex,text set spell spelllang=en_us formatoptions=acjMqtvw
  78. autocmd FileType python,lua set fdm=indent
  79. autocmd Filetype json nnoremap <leader>j :%!python -m json.tool<CR>
  80. autocmd Filetype json set foldmethod=marker
  81. autocmd FileType sh map <F8> :!clear && shellcheck %<CR>
  82. autocmd FileType tex set updatetime=1000 timeoutlen=300
  83. autocmd FileType tex map <F8> :VimtexCompile<CR>
  84. autocmd VimEnter *.tex VimtexCompile
  85. autocmd VimLeave *.tex !tex-clean %:p
  86. autocmd BufNewFile,BufRead *.tmpl set tw=0 sw=2 ft=go-template fmr=[[[,]]]
  87. " " auto-reload vimrc [[[ "
  88. " augroup myvimrc
  89. " au!
  90. " au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
  91. " augroup END
  92. " " ]]] auto-reload vimrc "
  93. " ]]] commands for file types "
  94. " commands for specific files [[[ "
  95. autocmd BufNewFile,BufRead watson*.fish set tabstop=2 shiftwidth=2 expandtab
  96. autocmd BufWritePost config.def.h silent !cd %:p:h; sudo rm config.h; sudo bear make install
  97. " autocmd BufRead config.def.h map <F8> :silent !cd %:p:h; sudo rm config.h; sudo bear make install<CR>
  98. autocmd BufRead config.def.h map <F10> :silent !cd %:p:h<CR>:!sudo rm config.h; sudo bear make install<CR>
  99. autocmd BufRead config.def.h set updatetime=3000
  100. autocmd BufRead commit-msg.txt set filetype=gitcommit tw=72
  101. autocmd VimLeave /etc/default/grub !sudo grub-mkconfig -o /boot/grub/grub.cfg
  102. " autocmd BufWritePost key_* !sync-shortcuts
  103. autocmd BufNewFile,BufRead key_* map <F1> :w<CR>:silent !sync-shortcuts<CR>
  104. " map <F1> :silent !scp %:p k@192.168.0.17:/home/k/a1<CR>
  105. " map <F2> :silent !scp -P 2222 e1.html e1_style.css kevin@127.0.0.1:/home/kevin/Downloads/e1<CR>
  106. " map <F6> :make -C ~/Documents/resume cv<CR>
  107. " ]]] commands for specific files "
  108. " vim-plug [[[
  109. " plug auto-install
  110. if empty(glob('~/.vim/autoload/plug.vim'))
  111. silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
  112. \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  113. autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
  114. endif
  115. call plug#begin('~/.vim/plugged')
  116. " prequisite for other plugins
  117. Plug 'vim-scripts/L9'
  118. " find files from within Vim
  119. " Plug 'vim-scripts/FuzzyFinder'
  120. {{ if not .gui }}
  121. " Gotham color scheme
  122. Plug 'whatyouhide/vim-gotham'
  123. {{ end }}
  124. " " collection of Vim color schemes
  125. " Plug 'flazz/vim-colorschemes'
  126. " " preview Vim color scheme easily within Vim
  127. " Plug 'xolox/vim-colorscheme-switcher'
  128. " " prerequisite for above plugin
  129. " Plug 'xolox/vim-misc'
  130. " automatically save buffers upon returning to normal mode
  131. Plug '907th/vim-auto-save'
  132. let g:auto_save = 1
  133. " let g:auto_save_events = ["CursorHold", "CursorHoldI"]
  134. let g:auto_save_events = ["CursorHold"]
  135. " autocmd VimEnter *.tex let g:auto_save = 0
  136. " provides various functionality for writing LaTeX in Vim
  137. Plug 'lervag/vimtex'
  138. " au BufWritePost *.tex silent call Tex_RunLaTeX()
  139. au BufWritePost *.tex silent !pkill -USR1 xdvi.bin
  140. let g:Tex_MultipleCompileFormats = 'dvi,pdf'
  141. let g:vimtex_view_general_viewer = 'zathura'
  142. let g:vimtex_quickfix_latexlog = {
  143. \ 'overfull' : 0,
  144. \ 'underfull' : 0,
  145. \ 'global' : 0,
  146. \ 'references' : 0,
  147. \ 'unused' : 0,
  148. \}
  149. let g:vimtex_quickfix_autoclose_after_keystrokes = 5
  150. " let g:vimtex_compiler_latexmk = {
  151. " \ 'continuous' : 0,
  152. " \}
  153. {{ if not (eq .chezmoi.username "root") }}
  154. " auto-completion for various languages
  155. Plug 'Valloric/YouCompleteMe'
  156. let g:ycm_filetype_blacklist = {
  157. \ 'tagbar': 1,
  158. \ 'qf': 1,
  159. \ 'notes': 1,
  160. \ 'unite': 1,
  161. \ 'vimwiki': 1,
  162. \ 'pandoc': 1,
  163. \ 'infolog': 1,
  164. \ 'mail': 1
  165. \}
  166. {{ end }}
  167. " wrote short bits of text that expand into whatever you want
  168. " demo: https://www.youtube.com/watch?v=Zik6u0klD40
  169. Plug 'SirVer/ultisnips'
  170. " better key bindings for UltiSnipsExpandTrigger
  171. let g:UltiSnipsExpandTrigger = "<tab>"
  172. let g:UltiSnipsJumpForwardTrigger = "<tab>"
  173. let g:UltiSnipsJumpBackwardTrigger = "<C-tab>"
  174. let g:ultisnips_javascript = {
  175. \ 'keyword-spacing': 'always',
  176. \ 'semi': 'never',
  177. \ 'space-before-function-paren': 'never',
  178. \ }
  179. " custom snippets
  180. Plug 'Kevin-Mok/vim-snippets'
  181. " to make YouCompleteMe work with UltiSnips (both use Tab)
  182. Plug 'ervandew/supertab'
  183. " make YCM compatible with UltiSnips (using supertab)
  184. let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
  185. let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
  186. let g:SuperTabDefaultCompletionType = '<C-n>'
  187. " easily comment/uncomment lines
  188. Plug 'scrooloose/nerdcommenter'
  189. let g:NERDTrimTrailingWhitespace = 1
  190. let g:NERDSpaceDelims = 1
  191. " add quotes/brackets around chunks of text easily
  192. Plug 'tpope/vim-surround'
  193. nmap S ys
  194. " navigate around file easily and precisely
  195. Plug 'easymotion/vim-easymotion'
  196. map <Space> <Plug>(easymotion-prefix)
  197. " status bar displaying various info about the current buffer
  198. Plug 'vim-airline/vim-airline'
  199. let g:airline_section_c = '%F'
  200. Plug 'vim-airline/vim-airline-themes'
  201. let g:airline_powerline_fonts = 1
  202. " continue Markdown lists when started
  203. Plug 'dkarter/bullets.vim'
  204. " coordinate Vim color scheme with terminal color scheme
  205. Plug 'dylanaraps/wal.vim'
  206. " repeat plugin commands
  207. Plug 'tpope/vim-repeat'
  208. " better Django support
  209. Plug 'tweekmonster/django-plus.vim'
  210. " auto-close brackets
  211. Plug 'jiangmiao/auto-pairs'
  212. let g:AutoPairsMapSpace = 0
  213. Plug 'henrik/vim-indexed-search'
  214. Plug 'PotatoesMaster/i3-vim-syntax'
  215. " vim file explorer
  216. Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
  217. Plug 'terryma/vim-multiple-cursors'
  218. " let g:multi_cursor_select_all_word_key='<C-a>'
  219. let g:multi_cursor_exit_from_visual_mode=0
  220. let g:multi_cursor_exit_from_insert_mode=0
  221. Plug 'dag/vim-fish'
  222. Plug 'shime/vim-livedown'
  223. Plug 'tpope/vim-fugitive'
  224. " auto reload file
  225. Plug 'djoshea/vim-autoread'
  226. " Plug 'mustache/vim-mustache-handlebars'
  227. " Plug 'trapd00r/vim-syntax-vidir-ls'
  228. Plug 'calviken/vim-gdscript3'
  229. " display hex colors in Vim
  230. Plug 'RRethy/vim-hexokinase'
  231. Plug 'junegunn/goyo.vim'
  232. " prevent commands being executed through modelines "
  233. Plug 'ciaranm/securemodelines/'
  234. " different colors for each layer of surrounding brackets
  235. Plug 'luochen1990/rainbow'
  236. let g:rainbow_active = 1
  237. " easy custom text objects
  238. Plug 'kana/vim-textobj-user'
  239. " latex custom text objects
  240. Plug 'rbonvall/vim-textobj-latex'
  241. " swap words
  242. Plug 'tommcdo/vim-exchange'
  243. Plug 'scrooloose/nerdtree'
  244. let NERDTreeQuitOnOpen=1
  245. let NERDTreeShowHidden=1
  246. Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
  247. Plug 'junegunn/fzf.vim'
  248. Plug 'christoomey/vim-tmux-navigator'
  249. " mappings [[[ "
  250. let g:tmux_navigator_no_mappings = 1
  251. nnoremap <A-j> :TmuxNavigateDown<cr>
  252. nnoremap <A-k> :TmuxNavigateUp<cr>
  253. nnoremap <A-h> :TmuxNavigateLeft<cr>
  254. nnoremap <A-l> :TmuxNavigateRight<cr>
  255. " nnoremap <C-Down> :TmuxNavigateDown<cr>
  256. " nnoremap <C-Up> :TmuxNavigateUp<cr>
  257. " nnoremap <C-Left> :TmuxNavigateLeft<cr>
  258. " nnoremap <C-Right> :TmuxNavigateRight<cr>
  259. " ]]] mappings "
  260. " ]]] vim-plug "
  261. " Mappings [[[ "
  262. call plug#end()
  263. {{ if .gui }}
  264. colorscheme wal
  265. {{ else }}
  266. colorscheme gotham256
  267. {{ end }}
  268. " normal mappings [[[ "
  269. " visual select across lines by default "
  270. nnoremap v <C-V>
  271. " last macro "
  272. nnoremap Q @@
  273. " toggle fold "
  274. nnoremap , za
  275. " jump to horizontal position for mark "
  276. nnoremap ' `
  277. " indenting
  278. nnoremap > >>
  279. nnoremap < <<
  280. inoremap << <Esc><<A
  281. " ]]] normal mappings "
  282. " leader mappings [[[ "
  283. let mapleader="\<Space>"
  284. " find alias
  285. nnoremap <leader>a /^ <Left>
  286. nnoremap <leader>ac :.s/\(\w\w\)/\u\1\U\2/g<CR>
  287. " replace until end of line
  288. nnoremap <leader>c c$
  289. " delete until end of line
  290. nnoremap <leader>d d$
  291. " delete entire buffer
  292. nnoremap <leader>dg ggdG
  293. " delete entire line
  294. nnoremap <leader>dl 0d$
  295. " delete lines matching pattern
  296. nnoremap <leader>dls :g//d<left><left>
  297. " show docstring for cur word
  298. nnoremap <leader>do :YcmCompleter GetDoc<CR>
  299. " delete line into system clipboard
  300. nnoremap <leader>D "+dd
  301. " delete entire buffer into system clipboard
  302. nnoremap <leader>DA "+ggdG
  303. " find copied text
  304. nnoremap <leader>f q/p<CR>
  305. " find merge conflicts
  306. nnoremap <leader>fc /[<>=\|]\{7\}<CR>
  307. " reload folds
  308. nnoremap <leader>fmi :set foldmethod=indent<CR> zM
  309. nnoremap <leader>fmm :set foldmethod=marker<CR> zM
  310. " add marker foldmethod modeline
  311. nnoremap <leader>fi :YcmCompleter FixIt<CR>
  312. " check filetype
  313. nnoremap <leader>ft :se ft?<CR>
  314. " check todo's
  315. nnoremap <leader>ftd /TODO<CR>
  316. nnoremap <leader>g :YcmCompleter GoTo<CR>
  317. " vimdiff split
  318. nnoremap <leader>gd :Gvdiff
  319. nnoremap <leader>gdh :Gvdiff HEAD~
  320. nnoremap <leader>gdm :Gvdiff master<CR>
  321. " toggle search highlighting
  322. nnoremap <leader>h :set hlsearch! hlsearch?<CR>
  323. " help
  324. nnoremap <leader>he :vert help
  325. nnoremap <leader>ht :set tabstop=2 shiftwidth=2 expandtab<CR>
  326. nnoremap <leader>vhe :vert help
  327. " don't add space when joining lines "
  328. nnoremap <leader>j gJ
  329. " join all paragraphs into single line "
  330. nnoremap <leader>jl :set tw=9999999<CR>gggqG
  331. " format current line
  332. nnoremap <leader>l Vgq
  333. " format this and next line
  334. nnoremap <leader>ll Vjgq
  335. " move cursor to middle of line
  336. " nnoremap <leader>m :call cursor(0, len(getline('.'))/2)<CR>
  337. nnoremap <leader>m :vert Man
  338. " apply normal command to selection
  339. vnoremap <leader>n q:anorm
  340. nnoremap <leader>nt :NERDTree<CR>
  341. " check if in neovim
  342. nnoremap <leader>nv :echo has('nvim')<CR>
  343. " don't wrap lines
  344. nnoremap <leader>nw :set nowrap<CR>
  345. " recursively open fold
  346. nnoremap <leader>o zO
  347. " paste from?
  348. " nnoremap <leader>p "*p
  349. " format paragraph
  350. nnoremap <leader>p gqip
  351. " Plug commands
  352. nnoremap <leader>pli :PlugInstall<CR>
  353. nnoremap <leader>plc :PlugClean<CR>
  354. nnoremap <leader>plu :PlugUpdate<CR>
  355. " don't break lines
  356. nnoremap <leader>py :set tw=0<CR>
  357. " replace in next x lines
  358. nnoremap <leader>r q:i.,.+s///g<ESC>Fsi
  359. " replace in line
  360. nnoremap <leader>rl q:i.s///g<left><left><left>
  361. " replace in visual selection
  362. vnoremap <leader>r q:is///g<ESC>3ha
  363. " reload vim config
  364. nnoremap <leader>rv :source $MYVIMRC<CR>
  365. " replace in entire file
  366. nnoremap <leader>R q:i%s///g<ESC>2F/i
  367. vnoremap <leader>s :sort<CR>
  368. nnoremap <leader>sc :set spell spelllang=en_us<CR>
  369. " run current file in shell
  370. nnoremap <leader>sh :!%:p
  371. " sort lines until end of file
  372. nnoremap <leader>so q:i.,$sort<CR>
  373. " sort lines
  374. nnoremap <leader>sol q:i.,.+sort<ESC>Fsi
  375. " set syntax to shell (for dotfiles)
  376. nnoremap <leader>sys :set syn=sh<CR>
  377. vnoremap <leader>t :!tac<CR>
  378. " capitalize letter
  379. nnoremap <leader>u vU
  380. " open vimrc in vertical split
  381. nnoremap <leader>vv :vsp ~/.vimrc<CR>
  382. " copy next thing to system clipboard
  383. " nnoremap <leader>y "+
  384. " nnoremap <leader>Y "+Y
  385. nnoremap <leader>y y$
  386. nnoremap <leader>yo :Goyo<CR>
  387. " yank entire buffer
  388. nnoremap <leader>yg ggyG
  389. " toggle fold
  390. nnoremap <leader>z za
  391. " close all folds
  392. nnoremap <leader>zm zM
  393. " open all folds
  394. nnoremap <leader>zr zR
  395. " ]]] leader mappings "
  396. " function keys [[[ "
  397. map <F3> :wa<CR>
  398. map <F4> :xa<CR>
  399. map <F5> :q!<CR>
  400. map <F6> :qa!<CR>
  401. map <F7> :AutoSaveToggle<CR>
  402. " reload file
  403. nnoremap <F9> :e<CR>
  404. nnoremap <F10> :set paste<CR>"+p:set nopaste<CR>
  405. nnoremap <F11> :set paste<CR>"*p:set nopaste<CR>
  406. " ]]] function keys "
  407. map <S-Enter> O<ESC>
  408. " swap text visually
  409. vnoremap <C-P> <Esc>`.``gvP``P
  410. ino <C-A> <C-O>yiW<End>=<C-R>=<C-R>0<CR>
  411. " splits [[[ "
  412. nnoremap <C-Down> <C-W><C-J>
  413. nnoremap <C-Up> <C-W><C-K>
  414. nnoremap <C-Right> <C-W><C-L>
  415. nnoremap <C-Left> <C-W><C-H>
  416. " Maximize height/width.
  417. nnoremap <C-g> <C-W>_
  418. nnoremap <C-w> <C-W>|
  419. " ]]] splits "
  420. " ]]] Mappings "
  421. " Local Mappings [[[ "
  422. let maplocalleader="\\"
  423. " tex [[[ "
  424. autocmd Filetype tex inoremap <localleader>bt \bowtie
  425. autocmd Filetype tex inoremap <localleader>c \checkmark
  426. autocmd Filetype tex inoremap <localleader>d \delta
  427. autocmd Filetype tex inoremap <localleader>D \Delta
  428. autocmd Filetype tex inoremap <localleader>e \exists
  429. autocmd Filetype tex inoremap <localleader>ep \epsilon
  430. autocmd Filetype tex inoremap <localleader>fa \forall
  431. autocmd Filetype tex inoremap <localleader>g \geq
  432. autocmd Filetype tex inoremap <localleader>i \in
  433. autocmd Filetype tex inoremap <localleader>la \leftarrow
  434. autocmd Filetype tex inoremap <localleader>le \leq
  435. autocmd Filetype tex inoremap <localleader>ln \log n
  436. autocmd Filetype tex inoremap <localleader>lr \Leftrightarrow
  437. " autocmd Filetype tex inoremap <localleader>n \neg
  438. autocmd Filetype tex inoremap <localleader>n \neq
  439. autocmd Filetype tex inoremap <localleader>N \mathbb{N}
  440. autocmd Filetype tex inoremap <localleader>pg \pagebreak<Enter>
  441. autocmd Filetype tex inoremap <localleader>ph [,phantom]
  442. autocmd Filetype tex inoremap <localleader>q \qquad
  443. autocmd Filetype tex inoremap <localleader>r \rightarrow
  444. autocmd Filetype tex inoremap <localleader>R \Rightarrow
  445. autocmd Filetype tex inoremap <localleader>s \subset
  446. autocmd Filetype tex inoremap <localleader>st such that
  447. autocmd Filetype tex inoremap <localleader>S \Sigma
  448. autocmd Filetype tex inoremap <localleader>t \times
  449. " autocmd Filetype tex inoremap <localleader>T $T$
  450. autocmd Filetype tex inoremap <localleader>T \Theta
  451. " replace bars/underscores in URL
  452. autocmd Filetype tex inoremap <localleader>url :.s/\([-_]\)/\\\1/g<CR>
  453. autocmd Filetype tex inoremap <localleader>v \vee
  454. autocmd Filetype tex inoremap <localleader>w \wedge
  455. autocmd Filetype tex inoremap <localleader>x $x$-axis
  456. autocmd Filetype tex inoremap <localleader>y $y$-axis
  457. autocmd Filetype tex inoremap <localleader>Z \mathbb{Z}
  458. " par3
  459. autocmd Filetype tex inoremap <localleader>wx $w(x)$
  460. autocmd Filetype tex inoremap <localleader>tx $t(x)$
  461. " ]]] tex "
  462. autocmd Filetype c inoremap <localleader>uc unsigned char
  463. autocmd BufNewFile,BufRead *.h nnoremap <localleader>x 0iextern <Esc>f{hc$;<Esc>
  464. autocmd Filetype fish inoremap <localleader>1 $argv[1]
  465. autocmd Filetype fish inoremap <localleader>2 $argv[2]
  466. autocmd Filetype javascript inoremap <localleader>x process.exit()
  467. autocmd Filetype markdown inoremap <localleader>cb - [ ]
  468. autocmd Filetype markdown nnoremap <localleader>x 0f[lrx
  469. " nnoremap <localleader>x 0f[lrx
  470. autocmd Filetype go-template inoremap <localleader>e {{"{{ else }}"}}
  471. autocmd Filetype go-template inoremap <localleader>hd {{"{{ .chezmoi.homedir }}"}}
  472. autocmd Filetype go-template nnoremap <localleader>fp :%s/{{"{{{"}}/[[[/g<CR>:%s/}}}/]]]/g<CR>
  473. autocmd Filetype python inoremap <localleader>bp breakpoint()
  474. autocmd Filetype python inoremap <localleader>s self.
  475. " ]]] Local Mappings "
  476. " vim: fdm=marker ft=vim.go-template