vimwiki and vim commentary
This commit is contained in:
parent
000cd90fa4
commit
7d467d1440
2 changed files with 14 additions and 8 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -157,3 +157,5 @@ nextjs-nodejs/
|
||||||
kritadisplayrc
|
kritadisplayrc
|
||||||
kritarc
|
kritarc
|
||||||
okular-generator-popplerrc
|
okular-generator-popplerrc
|
||||||
|
r2modman/
|
||||||
|
r2modmanPlus-local/
|
||||||
|
|
20
vim/vimrc
20
vim/vimrc
|
@ -14,7 +14,9 @@ set clipboard=unnamedplus
|
||||||
set shellcmdflag=-c
|
set shellcmdflag=-c
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
set relativenumber
|
set relativenumber
|
||||||
|
filetype plugin on
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
|
set nocompatible
|
||||||
set cursorline
|
set cursorline
|
||||||
set ignorecase
|
set ignorecase
|
||||||
set smartcase
|
set smartcase
|
||||||
|
@ -28,11 +30,9 @@ set undofile
|
||||||
set mouse=a
|
set mouse=a
|
||||||
set showcmd
|
set showcmd
|
||||||
set number
|
set number
|
||||||
|
syntax on
|
||||||
|
|
||||||
" Global keybindings
|
" Global keybindings
|
||||||
noremap gc :!git commit -m ""<Left>
|
|
||||||
noremap gp :!git push<CR>
|
|
||||||
noremap gl :!git pull<CR>
|
|
||||||
noremap <F5> :setlocal spell! spelllang=en<CR>
|
noremap <F5> :setlocal spell! spelllang=en<CR>
|
||||||
noremap <F6> :setlocal spell! spelllang=es<CR>
|
noremap <F6> :setlocal spell! spelllang=es<CR>
|
||||||
noremap <C-e> !!$SHELL<CR>
|
noremap <C-e> !!$SHELL<CR>
|
||||||
|
@ -45,9 +45,6 @@ noremap H :nohl<CR>
|
||||||
noremap <Space> za
|
noremap <Space> za
|
||||||
noremap N /@@@<CR>
|
noremap N /@@@<CR>
|
||||||
|
|
||||||
" notes
|
|
||||||
"autocmd BufWritePost note-*.md execute '! git -C ~/Documents/notes/ add ~/Documents/notes/% ; git commit -m "Auto-commit: saved %"'
|
|
||||||
|
|
||||||
" groff
|
" groff
|
||||||
autocmd FileType groff noremap <buffer> <silent> <F9> :!zathura --fork %:r.pdf<CR> & disown
|
autocmd FileType groff noremap <buffer> <silent> <F9> :!zathura --fork %:r.pdf<CR> & disown
|
||||||
autocmd FileType groff noremap <buffer> <C-s> :w<CR> :!groffc %<CR><CR>
|
autocmd FileType groff noremap <buffer> <C-s> :w<CR> :!groffc %<CR><CR>
|
||||||
|
@ -66,7 +63,9 @@ autocmd BufWinEnter bibliography silent loadview
|
||||||
autocmd BufWinLeave bookmarks zM | mkview
|
autocmd BufWinLeave bookmarks zM | mkview
|
||||||
autocmd BufWinEnter bookmarks silent loadview
|
autocmd BufWinEnter bookmarks silent loadview
|
||||||
|
|
||||||
" Neovim exclusive (I think)
|
" Wiki
|
||||||
|
autocmd FileType vimwiki noremap <buffer> <F9> :w<CR> :VimwikiAll2HTML<CR><CR> :!/bin/surf file:///tmp/wiki/index.html &<CR><CR>
|
||||||
|
|
||||||
" Open a shell on a vertical split
|
" Open a shell on a vertical split
|
||||||
set splitright
|
set splitright
|
||||||
function OpenTerminal()
|
function OpenTerminal()
|
||||||
|
@ -111,12 +110,14 @@ Plug 'vim-airline/vim-airline-themes'
|
||||||
Plug 'vim-scripts/AutoComplPop'
|
Plug 'vim-scripts/AutoComplPop'
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
|
Plug 'tpope/vim-commentary'
|
||||||
Plug 'Yggdroot/indentLine'
|
Plug 'Yggdroot/indentLine'
|
||||||
Plug 'preservim/nerdtree'
|
Plug 'preservim/nerdtree'
|
||||||
Plug 'junegunn/goyo.vim'
|
Plug 'junegunn/goyo.vim'
|
||||||
Plug 'mhinz/vim-signify'
|
Plug 'mhinz/vim-signify'
|
||||||
Plug 'ibhagwan/fzf-lua' " Neovim exclusive
|
Plug 'ibhagwan/fzf-lua'
|
||||||
Plug 'morhetz/gruvbox'
|
Plug 'morhetz/gruvbox'
|
||||||
|
Plug 'vimwiki/vimwiki'
|
||||||
"Plug 'dracula/vim'
|
"Plug 'dracula/vim'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
@ -162,3 +163,6 @@ noremap gf :FzfLua files<CR>
|
||||||
let g:signify_disable_by_default = 1
|
let g:signify_disable_by_default = 1
|
||||||
highlight SignColumn ctermbg=NONE
|
highlight SignColumn ctermbg=NONE
|
||||||
noremap gd :SignifyToggle<CR>
|
noremap gd :SignifyToggle<CR>
|
||||||
|
|
||||||
|
" Vimwiki
|
||||||
|
let g:vimwiki_list = [{'path': '~/Documents/', 'path_html': '/tmp/wiki/'}]
|
||||||
|
|
Loading…
Reference in a new issue